/* FUGA STUDIO v10.16 — coherent race details, readable BPKR tables and cups. */
/* Shared long-form layout and calendar placement. */
.detail-layout .article{min-width:0}
.detail-layout .rich-content{min-width:0;max-width:100%;overflow-wrap:break-word}
.detail-layout .rich-content p{max-width:75ch}
.detail-layout .rich-content ul,.detail-layout .rich-content ol{max-width:75ch;padding-inline-start:1.5rem;margin-block:1rem 1.6rem}
.detail-layout .rich-content li{margin:.48em 0;padding-left:.2em;line-height:1.75}
.detail-layout .rich-content li::marker{color:var(--accent)}
.detail-layout .rich-content h2,.detail-layout .rich-content h3{line-height:1.16;text-wrap:balance;margin-top:1.65em}
.detail-layout .rich-content .content-table-wrap{width:100%;min-width:0;max-width:100%;overflow-x:auto;margin-block:26px;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch}
.detail-layout .rich-content .content-table-wrap table{border-spacing:0;border-collapse:separate;min-width:540px;width:100%}
.detail-layout .rich-content .content-table-wrap th,.detail-layout .rich-content .content-table-wrap td{text-align:left;vertical-align:middle;line-height:1.6}
.race-description-calendar{margin:30px 0 8px;padding:20px 22px;border:1px solid #cfdde8;border-radius:16px;background:linear-gradient(110deg,#f7fafc,#ecf4fa);color:#18354c;display:flex;gap:16px;flex-wrap:wrap;align-items:center;justify-content:space-between}
.race-description-calendar>span{font-size:.85rem;font-weight:850;letter-spacing:.02em;color:#253d53}
.race-description-calendar-actions{display:flex;flex-wrap:wrap;gap:10px}
.race-description-calendar .btn{margin:0;border-radius:9px!important}
/* BPKR sidebar/long form: editorial scale, not edge-to-edge paragraphs. */
.theme-bpkr .detail-layout{gap:42px}
.theme-bpkr .rich-content{font-size:1.04rem;line-height:1.85}
.theme-bpkr .rich-content>p,.theme-bpkr .rich-content>ul,.theme-bpkr .rich-content>ol,.theme-bpkr .rich-content>h2,.theme-bpkr .rich-content>h3,.theme-bpkr .rich-content>h4{width:auto;max-width:75ch;margin-inline:0}
.theme-bpkr .rich-content p,.theme-bpkr .rich-content li{color:#dbe7f3!important}
.theme-bpkr .rich-content ul,.theme-bpkr .rich-content ol{color:#dbe7f3!important}
.theme-bpkr .rich-content li::marker{color:#ff9748}
.theme-bpkr .rich-content a{color:#ffad68!important}
.theme-bpkr .rich-content strong{color:#fff}
.theme-bpkr .race-description-calendar{background:linear-gradient(125deg,#18314f,#10253f);border-color:#426080}
.theme-bpkr .race-description-calendar>span{color:#eef5fb}
.theme-bpkr .race-description-calendar .btn-white{background:#f7f9fc!important;color:#102640!important;border-color:#edf3f8!important}
/* All BPKR startlist tables, including accordion category and relay tables. */
.theme-bpkr .startlist .start-summary>span{background:#193453!important;border:1px solid #3d5a79!important;color:#e0eaf4!important}
.theme-bpkr .startlist .start-summary strong{color:#ffae61!important}
.theme-bpkr .startlist .hint-public,.theme-bpkr .startlist .filter-count{color:#c0d1e1!important}
.theme-bpkr .startlist .list-filters label{color:#dbe9f7!important;font-weight:800}
.theme-bpkr .startlist .list-filters :is(input,select){color:#172d43!important;background:#fff!important;border:1px solid #a8bfd0!important;border-radius:10px!important;min-height:46px}
.theme-bpkr .startlist .list-filters input::placeholder{color:#637890!important}
.theme-bpkr .startlist .list-filters :is(input,select):focus-visible{outline:3px solid #ffb47b;outline-offset:1px}
.theme-bpkr .startlist .table-scroll{background:#fff!important;border:1px solid #d3dfe9!important;max-width:100%;overflow-x:auto;border-radius:14px!important;box-shadow:0 12px 32px rgba(0,0,0,.18)}
.theme-bpkr .startlist .data-table{color:#283f58!important;background:#fff!important;min-width:680px;width:100%;border-collapse:collapse}
.theme-bpkr .startlist .data-table thead th{background:#e6eef4!important;color:#344f69!important;font-size:.76rem;font-weight:850;border-bottom:2px solid #ccdce8!important}
.theme-bpkr .startlist .data-table :is(th,td){padding:14px 16px!important;border-color:#dce6ee!important}
.theme-bpkr .startlist .data-table tbody tr{background:#fff!important}
.theme-bpkr .startlist .data-table tbody tr:nth-child(even){background:#f1f6fa!important}
.theme-bpkr .startlist .data-table tbody tr:hover{background:#fff5ec!important}
.theme-bpkr .startlist .data-table tbody td{color:#3f5268!important;font-size:.83rem;line-height:1.5}
.theme-bpkr .startlist .data-table tbody td strong{color:#102f4a!important;font-weight:850}
.theme-bpkr .startlist .category-details{background:#152c48!important;border:1px solid #3d5878!important;color:#e7f1fa!important;border-radius:14px!important;overflow:hidden}
.theme-bpkr .startlist .category-details summary{color:#f1f6fc!important;padding:5px 4px;cursor:pointer;font-size:.9rem}
.theme-bpkr .startlist .category-details summary:hover{color:#ffa85b!important}
.theme-bpkr .startlist .category-details[open]{padding-bottom:17px}
/* Race detail manual results rows use the same high contrast treatment. */
.theme-bpkr #vysledky .table-scroll{background:#fff!important;border:1px solid #d9e3ec!important;border-radius:14px!important;overflow-x:auto}
.theme-bpkr #vysledky .data-table{background:#fff;color:#273f57;min-width:540px}
.theme-bpkr #vysledky .data-table th{background:#e8eff5!important;color:#34516c!important}
.theme-bpkr #vysledky .data-table td{background:#fff!important;color:#3e5268!important;border-color:#d7e2ea!important}
.theme-bpkr #vysledky .data-table tr:nth-child(even) td{background:#f4f8fc!important}
.theme-bpkr #vysledky .data-table td strong{color:#133450!important}
/* Every BPKR cup/series listing card is a legible light card — never white text on white. */
.theme-bpkr .wide-list .wide-card{background:#f9fbfe!important;color:#1b354d!important;border:1px solid #d8e3ec!important;border-left:4px solid #e85d04!important;box-shadow:0 15px 36px rgba(0,0,0,.20)!important;border-radius:14px!important;overflow:hidden}
.theme-bpkr .wide-list .wide-card:hover{border-color:#ffb47c!important;box-shadow:0 22px 45px rgba(0,0,0,.27)!important;transform:translateY(-3px)}
.theme-bpkr .wide-list .wide-card-body{background:#f9fbfe!important;color:#253b52!important}
.theme-bpkr .wide-list .wide-card-body h2,.theme-bpkr .wide-list .wide-card-body h2 a{color:#10263e!important}
.theme-bpkr .wide-list .wide-card-body h2 a:hover{color:#b84e0b!important}
.theme-bpkr .wide-list .wide-card-body p{color:#586d82!important}
.theme-bpkr .wide-list .wide-card-facts,.theme-bpkr .wide-list .wide-card-facts span,.theme-bpkr .wide-list .wide-card-facts time{color:#475f78!important}
.theme-bpkr .wide-list .wide-card-type{background:#fff0e3!important;color:#b55009!important}
.theme-bpkr .wide-list .wide-card-art{background:#edf3f8!important}
.theme-bpkr .wide-list .wide-card-action{background:#f0f5f9!important;border-left:1px solid #dce6ed!important}
.theme-bpkr .wide-list .wide-card-open{background:#e85d04!important;color:#fff!important;border-color:#e85d04!important}
.theme-bpkr .wide-list .wide-card-open:hover{background:#ba4d0c!important;color:#fff!important}
/* BPKR main timeline remains directly actionable. */
.theme-bpkr .bpkr-timeline-buttons .bpkr-button{font-size:.72rem;line-height:1.3;white-space:normal;padding:10px 12px}
@media(max-width:760px){
 .race-description-calendar{display:block;padding:18px}
 .race-description-calendar>span{display:block;margin-bottom:12px}
 .race-description-calendar-actions .btn{width:100%}
 .theme-bpkr .startlist .table-scroll{border-radius:10px!important}
 .theme-bpkr .startlist .data-table :is(td,th){padding:11px 12px!important}
 .theme-bpkr .detail-layout{gap:22px}
}
@media(prefers-reduced-motion:reduce){.theme-bpkr .wide-list .wide-card{transition:none!important}}
