/* =====================================================================
   BMR PAGES â€” page-specific styles migrated from Customizer "Additional CSS"
   File: kleo-child/css/bmr-pages.css
   2026-07 migration. Content is verbatim from the Customizer except:
   - Landmines NOT migrated (duplicate @font-face, 5x body rules, * reset,
     global h1/h2 centering, generic header/footer) â€” replaced by the single
     consolidated body rule below + Move-2 deletions.
   - Live-stream iframe rules are now SCOPED to .live-stream-page
     (the original unscoped `iframe{display:none}` hid iframes site-wide).
   ===================================================================== */

/* ---------------------------------------------------------------------
   0. Consolidated body rule.
   Replaces the five body{} declarations that lived in the Customizer.
   Reproduces their final computed result (last-one-wins per property).
   Inert until the Customizer copies are deleted (they load later).
--------------------------------------------------------------------- */
body {
    margin: 0;
    padding: 0;
    font-family: 'BMWTypeNext', 'Hiragino Kaku Gothic ProN', sans-serif;
    line-height: 1.6;
    background-color: #f5f5f5;
    color: #333;
    overflow-x: hidden;
}

/* ---------------------------------------------------------------------
   1. Font utility classes (block 1 of 2 â€” duplicated in the original;
   both kept in original order so the cascade result is identical)
--------------------------------------------------------------------- */
.title-container .title, 
.subtitle, 
.body-text, 
.header-bold {
    font-family: 'BMWTypeNext', 'Hiragino Kaku Gothic ProN', sans-serif;
}

.title-container .title { 
    font-weight: normal; /* Keep normal for clarity */
}

.subtitle { 
    font-weight: 300; /* Light */
}

.body-text { 
    font-weight: 500; /* Medium */
}

.header-bold { 
    font-weight: 700; /* Bold */
}

.japanese-text {
    font-family: 'Hiragino Kaku Gothic ProN', 'Hiragino Kaku Gothic ProN';
    font-weight: 300; /* W3 for lighter text */
}

.japanese-text-bold {
    font-family: 'Hiragino Kaku Gothic ProN', 'Hiragino Kaku Gothic ProN';
    font-weight: 600; /* W6 for bold text */
}

/* ---------------------------------------------------------------------
   2. Ambassador banner / menu
--------------------------------------------------------------------- */
.ambassador-banner {
    background-color: #f4f4f4;
    padding: 10px 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.ambassador-menu {
    display: flex;
    gap: 15px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.ambassador-menu li { display: inline; }

.ambassador-menu a {
    font-family: 'BMWTypeNext', 'Hiragino Kaku Gothic ProN', sans-serif;
    font-weight: 500;
    text-decoration: none;
    color: #333;
    padding: 5px 10px;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.ambassador-menu a:hover,
.ambassador-menu a.active {
    background-color: #005770;
    color: #fff;
}

/* ---------------------------------------------------------------------
   3. Contents header overrides (news/team-release archive headers)
   NOTE: conflicts with common.css by design (two eras). Resolved in the
   news-pages pass later; migrated verbatim for now.
--------------------------------------------------------------------- */
/* Converted 2026-07: was black 60px; now canonical page-title style
   (matches Standings). !important needed to beat common.css's
   80px white-on-photo rules for #news-page-inner / #team-release. */
#contents-header {
    background: none !important;
    max-width: 1180px;
    margin: 0 auto;
    padding: 26px 18px 4px !important;
}

#contents-header h1 {
    color: #005A74 !important;
    font-size: 44px !important;
    font-weight: 700 !important;
    line-height: 1.05;
    text-align: left !important;
    margin: 0 !important;
    font-family: 'BMWTypeNext', 'Hiragino Kaku Gothic ProN', sans-serif;
}

/* ---------------------------------------------------------------------
   4. Race logos
--------------------------------------------------------------------- */
.race-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 200px;
    position: relative;
}

.logo {
    display: flex;
    justify-content: center;
    align-items: center;
}

.left img, .right img {
    width: 150px;
    height: auto;
    transition: transform 1s ease-in-out;
}

.left { margin-right: 30px; }
.right { margin-left: 30px; }

.race-logos:hover .left img { transform: translateX(20%); }
.race-logos:hover .right img { transform: translateX(-20%); }

/* ---------------------------------------------------------------------
   5. Image gallery
--------------------------------------------------------------------- */
.image-gallery {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
    margin-top: 20px;
}

.image-item {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-item img {
    width: 100%;
    height: auto;
    max-width: 450px;
}

@media (max-width: 768px) {
    .image-gallery {
        flex-direction: column;
        gap: 10px;
    }

    .image-item img {
        max-width: 100%;
    }
}

/* ---------------------------------------------------------------------
   6. Video grid
--------------------------------------------------------------------- */
.video-grid {
    display: flex;
    gap: 20px;
    padding: 10px;
    background-color: #fff;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    justify-content: flex-start;
}

@media (max-width: 767px) {
    .video-grid {
        gap: 10px;
        padding-left: 10px;
    }
    .video-item {
        flex: 0 0 calc(90% - 10px);
    }
}

@media (min-width: 768px) {
    .video-grid {
        justify-content: flex-start;
        gap: 20px;
    }
    .video-item {
        flex: 0 0 280px;
        margin-left: 0;
    }
    .video-grid > .video-item:nth-child(1),
    .video-grid > .video-item:nth-child(2) {
        margin-left: 0;
    }
}

.video-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 280px;
    height: 180px;
    background-color: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.video-item:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.3);
}

.video-thumbnail {
    width: 100%;
    height: auto;
    display: block;
}

.video-overlay {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 10px 0;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    transition: background 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    text-align: center;
}

.video-item:hover .video-overlay {
    background: rgba(0, 87, 112, 1);
    color: #fff;
}

/* ---------------------------------------------------------------------
   7. Driver slider
--------------------------------------------------------------------- */
.driver-slider {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
    padding: 10px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    width: 100%;
    box-sizing: border-box;
}

.driver-item {
    flex: 0 0 calc(90% - 10px);
    text-align: center;
    scroll-snap-align: start;
    max-width: 500px;
    width: 100%;
}

.driver-item img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    max-height: 400px;
}

@media (max-width: 1024px) {
    .driver-slider {
        gap: 8px;
    }

    .driver-item {
        max-width: 300px;
    }

    .driver-item img {
        max-height: 300px;
    }
}

@media (max-width: 768px) {
    .driver-item {
        flex: 0 0 calc(85% - 8px);
        max-width: 280px;
    }

    .driver-item img {
        max-height: 250px;
    }
}

/* ---------------------------------------------------------------------
   8. Specs section
--------------------------------------------------------------------- */
.specs-section {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    text-align: center;
}

.specs-title {
    font-size: 36px;
    font-weight: lighter;
    text-transform: uppercase;
    margin: 20px 0 30px;
    color: #000;
}

.car-image {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.car-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    max-height: 600px;
}

.specs-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    max-width: 500px;
    margin: 0 auto;
}

.spec-item {
    display: flex;
    flex-direction: column;
}

.spec-title {
    font-size: 16px;
    font-weight: 200;
    color: #333;
    margin-bottom: 8px;
}

.spec-value {
    font-size: 24px;
    font-weight: 300;
    color: #000;
}

@media (max-width: 768px) {
    .specs-content {
        flex-direction: column;
        text-align: center;
    }

    .car-image img {
        max-height: 400px;
    }

    .specs-grid {
        margin-top: 20px;
    }
}

/* ---------------------------------------------------------------------
   9. Poll
--------------------------------------------------------------------- */
.poll-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin: 20px auto;
    width: 90%;
    max-width: 600px;
}

.poll-cover-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.poll-title {
    font-family: 'BMWTypeNext', 'Hiragino Kaku Gothic ProN', sans-serif;
    font-size: 24px;
    color: #1f1f1f;
    margin-bottom: 15px;
    font-weight: 700;
}

.poll-content {
    width: 100%;
    max-width: 500px;
    padding: 15px;
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #ddd;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .poll-wrapper {
        padding: 15px;
    }

    .poll-title {
        font-size: 20px;
    }

    .poll-content {
        padding: 10px;
    }
}

/* ---------------------------------------------------------------------
   10. Legacy ambassador page (intro + ambassador items)
--------------------------------------------------------------------- */
section.intro {
    text-align: center;
    padding: 20px;
    margin-bottom: 20px;
}

section.intro img {
    max-width: 100%;
    margin-bottom: 10px;
    border-radius: 8px;
}

section.intro .intro-text {
    font-size: 1.2em;
    margin-top: 10px;
    padding: 0 10px;
}

section.ambassador {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
}

.ambassador-item {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    margin-bottom: 40px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.ambassador-item img {
    flex: 1 1 100%;
    max-width: 100%;
    object-fit: cover;
    height: auto;
}

.ambassador-item .info {
    flex: 1 1 100%;
    padding: 20px;
}

.ambassador-item h2 {
    font-size: 1.8em;
    margin-bottom: 10px;
    color: #0073aa;
}

.ambassador-item p {
    margin: 10px 0;
}

.ambassador-item ul {
    list-style-type: none;
    padding: 0;
    margin-top: 10px;
}

.ambassador-item ul li {
    margin: 5px 0;
}

@media (min-width: 768px) {
    .ambassador-item {
        flex-wrap: nowrap;
    }

    .ambassador-item img {
        flex: 1 1 40%;
    }

    .ambassador-item .info {
        flex: 1 1 60%;
    }
}

@media (max-width: 480px) {
    section.intro .intro-text {
        font-size: 1em;
    }

    .ambassador-item .info {
        padding: 15px;
    }
}

/* ---------------------------------------------------------------------
   11. Top background / slide container
   NOTE: .content is a generic class â€” candidate for scoping later.
--------------------------------------------------------------------- */
.slide-container {
    position: relative;
    width: 100%;
    height: 100vh;
    background: url('https://bmwminiracing.jp/wp-content/uploads/2025/04/0411.jpg') no-repeat center center/cover;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
}

.content {
    text-align: center;
    color: #fff !important;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.content h1 {
    font-size: 4rem;
    font-weight: 700;
    margin: 0 0 20px;
    color: #fff !important;
    font-family: 'BMWTypeNext', sans-serif;
}

.content a {
    display: inline-block;
    padding: 10px 20px;
    font-size: 1.2rem;
    font-weight: 500;
    color: #fff !important;
    background-color: #055770;
    text-decoration: none;
    border-radius: 2px;
    box-shadow: 2px 4px 10px rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s, transform 0.3s;
    font-family: 'BMWTypeNext', sans-serif;
}

.content a:hover {
    background-color: #027385;
    transform: translateY(-3px);
}

@media (max-width: 768px) {
    .slide-container {
        background: url('https://bmwminiracing.jp/wp-content/uploads/2025/04/0411-medium.jpg') no-repeat center center/cover;
    }
    
    .content h1 {
        font-size: 2rem;
    }

    .content a {
        font-size: 1rem;
        padding: 8px 16px;
    }
}

@media (max-width: 480px) {
    .slide-container {
        background: url('https://bmwminiracing.jp/wp-content/uploads/2025/04/0411-small.jpg') no-repeat center center/cover;
    }
}

/* ---------------------------------------------------------------------
   12. Font utility classes (block 2 of 2 â€” original duplicate; the
   .title weight 200 here overrides the 'normal' from block 1, as before)
--------------------------------------------------------------------- */
.title-container .title, .subtitle, .body-text, .header-bold {
    font-family: 'BMWTypeNext', 'Hiragino Kaku Gothic ProN', sans-serif;
}

.title-container .title { 
    font-weight: 200; /* Regular */
}

.subtitle { font-weight: 300; } /* Light */
.body-text { font-weight: 500; } /* Medium */
.header-bold { font-weight: 700; } /* Bold */

/* ---------------------------------------------------------------------
   13. Filter container / dropdowns
--------------------------------------------------------------------- */
#filter-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.filter-dropdown {
  position: relative;
  padding: 10px;
  background-color: #005770;
  color: #fff;
  border-radius: 5px;
  cursor: pointer;
  text-align: center;
  width: 120px;
}

.filter-dropdown .arrow {
  font-size: 12px;
  margin-left: 5px;
}

.selected-text {
  margin-top: 5px;
  font-size: 14px;
  color: #2c3e50;
  text-align: center;
  font-weight: bold;
}

.dropdown-list {
  display: none;
  position: absolute;
  background-color: #f4f4f4;
  width: 100%;
  list-style-type: none;
  padding: 0;
  margin: 0;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  z-index: 1;
  border-radius: 5px;
}

.dropdown-list li {
  padding: 10px;
  text-align: center;
  cursor: pointer;
  color: #2c3e50;
}

.dropdown-list li:hover {
  background-color: #ecf0f1;
}

.filter-dropdown:hover .dropdown-list {
  display: block;
}

@media screen and (max-width: 768px) {
  #filter-container {
    align-items: center;
  }

  .filter-dropdown {
    width: 80%;
  }

  .dropdown-list {
    width: 100%;
  }
}

@media screen and (min-width: 769px) {
  #filter-container {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 10px;
  }

  .filter-dropdown {
    width: 450px;
    text-align: center;
  }

  .selected-text {
    margin-top: 0;
  }
}

/* ---------------------------------------------------------------------
   14. Live stream
   FIXED DURING MIGRATION: the original `.placeholder, iframe` and
   `iframe{display:none}` were unscoped and hit every iframe site-wide.
   Now scoped to .live-stream-page. Behavior on the live-stream page
   itself is unchanged.
--------------------------------------------------------------------- */
.live-stream-page {
  margin: 0;
  font-family: 'BMWTypeNext', 'Hiragino Kaku Gothic ProN', sans-serif;
  background-color: #000;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  text-align: center;
}

.stream-container {
  width: 80%;
  max-width: 1000px;
  text-align: center;
}

.live-badge {
  background-color: red;
  color: white;
  font-weight: bold;
  padding: 8px 20px;
  border-radius: 2px;
  font-size: 18px;
  margin-bottom: 15px;
  display: inline-block;
}

.live-stream-page .placeholder,
.live-stream-page iframe {
  width: 100%;
  height: 450px;
  background-color: #333;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.live-stream-page .placeholder {
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  font-size: 18px;
}

.live-stream-page iframe {
  display: none; /* Hidden until live */
}

@media (max-width: 768px) {
  .live-stream-page .placeholder,
  .live-stream-page iframe {
    height: 300px;
  }
}

/* ---------------------------------------------------------------------
   15. Entry section / button
--------------------------------------------------------------------- */
.entry-section {
    text-align: center;
    background-color: #f5f5f5;
    padding: 20px;
    border-radius: 8px;
    margin: 30px 0;
    border: none;
}

.entry-section .description {
    font-size: 16px;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.6;
}

.entry-button {
    display: inline-block;
    background-color: #005770;
    color: #fff !important;
    padding: 8px 16px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    text-align: center;
    margin-top: 20px;
    width: auto;
}

.entry-button:hover {
    background-color: #004b62;
}

/* ---------------------------------------------------------------------
   16. Regulation section + PDF links
--------------------------------------------------------------------- */
.regulation-section {
    text-align: center;
    margin: 40px 0;
}

.regulation-img {
    max-width: 60%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.regulation-img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.pdf-link {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    margin-bottom: 10px;
}

.pdf-icon {
    width: 28px;
    margin-left: 10px;
}

/* ---------------------------------------------------------------------
   17. TablePress mobile
--------------------------------------------------------------------- */
@media screen and (max-width: 768px) {
    .tablepress {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        display: block;
        white-space: nowrap;
        position: relative;
    }

    .tablepress::before,
    .tablepress::after {
        content: 'â†';
        font-size: 24px;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        color: #444;
        z-index: 2;
        cursor: pointer;
        opacity: 0.7;
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

    .tablepress::before {
        left: 10px;
    }

    .tablepress::after {
        right: 10px;
        content: 'â†’';
    }

    .tablepress:hover::before,
    .tablepress:hover::after {
        opacity: 1;
        transform: translateY(-50%) scale(1.1);
    }

    .tablepress::-webkit-scrollbar {
        height: 8px;
    }

    .tablepress::-webkit-scrollbar-thumb {
        background-color: #444;
        border-radius: 8px;
    }

    .tablepress::-webkit-scrollbar-thumb:hover {
        background-color: #222;
    }

    .tablepress::-webkit-scrollbar-track {
        background-color: #f0f0f0;
        border-radius: 8px;
    }

    .tablepress th, .tablepress td {
        padding: 8px;
        border: 1px solid #ccc;
        font-size: 14px;
        text-align: center;
    }

    .tablepress th {
        background-color: #333;
        color: #fff;
    }

    .tablepress td {
        background-color: #fff;
        color: #333;
    }
}

/* ---------------------------------------------------------------------
   18. Dealer section
--------------------------------------------------------------------- */
.dealer-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background-color: #f8f8f8;
}

.dealer-card {
    width: 400px;
    text-decoration: none;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
}

.dealer-bg {
    width: 100%;
    height: 160px;
    background-size: cover;
    background-position: center;
}

.dealer-content {
    padding: 20px;
    text-align: center;
}

.dealer-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #1a1a1a;
}

.dealer-address,
.dealer-contact,
.dealer-hours {
    font-size: 14px;
    margin: 5px 0;
    color: #444;
}

.dealer-link a {
    display: inline-block;
    margin-top: 10px;
    font-size: 14px;
    color: #0071c5;
    font-weight: bold;
    text-decoration: none;
    border-bottom: 2px solid #0071c5;
    padding-bottom: 2px;
    transition: color 0.3s, border-color 0.3s;
}

.dealer-link a:hover {
    color: #004f8c;
    border-color: #004f8c;
}

/* ---------------------------------------------------------------------
   19. PDF container / race logo
--------------------------------------------------------------------- */
.pdf-container {
  display: flex;
  align-items: center;
  gap: 5px;
}

.race-logo {
  width: 100px;
  height: auto;
}

/* NOTE: unscoped on purpose â€” in the original this second .pdf-icon rule
   overrides the 28px one above everywhere; kept identical to preserve
   current rendering. Candidate for scoping in a later pass. */
.pdf-icon {
  width: 20px;
  height: auto;
}

/* ---------------------------------------------------------------------
   20. Team profile
--------------------------------------------------------------------- */
.team-profile {
    width: 80%;
    max-width: 1200px;
    margin: 40px auto;
    padding: 30px;
    background: #fff;
    font-family: 'BMWTypeNext', 'Hiragino Kaku Gothic ProN', sans-serif;
}

.team-header {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 20px;
    border-bottom: 3px solid #005770;
}

.team-image img {
    max-width: 100%;
    height: auto;
    object-fit: cover;
    border: 2px solid #005770;
}

.team-info {
    flex: 1;
}

.team-info h1 {
    font-size: 2.5em;
    color: #005770;
    margin: 0;
    font-weight: bold;
}

.team-info p {
    font-size: 1.2em;
    color: #333;
    margin: 5px 0;
}

.team-info p strong {
    color: #005770;
}

@media screen and (max-width: 768px) {
    .team-header {
        flex-direction: column;
        align-items: center;
    }

    .team-image img {
        width: 150px;
        height: 150px;
    }
}

/* =========================================================
   BMR CAST PAGE
========================================================= */

.bmr-cast-page {
    max-width: 1120px;
    margin: 0 auto;
    padding: 120px 24px 80px;
    color: #111;
}

/* Converted 2026-07: centered dark hero -> canonical left kicker+title */
.bmr-cast-hero {
    text-align: left;
    margin-bottom: 36px;
}

.bmr-cast-kicker {
    margin: 0 0 6px;
    font-size: 14px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #111;
    opacity: 0.65;
    font-weight: 700;
}

.bmr-cast-page .bmr-cast-hero h1 {
    margin: 0;
    font-size: 44px;
    line-height: 1.05;
    letter-spacing: 0.02em;
    font-weight: 700;
    color: #005A74 !important;
}

.bmr-cast-lead {
    max-width: 620px;
    margin: 14px 0 0;
    font-size: 14px;
    line-height: 1.9;
    color: #555;
}

.bmr-cast-season-nav {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin: 0 0 48px;
    padding: 8px;
    background: #f4f4f4;
    border-radius: 999px;
}

.bmr-cast-season-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 88px;
    padding: 10px 18px;
    border-radius: 999px;
    font-size: 13px;
    line-height: 1;
    text-decoration: none;
    color: #333;
    background: transparent;
    transition: all 0.25s ease;
}

.bmr-cast-season-nav a:hover,
.bmr-cast-season-nav a.is-active {
    color: #fff;
    background: #111;
}

.bmr-cast-season-intro {
    margin-bottom: 56px;
}

.bmr-cast-season-intro img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 6px;
}

.bmr-cast-season-text {
    max-width: 720px;
    margin: 18px auto 0;
    text-align: center;
    font-size: 13px;
    line-height: 1.9;
    color: #555;
}

.bmr-cast-grid {
    display: grid;
    gap: 28px;
}

.bmr-cast-card {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 0;
    background: #fff;
    border: 1px solid #e9e9e9;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
    overflow: hidden;
}

.bmr-cast-photo {
    background: #f5f5f5;
    min-height: 320px;
}

.bmr-cast-photo img {
    width: 100%;
    height: 100%;
    min-height: 320px;
    object-fit: cover;
    display: block;
}

.bmr-cast-info {
    padding: 42px 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.bmr-cast-role {
    margin: 0 0 12px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #0066b1;
}

.bmr-cast-info h2 {
    margin: 0;
    font-size: clamp(24px, 3vw, 36px);
    line-height: 1.25;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.bmr-cast-roman {
    margin: 8px 0 22px;
    font-size: 10px;
    letter-spacing: 0.16em;
    color: #999;
    text-transform: uppercase;
}

.bmr-cast-profile {
    font-size: 13px;
    line-height: 2;
    color: #333;
}

.bmr-cast-profile p {
    margin: 0 0 1em;
}

.bmr-cast-profile p:last-child {
    margin-bottom: 0;
}

.bmr-cast-sns {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 24px;
}

.bmr-cast-sns a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    background: #111;
    color: #fff;
    font-size: 11px;
    line-height: 1;
    text-decoration: none;
    border-radius: 999px;
}

.bmr-cast-empty {
    text-align: center;
    color: #777;
    font-size: 14px;
    padding: 60px 0;
}

/* Mobile */
@media (max-width: 768px) {

    .bmr-cast-page {
        padding: 90px 18px 60px;
    }

    .bmr-cast-season-nav {
        border-radius: 14px;
    }

    .bmr-cast-season-nav a {
        flex: 1 1 auto;
        min-width: 90px;
    }

    .bmr-cast-card {
        grid-template-columns: 1fr;
    }

    .bmr-cast-photo {
        min-height: auto;
    }

    .bmr-cast-photo img {
        min-height: auto;
        aspect-ratio: 4 / 3;
    }

    .bmr-cast-info {
        padding: 28px 24px 34px;
    }
}

/* =========================================================
   BMR AMBASSADOR PAGE
========================================================= */

.bmr-ambassador-page {
    max-width: 1120px;
    margin: 0 auto;
    padding: 120px 24px 80px;
    color: #111;
}

/* Converted 2026-07: centered dark hero -> canonical left kicker+title */
.bmr-ambassador-hero {
    text-align: left;
    margin-bottom: 36px;
}

.bmr-ambassador-kicker {
    margin: 0 0 6px;
    font-size: 14px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #111;
    opacity: 0.65;
    font-weight: 700;
}

.bmr-ambassador-page .bmr-ambassador-hero h1 {
    margin: 0;
    font-size: 44px;
    line-height: 1.05;
    letter-spacing: 0.02em;
    font-weight: 700;
    color: #005A74 !important;
}

.bmr-ambassador-lead {
    max-width: 720px;
    margin: 14px 0 0;
    font-size: 14px;
    line-height: 2;
    color: #555;
}

.bmr-ambassador-lead p {
    margin: 0;
}

.bmr-ambassador-season-nav {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin: 0 0 48px;
    padding: 8px;
    background: #f4f4f4;
    border-radius: 999px;
}

.bmr-ambassador-season-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 88px;
    padding: 10px 18px;
    border-radius: 999px;
    font-size: 13px;
    line-height: 1;
    text-decoration: none;
    color: #333;
    background: transparent;
    transition: all 0.25s ease;
}

.bmr-ambassador-season-nav a:hover,
.bmr-ambassador-season-nav a.is-active {
    color: #fff;
    background: #111;
}

.bmr-ambassador-season-visual {
    margin-bottom: 56px;
}

.bmr-ambassador-season-visual img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 6px;
}

.bmr-ambassador-grid {
    display: grid;
    gap: 32px;
}

.bmr-ambassador-card {
    display: grid;
    grid-template-columns: 46% 54%;
    background: #fff;
    border: 1px solid #ececec;
    box-shadow: 0 12px 32px rgba(0,0,0,0.045);
    overflow: hidden;
}

.bmr-ambassador-photo {
    background: #f5f5f5;
    min-height: 420px;
}

.bmr-ambassador-photo img {
    width: 100%;
    height: 100%;
    min-height: 420px;
    object-fit: cover;
    display: block;
}

.bmr-ambassador-info {
    padding: 48px 54px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.bmr-ambassador-series {
    margin: 0 0 14px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #0066b1;
}

.bmr-ambassador-info h2 {
    margin: 0;
    font-size: clamp(26px, 3vw, 40px);
    line-height: 1.25;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: #0066b1;
}

.bmr-ambassador-roman {
    margin: 8px 0 24px;
    font-size: 10px;
    letter-spacing: 0.16em;
    color: #999;
    text-transform: uppercase;
}

.bmr-ambassador-meta {
    display: grid;
    gap: 6px;
    margin: 0 0 24px;
    padding: 16px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.bmr-ambassador-meta div {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 14px;
    align-items: baseline;
}

.bmr-ambassador-meta dt {
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #999;
}

.bmr-ambassador-meta dd {
    margin: 0;
    font-size: 12px;
    line-height: 1.7;
    color: #333;
}

.bmr-ambassador-profile {
    font-size: 13px;
    line-height: 2;
    color: #333;
}

.bmr-ambassador-profile p {
    margin: 0 0 1em;
}

.bmr-ambassador-profile p:last-child {
    margin-bottom: 0;
}

.bmr-ambassador-sns {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 26px;
}

.bmr-ambassador-sns a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 13px;
    background: #111;
    color: #fff;
    font-size: 11px;
    line-height: 1;
    text-decoration: none;
    border-radius: 999px;
}

.bmr-ambassador-empty {
    text-align: center;
    color: #777;
    font-size: 14px;
    padding: 60px 0;
}

/* Mobile */
@media (max-width: 768px) {

    .bmr-ambassador-page {
        padding: 90px 18px 60px;
    }

    .bmr-ambassador-season-nav {
        border-radius: 14px;
    }

    .bmr-ambassador-season-nav a {
        flex: 1 1 auto;
        min-width: 90px;
    }

    .bmr-ambassador-card {
        grid-template-columns: 1fr;
    }

    .bmr-ambassador-photo {
        min-height: auto;
    }

    .bmr-ambassador-photo img {
        min-height: auto;
        aspect-ratio: 4 / 5;
    }

    .bmr-ambassador-info {
        padding: 30px 24px 36px;
    }

    .bmr-ambassador-meta div {
        grid-template-columns: 78px 1fr;
    }
}

/* ---------------------------------------------------------------------
   21. Gallery hub (/gallery/) â€” migrated 2026-07 from inline template CSS.
   Tokenized: #0a5b72 (eighth teal, retired) -> var(--bmr-teal),
   900 weights -> var(--bmr-w-bold). Header now uses .bmr-kicker /
   .bmr-page-title; local pill renamed .bmr-hub-pill to avoid colliding
   with the global .bmr-pill component.
--------------------------------------------------------------------- */
.bmr-gallery--home { padding: 44px 18px 70px; max-width: var(--bmr-container, 1180px); margin: 0 auto; }

.bmr-gallery--home .bmr-home-header { text-align: left; margin-bottom: 22px; }
.bmr-gallery--home .bmr-home-lead{
  margin: 14px 0 0;
  max-width: 760px;
  color: var(--bmr-text-soft, rgba(17,17,17,.65));
  font-size: 15px;
  line-height: 1.7;
}

.bmr-gallery--home .bmr-home-top{
  display: flex;
  justify-content: flex-start;
  margin: 18px 0 26px;
}
.bmr-gallery--home .bmr-hub-pill{
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--bmr-radius-pill, 999px);
  border: 1px solid var(--bmr-line, rgba(0,0,0,.12));
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(6px);
  box-shadow: var(--bmr-shadow, 0 14px 40px rgba(0,0,0,.06));
}
.bmr-gallery--home .bmr-hub-pill span{
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: var(--bmr-w-bold, 700);
  color: var(--bmr-text-soft, rgba(17,17,17,.6));
}
.bmr-gallery--home .bmr-hub-pill strong{
  font-size: 14px;
  font-weight: var(--bmr-w-bold, 700);
  letter-spacing: .06em;
}

/* Cards */
.bmr-gallery--home .bmr-home-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 14px;
}
@media (max-width: 991px){
  .bmr-gallery--home .bmr-home-grid{ grid-template-columns: 1fr; }
}

.bmr-gallery--home .bmr-home-card{
  position: relative;
  display: block;
  border-radius: var(--bmr-radius, 16px);
  overflow: hidden;
  text-decoration: none !important;
  min-height: 240px;
  color: #fff !important;
  box-shadow: 0 18px 55px rgba(0,0,0,.12);
  transform: translateY(0);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
  background:
    radial-gradient(1100px 520px at 20% 20%, rgba(255,255,255,.14), rgba(255,255,255,0)),
    linear-gradient(135deg, rgba(0,0,0,.18), rgba(0,0,0,.74));
}

.bmr-gallery--home .bmr-home-card::before{
  content:"";
  position:absolute;
  inset:0;
  background-image: var(--bg, none);
  background-size: cover;
  background-position: center;
  transform: scale(1.03);
  filter: saturate(1.06) contrast(1.04);
}

.bmr-gallery--home .bmr-home-card::after{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(to top, rgba(0,0,0,.80) 0%, rgba(0,0,0,.35) 55%, rgba(0,0,0,.12) 100%);
}

.bmr-gallery--home .bmr-home-card__inner{
  position: relative;
  z-index: 2;
  height: 100%;
  padding: 18px 18px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.bmr-gallery--home .bmr-home-card__kicker{
  font-size: 12px;
  font-weight: var(--bmr-w-bold, 700);
  letter-spacing: .16em;
  text-transform: uppercase;
  opacity: .9;
}
.bmr-gallery--home .bmr-home-card__title{
  margin: 0;
  font-size: 22px;
  font-weight: var(--bmr-w-bold, 700);
  line-height: 1.15;
  letter-spacing: .02em;
  text-shadow: 0 12px 28px rgba(0,0,0,.45);
}
.bmr-gallery--home .bmr-home-card__cta{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: var(--bmr-w-bold, 700);
  letter-spacing: .06em;
  opacity: .95;
  text-shadow: 0 10px 24px rgba(0,0,0,.35);
}

.bmr-gallery--home .bmr-home-card:hover{
  transform: translateY(-3px);
  box-shadow: 0 24px 70px rgba(0,0,0,.16);
  filter: saturate(1.03);
}
.bmr-gallery--home .bmr-home-card:hover::before{
  transform: scale(1.07);
  transition: transform .35s ease;
}

/* Accents */
.bmr-gallery--home .bmr-home-card.is-m2{ background-color: var(--bmr-teal, #005A74); }
.bmr-gallery--home .bmr-home-card.is-mcjp{ background-color: #2B2A2A; }
.bmr-gallery--home .bmr-home-card.is-awards{ background-color: var(--bmr-ink, #111); }

/* Past seasons */
.bmr-gallery--home .bmr-home-past{
  margin-top: 34px;
}
.bmr-gallery--home .bmr-home-past h3{
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: var(--bmr-w-bold, 700);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--bmr-text-soft, rgba(17,17,17,.62));
}
.bmr-gallery--home .bmr-year-row{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.bmr-gallery--home .bmr-year-pill{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: var(--bmr-radius-pill, 999px);
  border: 1px solid var(--bmr-line, rgba(0,0,0,.12));
  text-decoration: none !important;
  font-weight: var(--bmr-w-bold, 700);
  letter-spacing: .04em;
  background: var(--bmr-paper, #fff);
  box-shadow: var(--bmr-shadow, 0 12px 34px rgba(0,0,0,.05));
  color: var(--bmr-teal, #005A74);
}
.bmr-gallery--home .bmr-year-pill:hover{ background: rgba(0,0,0,.03); }

.bmr-gallery--home .bmr-home-empty{ color: var(--bmr-text-soft, rgba(17,17,17,.7)); }

/* ---------------------------------------------------------------------
   22. Schedule page â€” migrated 2026-07 from inline template CSS.
   Tokenized: 800/900 weights -> var(--bmr-w-bold); NEXT accent ->
   BMW blue token; LIVE -> M red token. Classes renamed bmr-sched-*
   to avoid colliding with global .bmr-card / .bmr-pill components.
--------------------------------------------------------------------- */
.bmr-schedule-wrap{max-width:var(--bmr-container, 1180px);margin:0 auto;padding:22px 18px 44px;}
.bmr-schedule-head{margin-bottom:16px;}
.bmr-schedule-sub{color:var(--bmr-text-soft, rgba(17,17,17,.75));margin:8px 0 0;font-size:14px}
.bmr-schedule-empty{color:var(--bmr-text-soft, rgba(17,17,17,.75));}

/* Grid */
.bmr-sched-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;}
@media(max-width:1024px){.bmr-sched-grid{grid-template-columns:repeat(2,1fr);} }
@media(max-width:640px){.bmr-sched-grid{grid-template-columns:1fr;} }

/* Card */
.bmr-sched-card{
  position:relative; overflow:hidden; border-radius:var(--bmr-radius, 16px);
  background:var(--bmr-ink-deep, #0b0c10); color:#fff; min-height:170px;
  box-shadow:0 12px 28px rgba(0,0,0,.18);
  border:1px solid rgba(255,255,255,.08);
  text-decoration:none; display:block;
}
.bmr-sched-card__bg{
  position:absolute; inset:0;
  background-size:cover; background-position:center;
  filter:saturate(1.0);
}
.bmr-sched-card__shade{
  position:absolute; inset:0;
  background: linear-gradient(90deg, rgba(0,0,0,.82) 0%, rgba(0,0,0,.50) 52%, rgba(0,0,0,.28) 100%);
}
.bmr-sched-card__inner{position:relative; padding:16px 16px 14px; display:flex; flex-direction:column; height:100%;}
.bmr-sched-card__top{display:flex; justify-content:space-between; gap:12px; align-items:flex-start;}

/* Status pills */
.bmr-sched-pill{
  display:inline-flex; align-items:center; gap:8px;
  font-size:12px; font-weight:var(--bmr-w-bold, 700); letter-spacing:.3px;
  padding:6px 10px; border-radius:var(--bmr-radius-pill, 999px);
  background:rgba(255,255,255,.10); border:1px solid rgba(255,255,255,.14);
  color:#fff;
}
.bmr-sched-pill--next{background:rgba(0,102,177,.28); border-color:rgba(0,102,177,.50);}
.bmr-sched-pill--live{background:rgba(228,28,42,.26); border-color:rgba(228,28,42,.50);}
.bmr-sched-pill--done{opacity:.70}

.bmr-sched-card__num{opacity:.75; font-weight:var(--bmr-w-bold, 700); font-size:12px; text-transform:uppercase;}
.bmr-sched-card__title{margin-top:6px; font-size:26px; font-weight:var(--bmr-w-bold, 700); line-height:1.08;}
.bmr-sched-card__meta{margin-top:8px; opacity:.82; font-size:13px;}
.bmr-sched-card__date{margin-top:auto; font-weight:var(--bmr-w-bold, 700); font-size:16px; letter-spacing:.6px; opacity:.95;}

/* Highlight NEXT card â€” BMW blue accent */
.bmr-sched-card--featured{
  border-color:rgba(0,102,177,.55);
  box-shadow:0 16px 38px rgba(0,0,0,.22);
}
.bmr-sched-card--featured .bmr-sched-card__shade{
  background: linear-gradient(90deg, rgba(0,0,0,.78) 0%, rgba(0,0,0,.40) 55%, rgba(0,0,0,.18) 100%);
}

/* ---------------------------------------------------------------------
   23. Access portal â€” migrated 2026-07 from inline template CSS.
   Tokenized: #ff0000 accents -> BMW blue (interactive semantics);
   800/900 weights -> var(--bmr-w-bold). Buttons renamed .bmr-access-btn
   to avoid colliding with the global .bmr-btn component.
--------------------------------------------------------------------- */
.bmr-access-wrap {
    background: var(--bmr-paper, #ffffff);
    color: var(--bmr-text, #111);
    padding: 44px 20px 60px;
}

.bmr-access-container {
    max-width: var(--bmr-container, 1180px);
    margin: 0 auto;
}

/* Intro */
.bmr-access-intro {
    color: var(--bmr-text-soft, #444);
    line-height: 1.7;
    margin: 16px 0 28px;
    max-width: 820px;
}

/* Cards grid */
.bmr-access-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 32px;
}

@media (max-width: 1024px) {
    .bmr-access-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .bmr-access-grid { grid-template-columns: 1fr; }
}

.bmr-access-card {
    border: 1px solid var(--bmr-line-soft, #e5e5e5);
    border-radius: var(--bmr-radius-sm, 12px);
    background: var(--bmr-paper-dim, #fafafa);
    padding: 18px;
    text-decoration: none;
    color: inherit;
    transition: 0.2s ease;
    position: relative;
}

.bmr-access-card:hover {
    border-color: var(--bmr-blue, #0066B1);
    background: var(--bmr-paper, #fff);
    box-shadow: var(--bmr-shadow, 0 10px 30px rgba(0,0,0,0.06));
}

.bmr-access-card__label {
    font-weight: var(--bmr-w-bold, 700);
    letter-spacing: 0.02em;
    margin-bottom: 10px;
}

.bmr-access-card__meta {
    font-size: 13px;
    color: var(--bmr-text-soft, #666);
}

.bmr-badge {
    display: inline-flex;
    align-items: center;
    border-radius: var(--bmr-radius-pill, 999px);
    font-size: 12px;
    font-weight: var(--bmr-w-bold, 700);
    padding: 6px 10px;
    border: 1px solid var(--bmr-line, #ddd);
    background: var(--bmr-paper, #fff);
    color: var(--bmr-text-soft, #555);
}

.bmr-badge--soon {
    background: var(--bmr-paper-dim, #f2f2f2);
    color: #888;
    border-color: #e3e3e3;
}

.bmr-badge--ready {
    border-color: rgba(0,102,177,0.35);
    color: var(--bmr-blue, #0066B1);
}

/* Accordion */
.bmr-access-accordion {
    border-top: 1px solid var(--bmr-line-soft, #eee);
}

.bmr-access-details {
    border-bottom: 1px solid var(--bmr-line-soft, #eee);
    padding: 18px 0;
    scroll-margin-top: 120px; /* helps when jumping via #rdX */
}

.bmr-access-summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 8px 0;
}

.bmr-access-summary::-webkit-details-marker { display: none; }

.bmr-access-summary__left {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.bmr-access-summary__title {
    font-size: 18px;
    font-weight: var(--bmr-w-bold, 700);
    letter-spacing: 0.02em;
}

.bmr-access-summary__sub {
    font-size: 13px;
    color: var(--bmr-text-soft, #666);
}

/* Chevron */
.bmr-chev {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid var(--bmr-line-soft, #e5e5e5);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--bmr-paper, #fff);
    transition: 0.2s ease;
    flex: 0 0 auto;
}

details[open] .bmr-chev {
    border-color: rgba(0,102,177,0.45);
    transform: rotate(180deg);
}

/* Content */
.bmr-access-content {
    margin-top: 14px;
    padding: 18px;
    border-radius: var(--bmr-radius-sm, 12px);
    border: 1px solid var(--bmr-line-soft, #eaeaea);
    background: var(--bmr-paper-dim, #fafafa);
}

.bmr-access-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 900px) {
    .bmr-access-cols { grid-template-columns: 1fr; }
}

.bmr-block {
    background: var(--bmr-paper, #fff);
    border: 1px solid var(--bmr-line-soft, #e5e5e5);
    border-radius: var(--bmr-radius-sm, 12px);
    padding: 14px;
}

.bmr-block h3 {
    font-size: 14px;
    font-weight: var(--bmr-w-bold, 700);
    letter-spacing: 0.03em;
    margin: 0 0 10px;
    text-transform: uppercase;
    color: var(--bmr-teal, #005A74);
}

.bmr-text {
    color: var(--bmr-text, #333);
    line-height: 1.7;
    font-size: 14px;
    margin: 0 0 10px;
}

.bmr-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.bmr-access-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 14px;
    border-radius: 10px;
    font-weight: var(--bmr-w-bold, 700);
    letter-spacing: 0.03em;
    text-decoration: none;
    border: 1px solid var(--bmr-line, #ddd);
    background: var(--bmr-paper, #fff);
    color: var(--bmr-text, #111);
    transition: 0.2s ease;
}

.bmr-access-btn:hover {
    border-color: var(--bmr-blue, #0066B1);
    color: var(--bmr-blue, #0066B1);
}

.bmr-access-btn--primary {
    background: var(--bmr-blue, #0066B1);
    color: #fff;
    border-color: var(--bmr-blue, #0066B1);
}

.bmr-access-btn--primary:hover {
    background: var(--bmr-blue-hover, #0076CC);
    border-color: var(--bmr-blue-hover, #0076CC);
    color: #fff;
}

/* Map images */
.bmr-map {
    width: 100%;
    border-radius: 10px;
    border: 1px solid var(--bmr-line-soft, #e5e5e5);
    cursor: zoom-in;
    display: block;
}

/* Coming soon box */
.bmr-soon {
    padding: 14px;
    border-radius: var(--bmr-radius-sm, 12px);
    border: 1px dashed #d9d9d9;
    background: var(--bmr-paper, #fff);
    color: var(--bmr-text-soft, #666);
    line-height: 1.7;
    font-size: 14px;
}

/* Zoom overlay */
#bmr-zoom-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.92);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    cursor: zoom-out;
    padding: 20px;
}
#bmr-zoom-overlay img {
    max-width: 95%;
    max-height: 92%;
    border-radius: 10px;
}

/* ---------------------------------------------------------------------
   24. Drivers archive â€” migrated 2026-07 from inline template CSS.
   Tokenized: 900 weights -> var(--bmr-w-bold); radii -> tokens.
   Hero typography comes from .bmr-page-head--dark (bmr-theme.css);
   pills use the global .bmr-pill--inv component. All other classes
   renamed bmr-drv-* (the old .bmr-photo collided with the gallery).
--------------------------------------------------------------------- */
.bmr-drv-wrap { max-width: var(--bmr-container, 1180px); margin: 0 auto; padding: 28px 20px 44px; }

/* Hero card: shape lives here; kicker/title/sub colors come from
   .bmr-page-head--dark in bmr-theme.css */
.bmr-drv-hero {
  border-radius: var(--bmr-radius, 16px);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 14px 40px rgba(0,0,0,.22);
  padding: 0; /* hero band padding handled by inner */
}
.bmr-drv-hero-inner {
  padding: 28px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  background:
    radial-gradient(900px 320px at 10% 0%, rgba(255,255,255,.12), rgba(255,255,255,0) 55%),
    linear-gradient(135deg, rgba(255,255,255,.08), rgba(255,255,255,0));
}
.bmr-drv-hero .bmr-page-head { padding: 0; }
.bmr-drv-pills { display: flex; gap: 10px; flex-wrap: wrap; }

/* Grid */
.bmr-drv-grid { margin-top: 18px; display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px; }

/* Card */
.bmr-drv-card {
  grid-column: span 4;
  display: block;
  text-decoration: none;
  color: #fff;
  border-radius: var(--bmr-radius, 16px);
  overflow: hidden;
  background: var(--bmr-ink-deep, #0b0c10);
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 10px 28px rgba(0,0,0,.18);
  transform: translateZ(0);
  transition: transform .14s ease, border-color .14s ease, box-shadow .14s ease;
}
.bmr-drv-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255,255,255,.20);
  box-shadow: 0 16px 44px rgba(0,0,0,.28);
}

.bmr-drv-card-top {
  position: relative;
  padding: 16px;
  min-height: 150px;
  background:
    radial-gradient(900px 260px at 12% 0%, rgba(255,255,255,.14), rgba(255,255,255,0) 55%),
    linear-gradient(135deg, rgba(255,255,255,.06), rgba(255,255,255,0));
}
.bmr-drv-num {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 44px;
  font-weight: var(--bmr-w-bold, 700);
  letter-spacing: .5px;
  opacity: .98;
}

.bmr-drv-photo {
  width: 112px;
  height: 112px;
  border-radius: var(--bmr-radius, 16px);
  overflow: hidden;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
}
.bmr-drv-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bmr-drv-photo--ph {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%;
  font-size: 11px; opacity: .7;
}

.bmr-drv-card-body { padding: 14px 16px 16px; }
.bmr-drv-name { margin: 0 0 6px; font-size: 18px; font-weight: var(--bmr-w-bold, 700); line-height: 1.2; color: #fff; }
.bmr-drv-meta { display: flex; flex-wrap: wrap; gap: 8px; opacity: .88; font-size: 12px; }
.bmr-drv-chip {
  padding: 6px 10px;
  border-radius: var(--bmr-radius-pill, 999px);
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: #fff;
}

.bmr-drv-empty {
  margin-top: 18px;
  padding: 18px;
  background: var(--bmr-paper, #fff);
  border-radius: var(--bmr-radius, 16px);
  border: 1px solid var(--bmr-line-soft, rgba(0,0,0,.08));
  color: var(--bmr-text-soft, rgba(17,17,17,.75));
}

@media (max-width: 1020px){
  .bmr-drv-card { grid-column: span 6; }
}
@media (max-width: 700px){
  .bmr-drv-hero-inner { flex-direction: column; align-items: flex-start; }
  .bmr-drv-card { grid-column: span 12; }
}

/* ============================================================
   25. Join Us (entry) page â€” restyled 2026-07 to BMR system.
   Was: inline <style> with system-ui fonts, #0b5bd3 gradient
   accent, 800/900 faux weights. Now: tokens, BMWTypeNext,
   teal identity + BMW blue interactive, red only on PDF chips.
   Scope: .bmr-join (template page-joinus.php)
   ============================================================ */

.bmr-join {
  font-family: var(--bmr-font, 'BMWTypeNext', 'Hiragino Kaku Gothic ProN', sans-serif);
  color: var(--bmr-text, #111);
}
.bmr-join * { box-sizing: border-box; }
.bmr-join a { color: inherit; text-decoration: none; }

.bmr-join .wrap {
  width: min(var(--bmr-container, 1180px), calc(100% - 48px));
  margin: 0 auto;
}
@media (max-width: 720px) { .bmr-join .wrap { width: calc(100% - 28px); } }

/* --- Hero: uses global .bmr-page-head / .bmr-kicker / .bmr-page-title --- */
.bmr-join .hero { padding: 40px 0 10px; }
.bmr-join .lead {
  margin: 14px 0 0;
  max-width: 860px;
  color: var(--bmr-text-soft, rgba(17,17,17,.65));
  font-size: 16px;
  line-height: 1.75;
}

/* --- Buttons (namespaced: Kleo owns .btn) --- */
.bmr-join .ctaRow { margin-top: 22px; display: flex; gap: 12px; flex-wrap: wrap; }
.bmr-join .jbtn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 18px;
  border-radius: var(--bmr-radius-pill, 999px);
  border: 1px solid var(--bmr-line, rgba(0,0,0,.12));
  background: var(--bmr-paper, #fff);
  font-family: var(--bmr-font);
  font-size: 14px;
  font-weight: var(--bmr-w-bold, 700);
  color: var(--bmr-text, #111);
  line-height: 1.2;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.bmr-join .jbtn:hover { transform: translateY(-1px); border-color: rgba(0,0,0,.28); }
.bmr-join .jbtn--primary {
  background: var(--bmr-blue, #0066B1);
  border-color: var(--bmr-blue, #0066B1);
  color: #fff;
  box-shadow: var(--bmr-shadow, 0 10px 30px rgba(0,0,0,.06));
}
.bmr-join .jbtn--primary:hover { background: var(--bmr-blue-hover, #0076CC); border-color: var(--bmr-blue-hover, #0076CC); color: #fff; }
.bmr-join .jbtn .icoPdf { width: 20px; height: 20px; display: block; }

/* --- Series selector --- */
.bmr-join .selectors { padding: 22px 0 8px; }
.bmr-join .seriesGrid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 860px) { .bmr-join .seriesGrid { grid-template-columns: 1fr; } }

.bmr-join .seriesCard {
  display: flex; align-items: center; gap: 14px;
  padding: 16px;
  border-radius: var(--bmr-radius, 16px);
  border: 1px solid var(--bmr-line-soft, rgba(0,0,0,.08));
  background: var(--bmr-paper, #fff);
  box-shadow: var(--bmr-shadow, 0 10px 30px rgba(0,0,0,.06));
  text-align: left;
  cursor: pointer;
  font-family: var(--bmr-font);
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.bmr-join .seriesCard:hover { transform: translateY(-1px); box-shadow: var(--bmr-shadow-lift, 0 18px 34px rgba(0,0,0,.10)); }
.bmr-join .seriesCard .logo {
  flex: 0 0 auto;
  width: 56px; height: 56px;
  border-radius: var(--bmr-radius-sm, 12px);
  display: grid; place-items: center;
  background: var(--bmr-ink-deep, #0b0c10); /* white logos need dark ground */
  overflow: hidden;
}
.bmr-join .seriesCard .logo img { width: 42px; height: 42px; object-fit: contain; display: block; }
.bmr-join .seriesCard .txt .en { display: block; font-size: 17px; font-weight: var(--bmr-w-bold, 700); letter-spacing: .02em; }
.bmr-join .seriesCard .txt .ja { display: block; margin-top: 3px; color: var(--bmr-text-soft); font-size: 13px; }

.bmr-join .seriesCard.isActive {
  background: var(--bmr-teal, #005A74);
  border-color: var(--bmr-teal, #005A74);
  color: #fff;
}
.bmr-join .seriesCard.isActive .txt .ja { color: var(--bmr-text-inv-soft, rgba(255,255,255,.75)); }
.bmr-join .seriesCard.isActive .logo { background: rgba(255,255,255,.14); }

/* --- Class selector --- */
.bmr-join .classGrid { margin-top: 14px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (max-width: 860px) { .bmr-join .classGrid { grid-template-columns: 1fr; } }

.bmr-join .classCard {
  position: relative;
  padding: 16px;
  border-radius: var(--bmr-radius, 16px);
  border: 1px solid var(--bmr-line-soft, rgba(0,0,0,.08));
  background: var(--bmr-paper, #fff);
  box-shadow: var(--bmr-shadow, 0 10px 30px rgba(0,0,0,.06));
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  text-align: left;
  cursor: pointer;
  font-family: var(--bmr-font);
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.bmr-join .classCard:hover { transform: translateY(-1px); box-shadow: var(--bmr-shadow-lift); }
.bmr-join .classCard .meta { min-width: 0; }
.bmr-join .classCard .brand {
  letter-spacing: var(--bmr-track, .14em); text-transform: uppercase;
  font-size: 11px; font-weight: var(--bmr-w-bold, 700);
  color: var(--bmr-text-soft);
}
.bmr-join .classCard .title { margin-top: 6px; font-size: 21px; font-weight: var(--bmr-w-bold, 700); }
.bmr-join .classCard .sub { margin-top: 5px; color: var(--bmr-text-soft); font-size: 13px; }
.bmr-join .classCard .arrow { font-size: 18px; color: var(--bmr-blue, #0066B1); font-weight: var(--bmr-w-bold, 700); }

.bmr-join .classCard.isActive {
  background: var(--bmr-ink, #111);
  border-color: var(--bmr-ink, #111);
  color: #fff;
  box-shadow: var(--bmr-shadow-dark, 0 18px 40px rgba(0,0,0,.35));
}
.bmr-join .classCard.isActive .brand { color: var(--bmr-text-inv-soft); }
.bmr-join .classCard.isActive .sub { color: var(--bmr-text-inv-soft); }
.bmr-join .classCard.isActive .arrow { color: #fff; }

/* --- Detail --- */
.bmr-join .detail { margin-top: 22px; padding: 20px 0 10px; }
.bmr-join .detailHead {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  padding: 20px 0 18px;
  border-top: 1px solid var(--bmr-line-soft);
}
@media (max-width: 860px) { .bmr-join .detailHead { flex-direction: column; align-items: flex-start; } }
.bmr-join .detailHead .hgroup h2 {
  margin: 0;
  font-family: var(--bmr-font);
  font-size: 32px;
  font-weight: var(--bmr-w-bold, 700);
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--bmr-teal, #005A74);
}
.bmr-join .detailHead .hgroup .sub { margin-top: 6px; color: var(--bmr-text-soft); font-size: 14px; }
.bmr-join .detailHead .actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 860px) { .bmr-join .detailHead .actions { justify-content: flex-start; } }

.bmr-join .detailGrid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 26px; align-items: start; }
@media (max-width: 980px) { .bmr-join .detailGrid { grid-template-columns: 1fr; } }

.bmr-join .carMedia {
  background:
    radial-gradient(90% 90% at 50% 20%, var(--bmr-teal-soft, rgba(0,90,116,.08)), rgba(0,0,0,0) 60%),
    var(--bmr-paper-dim, #f6f7f8);
  border-radius: var(--bmr-radius, 16px);
  overflow: hidden;
  min-height: 480px;
  display: flex; align-items: center; justify-content: center;
  padding: 18px;
}
@media (max-width: 980px) { .bmr-join .carMedia { min-height: 340px; } }
.bmr-join .carMedia img { width: 100%; height: 100%; object-fit: contain; max-height: 520px; display: block; }

.bmr-join .infoStack { padding-top: 4px; }
.bmr-join .sectionTitle {
  display: flex; align-items: center; gap: 10px;
  margin: 16px 0 10px;
  letter-spacing: var(--bmr-track, .14em); text-transform: uppercase;
  color: var(--bmr-text-soft); font-weight: var(--bmr-w-bold, 700); font-size: 12px;
}
.bmr-join .dot { width: 8px; height: 8px; border-radius: 999px; background: var(--bmr-blue, #0066B1); }

.bmr-join .licenseLine {
  font-weight: var(--bmr-w-bold, 700); font-size: 16px; line-height: 1.6;
  padding-bottom: 14px; border-bottom: 1px solid var(--bmr-line-soft);
}

.bmr-join .specList { margin-top: 10px; }
.bmr-join .specRow {
  display: grid; grid-template-columns: 190px 1fr; gap: 12px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--bmr-line-soft);
  font-size: 14px;
}
.bmr-join .specRow:last-child { border-bottom: none; }
.bmr-join .specRow .k { color: var(--bmr-text-soft); }
.bmr-join .specRow .v { font-weight: var(--bmr-w-bold, 700); color: var(--bmr-text); }
@media (max-width: 520px) {
  .bmr-join .specRow { grid-template-columns: 1fr; gap: 6px; }
  .bmr-join .specRow .v { font-size: 15px; }
}

/* --- Entry fee --- */
.bmr-join .feeBlock { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--bmr-line-soft); }
.bmr-join .feeHeader { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.bmr-join .feeBadge {
  width: 44px; height: 44px;
  border-radius: var(--bmr-radius-sm, 12px);
  display: grid; place-items: center;
  background: var(--bmr-teal-soft, rgba(0,90,116,.08));
  font-weight: var(--bmr-w-bold, 700);
  font-size: 18px;
  color: var(--bmr-teal, #005A74);
}
.bmr-join .feeHeader .t { display: flex; flex-direction: column; }
.bmr-join .feeHeader .t .en {
  letter-spacing: var(--bmr-track, .14em); text-transform: uppercase;
  color: var(--bmr-text-soft); font-weight: var(--bmr-w-bold, 700); font-size: 12px;
}
.bmr-join .feeHeader .t .ja { margin-top: 2px; font-weight: var(--bmr-w-bold, 700); font-size: 18px; color: var(--bmr-text); }

.bmr-join .feeGrid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 980px) { .bmr-join .feeGrid { grid-template-columns: 1fr; } }

.bmr-join .feeCard h3 {
  margin: 0 0 10px;
  font-family: var(--bmr-font);
  font-size: 17px; font-weight: var(--bmr-w-bold, 700);
  padding-bottom: 10px; border-bottom: 1px solid var(--bmr-line-soft);
}
.bmr-join .feeRow {
  display: grid; grid-template-columns: 1fr auto; gap: 12px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--bmr-line-soft);
  align-items: baseline;
  font-size: 14px;
}
.bmr-join .feeRow:last-child { border-bottom: none; }
.bmr-join .feeRow .label { line-height: 1.5; color: var(--bmr-text); }
.bmr-join .feeRow .label strong { font-weight: var(--bmr-w-bold, 700); }
.bmr-join .feeRow .price { font-weight: var(--bmr-w-bold, 700); color: var(--bmr-text); white-space: nowrap; }
.bmr-join .feeRow .note { display: block; margin-top: 4px; color: var(--bmr-text-soft); font-size: 12px; font-weight: 400; }
.bmr-join .feeFoot { margin-top: 10px; color: var(--bmr-text-soft); font-size: 12px; line-height: 1.65; }
@media (max-width: 520px) {
  .bmr-join .feeRow { grid-template-columns: 1fr; }
  .bmr-join .feeRow .price { white-space: normal; }
}

/* --- Bottom links --- */
.bmr-join .bottomLinks {
  margin: 26px 0 50px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
  border-top: 1px solid var(--bmr-line-soft); padding-top: 20px;
}
@media (max-width: 860px) { .bmr-join .bottomLinks { grid-template-columns: 1fr; } }

.bmr-join .linkCard {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px;
  border-radius: var(--bmr-radius, 16px);
  border: 1px solid var(--bmr-line-soft);
  background: var(--bmr-paper, #fff);
  box-shadow: var(--bmr-shadow);
  transition: transform .15s ease, box-shadow .15s ease;
}
.bmr-join .linkCard:hover { transform: translateY(-1px); box-shadow: var(--bmr-shadow-lift); }
.bmr-join .linkCard .tag {
  letter-spacing: var(--bmr-track, .14em); text-transform: uppercase;
  font-weight: var(--bmr-w-bold, 700); font-size: 11px; color: var(--bmr-text-soft);
}
.bmr-join .linkCard .name { font-weight: var(--bmr-w-bold, 700); font-size: 15px; margin-top: 4px; }
.bmr-join .linkCard .go { color: var(--bmr-blue, #0066B1); font-weight: var(--bmr-w-bold, 700); font-size: 18px; }

/* ============================================================
   26. Regulations pages (season-archived) â€” 2026-07.
   New canonical structure for /regulations-2026/ and future
   seasons; also skins the season-switcher retrofitted onto
   /regulations-2025/. Scope: .bmr-reg
   ============================================================ */

.bmr-reg {
  font-family: var(--bmr-font, 'BMWTypeNext', 'Hiragino Kaku Gothic ProN', sans-serif);
  color: var(--bmr-text, #111);
}
.bmr-reg .bmr-reg-wrap { max-width: var(--bmr-container, 1180px); margin: 0 auto; padding: 0 20px; }

/* Season switcher (archive nav) */
.bmr-reg-seasons {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin: 18px 0 8px;
}
.bmr-reg-season {
  display: inline-flex; align-items: center;
  padding: 9px 18px;
  border-radius: var(--bmr-radius-pill, 999px);
  border: 1px solid var(--bmr-line, rgba(0,0,0,.12));
  background: var(--bmr-paper, #fff);
  font-size: 13px; font-weight: var(--bmr-w-bold, 700);
  letter-spacing: .06em;
  color: var(--bmr-text, #111);
  text-decoration: none;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.bmr-reg-season:hover { transform: translateY(-1px); border-color: rgba(0,0,0,.3); color: var(--bmr-text); }
.bmr-reg-season.is-current {
  background: var(--bmr-teal, #005A74);
  border-color: var(--bmr-teal, #005A74);
  color: #fff;
  pointer-events: none;
}
.bmr-reg-archive-note {
  margin: 6px 0 0; font-size: 12px; color: var(--bmr-text-soft, rgba(17,17,17,.65));
}

/* Section blocks */
.bmr-reg-section { margin: 44px 0 0; }
.bmr-reg-section-head {
  display: flex; align-items: baseline; gap: 14px;
  padding-bottom: 12px; margin-bottom: 18px;
  border-bottom: 2px solid var(--bmr-teal, #005A74);
}
.bmr-reg-section-title {
  margin: 0;
  font-size: 22px; font-weight: var(--bmr-w-bold, 700);
  letter-spacing: .04em; text-transform: uppercase;
  color: var(--bmr-teal, #005A74);
}
.bmr-reg-section-title-ja { font-size: 14px; color: var(--bmr-text-soft); font-weight: var(--bmr-w-bold, 700); }

/* Rule cards */
.bmr-reg-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
@media (max-width: 860px) { .bmr-reg-grid { grid-template-columns: 1fr; } }

.bmr-reg-card {
  background: var(--bmr-paper, #fff);
  border: 1px solid var(--bmr-line-soft, rgba(0,0,0,.08));
  border-radius: var(--bmr-radius, 16px);
  box-shadow: var(--bmr-shadow, 0 10px 30px rgba(0,0,0,.06));
  padding: 20px;
}
.bmr-reg-card--wide { grid-column: 1 / -1; }
.bmr-reg-card-kicker {
  margin: 0 0 8px;
  font-size: 11px; font-weight: var(--bmr-w-bold, 700);
  letter-spacing: var(--bmr-track, .14em); text-transform: uppercase;
  color: var(--bmr-text-soft);
}
.bmr-reg-card-title { margin: 0 0 10px; font-size: 17px; font-weight: var(--bmr-w-bold, 700); }
.bmr-reg-card p { margin: 0 0 10px; font-size: 14px; line-height: 1.8; }
.bmr-reg-card p:last-child { margin-bottom: 0; }
.bmr-reg-note { font-size: 12px; color: var(--bmr-text-soft); line-height: 1.7; }

/* Class logo row above TablePress tables */
.bmr-reg-classlogo { display: flex; align-items: center; margin: 26px 0 10px; }
.bmr-reg-classlogo img { height: 44px; width: auto; display: block; }

/* Tire allocation chips */
.bmr-reg-tires { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
@media (max-width: 700px) { .bmr-reg-tires { grid-template-columns: 1fr; } }
.bmr-reg-tire {
  background: var(--bmr-paper, #fff);
  border: 1px solid var(--bmr-line-soft, rgba(0,0,0,.08));
  border-radius: var(--bmr-radius, 16px);
  box-shadow: var(--bmr-shadow);
  padding: 18px 20px;
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
}
.bmr-reg-tire .cls { font-weight: var(--bmr-w-bold, 700); font-size: 15px; }
.bmr-reg-tire .qty { font-weight: var(--bmr-w-bold, 700); font-size: 26px; color: var(--bmr-teal, #005A74); }
.bmr-reg-tire .qty small { font-size: 13px; color: var(--bmr-text-soft); font-weight: 400; margin-left: 2px; }

/* GRAN HEAT special-regulation band (dark, event-flavored) */
.bmr-reg-special {
  margin-top: 48px;
  background: var(--bmr-ink-deep, #0b0c10);
  color: #fff;
  border-radius: var(--bmr-radius, 16px);
  padding: 30px 26px;
  box-shadow: var(--bmr-shadow-dark, 0 18px 40px rgba(0,0,0,.35));
}
.bmr-reg-special-kicker {
  margin: 0 0 6px;
  font-size: 11px; font-weight: var(--bmr-w-bold, 700);
  letter-spacing: var(--bmr-track, .14em); text-transform: uppercase;
  color: var(--bmr-red, #E41C2A);
}
.bmr-reg-special-title {
  margin: 0 0 6px;
  font-size: 26px; font-weight: var(--bmr-w-bold, 700);
  letter-spacing: .04em; text-transform: uppercase;
  color: #fff;
}
.bmr-reg-special-sub { margin: 0 0 20px; font-size: 13px; color: var(--bmr-text-inv-soft, rgba(255,255,255,.75)); }
.bmr-reg-special .bmr-reg-grid { gap: 14px; }
.bmr-reg-special .bmr-reg-card {
  background: rgba(255,255,255,.05);
  border-color: var(--bmr-line-inv, rgba(255,255,255,.14));
  box-shadow: none;
  color: #fff;
}
.bmr-reg-special .bmr-reg-card-kicker { color: var(--bmr-text-inv-soft); }
.bmr-reg-special .bmr-reg-card p { color: rgba(255,255,255,.92); }
.bmr-reg-special .bmr-reg-note { color: var(--bmr-text-inv-soft); }
.bmr-reg-special-cta { margin-top: 18px; }

/* PDF chip (red is reserved for PDF links site-wide) */
.bmr-reg-pdf {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  border-radius: var(--bmr-radius-pill, 999px);
  background: var(--bmr-red-soft, rgba(228,28,42,.10));
  border: 1px solid rgba(228,28,42,.25);
  color: var(--bmr-red, #E41C2A);
  font-size: 13px; font-weight: var(--bmr-w-bold, 700);
  text-decoration: none;
  transition: transform .15s ease;
}
.bmr-reg-pdf:hover { transform: translateY(-1px); color: var(--bmr-red); }

/* =====================================================================
   APPEND-ONLY ADDITIONS to kleo-child/css/bmr-pages.css  (2026-07)
   HOW TO USE: open your current live bmr-pages.css in a text editor,
   paste EVERYTHING in this file at the very bottom, save, upload.
   Do NOT replace the file - these sections only ADD new classes
   (.bmr-join / .bmr-reg) used by the Join Us page and the new
   Regulations pages. Nothing existing is modified.
   ===================================================================== */

/* ============================================================
   25. Join Us (entry) page - restyled 2026-07 to BMR system.
   Was: inline <style> with system-ui fonts, #0b5bd3 gradient
   accent, 800/900 faux weights. Now: tokens, BMWTypeNext,
   teal identity + BMW blue interactive, red only on PDF chips.
   Scope: .bmr-join (template page-joinus.php)
   ============================================================ */

.bmr-join {
  font-family: var(--bmr-font, 'BMWTypeNext', 'Hiragino Kaku Gothic ProN', sans-serif);
  color: var(--bmr-text, #111);
}
.bmr-join * { box-sizing: border-box; }
.bmr-join a { color: inherit; text-decoration: none; }

.bmr-join .wrap {
  width: min(var(--bmr-container, 1180px), calc(100% - 48px));
  margin: 0 auto;
}
@media (max-width: 720px) { .bmr-join .wrap { width: calc(100% - 28px); } }

/* --- Hero: uses global .bmr-page-head / .bmr-kicker / .bmr-page-title --- */
.bmr-join .hero { padding: 40px 0 10px; }
.bmr-join .lead {
  margin: 14px 0 0;
  max-width: 860px;
  color: var(--bmr-text-soft, rgba(17,17,17,.65));
  font-size: 16px;
  line-height: 1.75;
}

/* --- Buttons (namespaced: Kleo owns .btn) --- */
.bmr-join .ctaRow { margin-top: 22px; display: flex; gap: 12px; flex-wrap: wrap; }
.bmr-join .jbtn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 18px;
  border-radius: var(--bmr-radius-pill, 999px);
  border: 1px solid var(--bmr-line, rgba(0,0,0,.12));
  background: var(--bmr-paper, #fff);
  font-family: var(--bmr-font);
  font-size: 14px;
  font-weight: var(--bmr-w-bold, 700);
  color: var(--bmr-text, #111);
  line-height: 1.2;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.bmr-join .jbtn:hover { transform: translateY(-1px); border-color: rgba(0,0,0,.28); }
.bmr-join .jbtn--primary {
  background: var(--bmr-blue, #0066B1);
  border-color: var(--bmr-blue, #0066B1);
  color: #fff;
  box-shadow: var(--bmr-shadow, 0 10px 30px rgba(0,0,0,.06));
}
.bmr-join .jbtn--primary:hover { background: var(--bmr-blue-hover, #0076CC); border-color: var(--bmr-blue-hover, #0076CC); color: #fff; }
.bmr-join .jbtn .icoPdf { width: 20px; height: 20px; display: block; }

/* --- Series selector --- */
.bmr-join .selectors { padding: 22px 0 8px; }
.bmr-join .seriesGrid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 860px) { .bmr-join .seriesGrid { grid-template-columns: 1fr; } }

.bmr-join .seriesCard {
  display: flex; align-items: center; gap: 14px;
  padding: 16px;
  border-radius: var(--bmr-radius, 16px);
  border: 1px solid var(--bmr-line-soft, rgba(0,0,0,.08));
  background: var(--bmr-paper, #fff);
  box-shadow: var(--bmr-shadow, 0 10px 30px rgba(0,0,0,.06));
  text-align: left;
  cursor: pointer;
  font-family: var(--bmr-font);
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.bmr-join .seriesCard:hover { transform: translateY(-1px); box-shadow: var(--bmr-shadow-lift, 0 18px 34px rgba(0,0,0,.10)); }
.bmr-join .seriesCard .logo {
  flex: 0 0 auto;
  width: 56px; height: 56px;
  border-radius: var(--bmr-radius-sm, 12px);
  display: grid; place-items: center;
  background: var(--bmr-ink-deep, #0b0c10); /* white logos need dark ground */
  overflow: hidden;
}
.bmr-join .seriesCard .logo img { width: 42px; height: 42px; object-fit: contain; display: block; }
.bmr-join .seriesCard .txt .en { display: block; font-size: 17px; font-weight: var(--bmr-w-bold, 700); letter-spacing: .02em; }
.bmr-join .seriesCard .txt .ja { display: block; margin-top: 3px; color: var(--bmr-text-soft); font-size: 13px; }

.bmr-join .seriesCard.isActive {
  background: var(--bmr-teal, #005A74);
  border-color: var(--bmr-teal, #005A74);
  color: #fff;
}
.bmr-join .seriesCard.isActive .txt .ja { color: var(--bmr-text-inv-soft, rgba(255,255,255,.75)); }
.bmr-join .seriesCard.isActive .logo { background: rgba(255,255,255,.14); }

/* --- Class selector --- */
.bmr-join .classGrid { margin-top: 14px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (max-width: 860px) { .bmr-join .classGrid { grid-template-columns: 1fr; } }

.bmr-join .classCard {
  position: relative;
  padding: 16px;
  border-radius: var(--bmr-radius, 16px);
  border: 1px solid var(--bmr-line-soft, rgba(0,0,0,.08));
  background: var(--bmr-paper, #fff);
  box-shadow: var(--bmr-shadow, 0 10px 30px rgba(0,0,0,.06));
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  text-align: left;
  cursor: pointer;
  font-family: var(--bmr-font);
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.bmr-join .classCard:hover { transform: translateY(-1px); box-shadow: var(--bmr-shadow-lift); }
.bmr-join .classCard .meta { min-width: 0; }
.bmr-join .classCard .brand {
  letter-spacing: var(--bmr-track, .14em); text-transform: uppercase;
  font-size: 11px; font-weight: var(--bmr-w-bold, 700);
  color: var(--bmr-text-soft);
}
.bmr-join .classCard .title { margin-top: 6px; font-size: 21px; font-weight: var(--bmr-w-bold, 700); }
.bmr-join .classCard .sub { margin-top: 5px; color: var(--bmr-text-soft); font-size: 13px; }
.bmr-join .classCard .arrow { font-size: 18px; color: var(--bmr-blue, #0066B1); font-weight: var(--bmr-w-bold, 700); }

.bmr-join .classCard.isActive {
  background: var(--bmr-ink, #111);
  border-color: var(--bmr-ink, #111);
  color: #fff;
  box-shadow: var(--bmr-shadow-dark, 0 18px 40px rgba(0,0,0,.35));
}
.bmr-join .classCard.isActive .brand { color: var(--bmr-text-inv-soft); }
.bmr-join .classCard.isActive .sub { color: var(--bmr-text-inv-soft); }
.bmr-join .classCard.isActive .arrow { color: #fff; }

/* --- Detail --- */
.bmr-join .detail { margin-top: 22px; padding: 20px 0 10px; }
.bmr-join .detailHead {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  padding: 20px 0 18px;
  border-top: 1px solid var(--bmr-line-soft);
}
@media (max-width: 860px) { .bmr-join .detailHead { flex-direction: column; align-items: flex-start; } }
.bmr-join .detailHead .hgroup h2 {
  margin: 0;
  font-family: var(--bmr-font);
  font-size: 32px;
  font-weight: var(--bmr-w-bold, 700);
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--bmr-teal, #005A74);
}
.bmr-join .detailHead .hgroup .sub { margin-top: 6px; color: var(--bmr-text-soft); font-size: 14px; }
.bmr-join .detailHead .actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 860px) { .bmr-join .detailHead .actions { justify-content: flex-start; } }

.bmr-join .detailGrid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 26px; align-items: start; }
@media (max-width: 980px) { .bmr-join .detailGrid { grid-template-columns: 1fr; } }

.bmr-join .carMedia {
  background:
    radial-gradient(90% 90% at 50% 20%, var(--bmr-teal-soft, rgba(0,90,116,.08)), rgba(0,0,0,0) 60%),
    var(--bmr-paper-dim, #f6f7f8);
  border-radius: var(--bmr-radius, 16px);
  overflow: hidden;
  min-height: 480px;
  display: flex; align-items: center; justify-content: center;
  padding: 18px;
}
@media (max-width: 980px) { .bmr-join .carMedia { min-height: 340px; } }
.bmr-join .carMedia img { width: 100%; height: 100%; object-fit: contain; max-height: 520px; display: block; }

.bmr-join .infoStack { padding-top: 4px; }
.bmr-join .sectionTitle {
  display: flex; align-items: center; gap: 10px;
  margin: 16px 0 10px;
  letter-spacing: var(--bmr-track, .14em); text-transform: uppercase;
  color: var(--bmr-text-soft); font-weight: var(--bmr-w-bold, 700); font-size: 12px;
}
.bmr-join .dot { width: 8px; height: 8px; border-radius: 999px; background: var(--bmr-blue, #0066B1); }

.bmr-join .licenseLine {
  font-weight: var(--bmr-w-bold, 700); font-size: 16px; line-height: 1.6;
  padding-bottom: 14px; border-bottom: 1px solid var(--bmr-line-soft);
}

.bmr-join .specList { margin-top: 10px; }
.bmr-join .specRow {
  display: grid; grid-template-columns: 190px 1fr; gap: 12px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--bmr-line-soft);
  font-size: 14px;
}
.bmr-join .specRow:last-child { border-bottom: none; }
.bmr-join .specRow .k { color: var(--bmr-text-soft); }
.bmr-join .specRow .v { font-weight: var(--bmr-w-bold, 700); color: var(--bmr-text); }
@media (max-width: 520px) {
  .bmr-join .specRow { grid-template-columns: 1fr; gap: 6px; }
  .bmr-join .specRow .v { font-size: 15px; }
}

/* --- Entry fee --- */
.bmr-join .feeBlock { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--bmr-line-soft); }
.bmr-join .feeHeader { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.bmr-join .feeBadge {
  width: 44px; height: 44px;
  border-radius: var(--bmr-radius-sm, 12px);
  display: grid; place-items: center;
  background: var(--bmr-teal-soft, rgba(0,90,116,.08));
  font-weight: var(--bmr-w-bold, 700);
  font-size: 18px;
  color: var(--bmr-teal, #005A74);
}
.bmr-join .feeHeader .t { display: flex; flex-direction: column; }
.bmr-join .feeHeader .t .en {
  letter-spacing: var(--bmr-track, .14em); text-transform: uppercase;
  color: var(--bmr-text-soft); font-weight: var(--bmr-w-bold, 700); font-size: 12px;
}
.bmr-join .feeHeader .t .ja { margin-top: 2px; font-weight: var(--bmr-w-bold, 700); font-size: 18px; color: var(--bmr-text); }

.bmr-join .feeGrid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 980px) { .bmr-join .feeGrid { grid-template-columns: 1fr; } }

.bmr-join .feeCard h3 {
  margin: 0 0 10px;
  font-family: var(--bmr-font);
  font-size: 17px; font-weight: var(--bmr-w-bold, 700);
  padding-bottom: 10px; border-bottom: 1px solid var(--bmr-line-soft);
}
.bmr-join .feeRow {
  display: grid; grid-template-columns: 1fr auto; gap: 12px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--bmr-line-soft);
  align-items: baseline;
  font-size: 14px;
}
.bmr-join .feeRow:last-child { border-bottom: none; }
.bmr-join .feeRow .label { line-height: 1.5; color: var(--bmr-text); }
.bmr-join .feeRow .label strong { font-weight: var(--bmr-w-bold, 700); }
.bmr-join .feeRow .price { font-weight: var(--bmr-w-bold, 700); color: var(--bmr-text); white-space: nowrap; }
.bmr-join .feeRow .note { display: block; margin-top: 4px; color: var(--bmr-text-soft); font-size: 12px; font-weight: 400; }
.bmr-join .feeFoot { margin-top: 10px; color: var(--bmr-text-soft); font-size: 12px; line-height: 1.65; }
@media (max-width: 520px) {
  .bmr-join .feeRow { grid-template-columns: 1fr; }
  .bmr-join .feeRow .price { white-space: normal; }
}

/* --- Bottom links --- */
.bmr-join .bottomLinks {
  margin: 26px 0 50px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
  border-top: 1px solid var(--bmr-line-soft); padding-top: 20px;
}
@media (max-width: 860px) { .bmr-join .bottomLinks { grid-template-columns: 1fr; } }

.bmr-join .linkCard {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px;
  border-radius: var(--bmr-radius, 16px);
  border: 1px solid var(--bmr-line-soft);
  background: var(--bmr-paper, #fff);
  box-shadow: var(--bmr-shadow);
  transition: transform .15s ease, box-shadow .15s ease;
}
.bmr-join .linkCard:hover { transform: translateY(-1px); box-shadow: var(--bmr-shadow-lift); }
.bmr-join .linkCard .tag {
  letter-spacing: var(--bmr-track, .14em); text-transform: uppercase;
  font-weight: var(--bmr-w-bold, 700); font-size: 11px; color: var(--bmr-text-soft);
}
.bmr-join .linkCard .name { font-weight: var(--bmr-w-bold, 700); font-size: 15px; margin-top: 4px; }
.bmr-join .linkCard .go { color: var(--bmr-blue, #0066B1); font-weight: var(--bmr-w-bold, 700); font-size: 18px; }

/* ============================================================
   26. Regulations pages (season-archived) - 2026-07.
   New canonical structure for /regulations-2026/ and future
   seasons; also skins the season-switcher retrofitted onto
   /regulations-2025/. Scope: .bmr-reg
   ============================================================ */

.bmr-reg {
  font-family: var(--bmr-font, 'BMWTypeNext', 'Hiragino Kaku Gothic ProN', sans-serif);
  color: var(--bmr-text, #111);
}
.bmr-reg .bmr-reg-wrap { max-width: var(--bmr-container, 1180px); margin: 0 auto; padding: 0 20px; }

/* Season switcher (archive nav) */
.bmr-reg-seasons {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin: 18px 0 8px;
}
.bmr-reg-season {
  display: inline-flex; align-items: center;
  padding: 9px 18px;
  border-radius: var(--bmr-radius-pill, 999px);
  border: 1px solid var(--bmr-line, rgba(0,0,0,.12));
  background: var(--bmr-paper, #fff);
  font-size: 13px; font-weight: var(--bmr-w-bold, 700);
  letter-spacing: .06em;
  color: var(--bmr-text, #111);
  text-decoration: none;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.bmr-reg-season:hover { transform: translateY(-1px); border-color: rgba(0,0,0,.3); color: var(--bmr-text); }
.bmr-reg-season.is-current {
  background: var(--bmr-teal, #005A74);
  border-color: var(--bmr-teal, #005A74);
  color: #fff;
  pointer-events: none;
}
.bmr-reg-archive-note {
  margin: 6px 0 0; font-size: 12px; color: var(--bmr-text-soft, rgba(17,17,17,.65));
}

/* Section blocks */
.bmr-reg-section { margin: 44px 0 0; }
.bmr-reg-section-head {
  display: flex; align-items: baseline; gap: 14px;
  padding-bottom: 12px; margin-bottom: 18px;
  border-bottom: 2px solid var(--bmr-teal, #005A74);
}
.bmr-reg-section-title {
  margin: 0;
  font-size: 22px; font-weight: var(--bmr-w-bold, 700);
  letter-spacing: .04em; text-transform: uppercase;
  color: var(--bmr-teal, #005A74);
}
.bmr-reg-section-title-ja { font-size: 14px; color: var(--bmr-text-soft); font-weight: var(--bmr-w-bold, 700); }

/* Rule cards */
.bmr-reg-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
@media (max-width: 860px) { .bmr-reg-grid { grid-template-columns: 1fr; } }

.bmr-reg-card {
  background: var(--bmr-paper, #fff);
  border: 1px solid var(--bmr-line-soft, rgba(0,0,0,.08));
  border-radius: var(--bmr-radius, 16px);
  box-shadow: var(--bmr-shadow, 0 10px 30px rgba(0,0,0,.06));
  padding: 20px;
}
.bmr-reg-card--wide { grid-column: 1 / -1; }
.bmr-reg-card-kicker {
  margin: 0 0 8px;
  font-size: 11px; font-weight: var(--bmr-w-bold, 700);
  letter-spacing: var(--bmr-track, .14em); text-transform: uppercase;
  color: var(--bmr-text-soft);
}
.bmr-reg-card-title { margin: 0 0 10px; font-size: 17px; font-weight: var(--bmr-w-bold, 700); }
.bmr-reg-card p { margin: 0 0 10px; font-size: 14px; line-height: 1.8; }
.bmr-reg-card p:last-child { margin-bottom: 0; }
.bmr-reg-note { font-size: 12px; color: var(--bmr-text-soft); line-height: 1.7; }

/* Class logo row above TablePress tables */
.bmr-reg-classlogo { display: flex; align-items: center; margin: 26px 0 10px; }
.bmr-reg-classlogo img { height: 44px; width: auto; display: block; }

/* Tire allocation chips */
.bmr-reg-tires { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
@media (max-width: 700px) { .bmr-reg-tires { grid-template-columns: 1fr; } }
.bmr-reg-tire {
  background: var(--bmr-paper, #fff);
  border: 1px solid var(--bmr-line-soft, rgba(0,0,0,.08));
  border-radius: var(--bmr-radius, 16px);
  box-shadow: var(--bmr-shadow);
  padding: 18px 20px;
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
}
.bmr-reg-tire .cls { font-weight: var(--bmr-w-bold, 700); font-size: 15px; }
.bmr-reg-tire .qty { font-weight: var(--bmr-w-bold, 700); font-size: 26px; color: var(--bmr-teal, #005A74); }
.bmr-reg-tire .qty small { font-size: 13px; color: var(--bmr-text-soft); font-weight: 400; margin-left: 2px; }

/* GRAN HEAT special-regulation band (dark, event-flavored) */
.bmr-reg-special {
  margin-top: 48px;
  background: var(--bmr-ink-deep, #0b0c10);
  color: #fff;
  border-radius: var(--bmr-radius, 16px);
  padding: 30px 26px;
  box-shadow: var(--bmr-shadow-dark, 0 18px 40px rgba(0,0,0,.35));
}
.bmr-reg-special-kicker {
  margin: 0 0 6px;
  font-size: 11px; font-weight: var(--bmr-w-bold, 700);
  letter-spacing: var(--bmr-track, .14em); text-transform: uppercase;
  color: var(--bmr-red, #E41C2A);
}
.bmr-reg-special-title {
  margin: 0 0 6px;
  font-size: 26px; font-weight: var(--bmr-w-bold, 700);
  letter-spacing: .04em; text-transform: uppercase;
  color: #fff;
}
.bmr-reg-special-sub { margin: 0 0 20px; font-size: 13px; color: var(--bmr-text-inv-soft, rgba(255,255,255,.75)); }
.bmr-reg-special .bmr-reg-grid { gap: 14px; }
.bmr-reg-special .bmr-reg-card {
  background: rgba(255,255,255,.05);
  border-color: var(--bmr-line-inv, rgba(255,255,255,.14));
  box-shadow: none;
  color: #fff;
}
.bmr-reg-special .bmr-reg-card-kicker { color: var(--bmr-text-inv-soft); }
.bmr-reg-special .bmr-reg-card p { color: rgba(255,255,255,.92); }
.bmr-reg-special .bmr-reg-note { color: var(--bmr-text-inv-soft); }
.bmr-reg-special-cta { margin-top: 18px; }

/* PDF chip (red is reserved for PDF links site-wide) */
.bmr-reg-pdf {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  border-radius: var(--bmr-radius-pill, 999px);
  background: var(--bmr-red-soft, rgba(228,28,42,.10));
  border: 1px solid rgba(228,28,42,.25);
  color: var(--bmr-red, #E41C2A);
  font-size: 13px; font-weight: var(--bmr-w-bold, 700);
  text-decoration: none;
  transition: transform .15s ease;
}
.bmr-reg-pdf:hover { transform: translateY(-1px); color: var(--bmr-red); }

/* =====================================================================
   APPEND-ONLY ADDITION to kleo-child/css/bmr-pages.css  (2026-07)
   Section 27: Regulations 2026 page (.bmr-reg26)
   HOW TO USE: paste EVERYTHING in this file at the very bottom of your
   current live bmr-pages.css, save, upload. Nothing existing changes.
   (Supersedes the earlier .bmr-reg section 26 draft - if you pasted
   that one, it can stay: unused classes are harmless. This template
   uses the fresh .bmr-reg26 namespace so no collision is possible.)
   ===================================================================== */

.bmr-reg26 {
  font-family: var(--bmr-font, 'BMWTypeNext', 'Hiragino Kaku Gothic ProN', sans-serif);
  color: var(--bmr-text, #111);
  background: var(--bmr-paper, #fff);
  padding: 36px 0 60px;
}
.bmr-reg26 * { box-sizing: border-box; }
.bmr-reg26 a { text-decoration: none; }
.bmr-reg26-wrap { max-width: var(--bmr-container, 1180px); margin: 0 auto; padding: 0 20px; }

.bmr-reg26-lead {
  margin: 14px 0 0; max-width: 760px;
  color: var(--bmr-text-soft, rgba(17,17,17,.65));
  font-size: 15px; line-height: 1.8;
}

/* Season switcher */
.bmr-reg26-seasons { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 4px; }
.bmr-reg26-season {
  display: inline-flex; align-items: center;
  padding: 9px 18px;
  border-radius: var(--bmr-radius-pill, 999px);
  border: 1px solid var(--bmr-line, rgba(0,0,0,.12));
  background: var(--bmr-paper, #fff);
  font-size: 13px; font-weight: var(--bmr-w-bold, 700); letter-spacing: .06em;
  color: var(--bmr-text, #111);
  transition: transform .15s ease, border-color .15s ease;
}
.bmr-reg26-season:hover { transform: translateY(-1px); border-color: rgba(0,0,0,.3); color: var(--bmr-text); }
.bmr-reg26-season.is-current {
  background: var(--bmr-teal, #005A74); border-color: var(--bmr-teal, #005A74);
  color: #fff; pointer-events: none;
}

/* Hero actions: PDF chip (red = PDF convention) + ghost link */
.bmr-reg26-heroActions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 18px; }
.bmr-reg26-pdf {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 18px;
  border-radius: var(--bmr-radius-pill, 999px);
  background: var(--bmr-red-soft, rgba(228,28,42,.10));
  border: 1px solid rgba(228,28,42,.25);
  color: var(--bmr-red, #E41C2A);
  font-size: 13px; font-weight: var(--bmr-w-bold, 700);
  transition: transform .15s ease;
}
.bmr-reg26-pdf:hover { transform: translateY(-1px); color: var(--bmr-red, #E41C2A); }
.bmr-reg26-ghost {
  font-size: 13px; font-weight: var(--bmr-w-bold, 700);
  color: var(--bmr-blue, #0066B1);
}
.bmr-reg26-ghost:hover { color: var(--bmr-blue-hover, #0076CC); }
.bmr-reg26-inlineLink { color: var(--bmr-blue, #0066B1); font-weight: var(--bmr-w-bold, 700); }
.bmr-reg26-inlineLink:hover { color: var(--bmr-blue-hover, #0076CC); }

/* Sections */
.bmr-reg26-section { margin-top: 52px; }
.bmr-reg26-sectionHead {
  display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap;
  padding-bottom: 12px; margin-bottom: 20px;
  border-bottom: 2px solid var(--bmr-teal, #005A74);
}
.bmr-reg26-sectionTitle {
  margin: 0;
  font-family: var(--bmr-font);
  font-size: 24px; font-weight: var(--bmr-w-bold, 700);
  letter-spacing: .04em; text-transform: uppercase;
  color: var(--bmr-teal, #005A74);
}
.bmr-reg26-sectionJa { font-size: 13px; color: var(--bmr-text-soft); font-weight: var(--bmr-w-bold, 700); }

.bmr-reg26-text { margin: 0 0 14px; font-size: 14px; line-height: 1.9; max-width: 860px; }
.bmr-reg26-note { margin: 8px 0 0; font-size: 12px; line-height: 1.7; color: var(--bmr-text-soft, rgba(17,17,17,.65)); }

/* Calendar */
.bmr-reg26-calGrid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
@media (max-width: 900px) { .bmr-reg26-calGrid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 560px) { .bmr-reg26-calGrid { grid-template-columns: 1fr; } }
.bmr-reg26-calCard {
  position: relative;
  background: var(--bmr-paper, #fff);
  border: 1px solid var(--bmr-line-soft, rgba(0,0,0,.08));
  border-radius: var(--bmr-radius, 16px);
  box-shadow: var(--bmr-shadow, 0 10px 30px rgba(0,0,0,.06));
  padding: 16px 18px;
}
.bmr-reg26-calCard.is-special { border-color: rgba(228,28,42,.35); }
.bmr-reg26-calRd {
  font-size: 11px; font-weight: var(--bmr-w-bold, 700);
  letter-spacing: var(--bmr-track, .14em); text-transform: uppercase;
  color: var(--bmr-text-soft);
}
.bmr-reg26-calVenue { margin-top: 6px; font-size: 17px; font-weight: var(--bmr-w-bold, 700); line-height: 1.3; }
.bmr-reg26-calRaces { margin-top: 4px; font-size: 12px; color: var(--bmr-text-soft); }
.bmr-reg26-calNote {
  position: absolute; top: 14px; right: 14px;
  font-size: 10px; font-weight: var(--bmr-w-bold, 700);
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--bmr-red, #E41C2A);
  border: 1px solid rgba(228,28,42,.35);
  border-radius: var(--bmr-radius-pill, 999px);
  padding: 4px 9px;
}

/* Generic 2-col card grid */
.bmr-reg26-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
@media (max-width: 860px) { .bmr-reg26-grid2 { grid-template-columns: 1fr; } }
.bmr-reg26-card {
  background: var(--bmr-paper, #fff);
  border: 1px solid var(--bmr-line-soft, rgba(0,0,0,.08));
  border-radius: var(--bmr-radius, 16px);
  box-shadow: var(--bmr-shadow, 0 10px 30px rgba(0,0,0,.06));
  padding: 20px;
}
.bmr-reg26-cardWide { grid-column: 1 / -1; }
.bmr-reg26-cardKicker {
  margin: 0 0 8px;
  font-size: 11px; font-weight: var(--bmr-w-bold, 700);
  letter-spacing: var(--bmr-track, .14em); text-transform: uppercase;
  color: var(--bmr-text-soft);
}
.bmr-reg26-cardTitle { margin: 0 0 10px; font-size: 16px; font-weight: var(--bmr-w-bold, 700); }
.bmr-reg26-card p { margin: 0 0 10px; font-size: 14px; line-height: 1.85; }
.bmr-reg26-card p:last-child { margin-bottom: 0; }

/* Points chips */
.bmr-reg26-tableLabel {
  margin: 22px 0 10px;
  font-size: 13px; font-weight: var(--bmr-w-bold, 700);
  letter-spacing: .06em;
}
.bmr-reg26-ptsGrid { display: grid; gap: 8px; }
.bmr-reg26-ptsGrid--race { grid-template-columns: repeat(10, minmax(0,1fr)); }
.bmr-reg26-ptsGrid--six  { grid-template-columns: repeat(6, minmax(0,1fr)); max-width: 460px; }
@media (max-width: 900px) { .bmr-reg26-ptsGrid--race { grid-template-columns: repeat(5, minmax(0,1fr)); } }
@media (max-width: 560px) {
  .bmr-reg26-ptsGrid--race { grid-template-columns: repeat(4, minmax(0,1fr)); }
  .bmr-reg26-ptsGrid--six  { grid-template-columns: repeat(3, minmax(0,1fr)); }
}
.bmr-reg26-pt {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 10px 4px;
  background: var(--bmr-paper-dim, #f6f7f8);
  border: 1px solid var(--bmr-line-soft, rgba(0,0,0,.08));
  border-radius: var(--bmr-radius-sm, 12px);
}
.bmr-reg26-pt .pos { font-size: 10px; color: var(--bmr-text-soft); letter-spacing: .04em; }
.bmr-reg26-pt .val { font-size: 16px; font-weight: var(--bmr-w-bold, 700); color: var(--bmr-text); }
.bmr-reg26-pt.is-podium { background: var(--bmr-teal-soft, rgba(0,90,116,.08)); border-color: rgba(0,90,116,.22); }
.bmr-reg26-pt.is-podium .val { color: var(--bmr-teal, #005A74); }

/* Entry-count scaling chips */
.bmr-reg26-scaleRow { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; max-width: 640px; }
@media (max-width: 560px) { .bmr-reg26-scaleRow { grid-template-columns: repeat(2, minmax(0,1fr)); } }
.bmr-reg26-scale {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 14px 8px;
  background: var(--bmr-paper, #fff);
  border: 1px solid var(--bmr-line-soft, rgba(0,0,0,.08));
  border-radius: var(--bmr-radius-sm, 12px);
  box-shadow: var(--bmr-shadow);
}
.bmr-reg26-scale .pct { font-size: 20px; font-weight: var(--bmr-w-bold, 700); color: var(--bmr-teal, #005A74); }
.bmr-reg26-scale .lbl { font-size: 11px; color: var(--bmr-text-soft); }

/* Callout (CPS valid points) */
.bmr-reg26-callout {
  margin-top: 24px;
  padding: 18px 20px;
  background: var(--bmr-teal-soft, rgba(0,90,116,.08));
  border: 1px solid rgba(0,90,116,.2);
  border-radius: var(--bmr-radius, 16px);
}
.bmr-reg26-calloutKicker {
  margin: 0 0 8px;
  font-size: 11px; font-weight: var(--bmr-w-bold, 700);
  letter-spacing: var(--bmr-track, .14em); text-transform: uppercase;
  color: var(--bmr-teal, #005A74);
}
.bmr-reg26-callout p { margin: 0; font-size: 14px; line-height: 1.85; }
.bmr-reg26-callout p + p { margin-top: 8px; }

/* Fees */
.bmr-reg26-feeAnnual { margin-bottom: 4px; }
.bmr-reg26-feeGrid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
@media (max-width: 1000px) { .bmr-reg26-feeGrid { grid-template-columns: 1fr; } }
.bmr-reg26-feeCard {
  background: var(--bmr-paper, #fff);
  border: 1px solid var(--bmr-line-soft, rgba(0,0,0,.08));
  border-radius: var(--bmr-radius, 16px);
  box-shadow: var(--bmr-shadow, 0 10px 30px rgba(0,0,0,.06));
  padding: 20px;
  display: flex; flex-direction: column;
}
.bmr-reg26-feeTitle {
  margin: 0 0 14px;
  font-size: 17px; font-weight: var(--bmr-w-bold, 700);
  padding-bottom: 12px;
  border-bottom: 2px solid var(--bmr-teal, #005A74);
  color: var(--bmr-teal, #005A74);
  letter-spacing: .02em;
}
.bmr-reg26-feeRow {
  display: flex; justify-content: space-between; align-items: baseline; gap: 10px;
  padding: 8px 0 2px;
}
.bmr-reg26-feeRow .lbl { font-size: 13px; line-height: 1.5; }
.bmr-reg26-feeRow .prc { font-size: 15px; font-weight: var(--bmr-w-bold, 700); white-space: nowrap; }
.bmr-reg26-feeRow--early .prc { color: var(--bmr-blue, #0066B1); }
.bmr-reg26-feeSpot { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--bmr-line-soft); }
.bmr-reg26-feeSpotLabel {
  margin: 0 0 4px;
  font-size: 11px; font-weight: var(--bmr-w-bold, 700);
  letter-spacing: var(--bmr-track, .14em); text-transform: uppercase;
  color: var(--bmr-text-soft);
}
.bmr-reg26-feeRow--spot { padding: 6px 0; border-bottom: 1px dashed var(--bmr-line-soft); }
.bmr-reg26-feeRow--spot:last-of-type { border-bottom: none; }
.bmr-reg26-feeRow--spot .lbl { font-size: 12px; color: var(--bmr-text-soft); }
.bmr-reg26-feeRow--spot .prc { font-size: 13px; }
.bmr-reg26-feeFoot { margin-top: auto; padding-top: 12px; }

/* Tyre table */
.bmr-reg26-tyreTableWrap { overflow-x: auto; }
.bmr-reg26-tyreTable {
  width: 100%; max-width: 720px;
  border-collapse: separate; border-spacing: 0;
  background: var(--bmr-paper, #fff);
  border: 1px solid var(--bmr-line-soft, rgba(0,0,0,.08));
  border-radius: var(--bmr-radius, 16px);
  overflow: hidden;
  box-shadow: var(--bmr-shadow);
}
.bmr-reg26-tyreTable th, .bmr-reg26-tyreTable td {
  padding: 13px 18px;
  font-size: 14px;
  text-align: left;
  border-bottom: 1px solid var(--bmr-line-soft, rgba(0,0,0,.08));
}
.bmr-reg26-tyreTable thead th {
  background: var(--bmr-ink, #111);
  color: #fff;
  font-weight: var(--bmr-w-bold, 700);
  font-size: 12px; letter-spacing: .06em;
  border-bottom: none;
}
.bmr-reg26-tyreTable tbody tr:last-child td { border-bottom: none; }
.bmr-reg26-tyreTable td strong { font-size: 18px; font-weight: var(--bmr-w-bold, 700); }
.bmr-reg26-tyreTable .is-gh { color: var(--bmr-red, #E41C2A); }
.bmr-reg26-tyreTable thead .is-gh { color: #fff; background: rgba(228,28,42,.75); }

/* GRAN HEAT special band */
.bmr-reg26-special {
  margin-top: 56px;
  background: var(--bmr-ink-deep, #0b0c10);
  color: #fff;
  border-radius: var(--bmr-radius, 16px);
  padding: 32px 28px;
  box-shadow: var(--bmr-shadow-dark, 0 18px 40px rgba(0,0,0,.35));
}
.bmr-reg26-specialKicker {
  margin: 0 0 6px;
  font-size: 11px; font-weight: var(--bmr-w-bold, 700);
  letter-spacing: var(--bmr-track, .14em); text-transform: uppercase;
  color: var(--bmr-red, #E41C2A);
}
.bmr-reg26-specialTitle {
  margin: 0 0 6px;
  font-size: 28px; font-weight: var(--bmr-w-bold, 700);
  letter-spacing: .04em; text-transform: uppercase;
  color: #fff;
}
.bmr-reg26-specialSub { margin: 0 0 22px; font-size: 13px; color: var(--bmr-text-inv-soft, rgba(255,255,255,.75)); }
.bmr-reg26-special .bmr-reg26-card {
  background: rgba(255,255,255,.05);
  border-color: var(--bmr-line-inv, rgba(255,255,255,.14));
  box-shadow: none;
  color: #fff;
}
.bmr-reg26-special .bmr-reg26-cardKicker { color: var(--bmr-text-inv-soft); }
.bmr-reg26-special .bmr-reg26-card p { color: rgba(255,255,255,.92); }
.bmr-reg26-special .bmr-reg26-note { color: var(--bmr-text-inv-soft); }
.bmr-reg26-ghWeights { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.bmr-reg26-ghWeight {
  display: inline-flex; align-items: baseline; gap: 6px;
  padding: 6px 12px;
  border-radius: var(--bmr-radius-pill, 999px);
  border: 1px solid var(--bmr-line-inv, rgba(255,255,255,.14));
  background: rgba(255,255,255,.06);
  font-size: 12px;
}
.bmr-reg26-ghWeight strong { font-weight: var(--bmr-w-bold, 700); }

/* Bottom links */
.bmr-reg26-bottom {
  margin-top: 40px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
  border-top: 1px solid var(--bmr-line-soft); padding-top: 22px;
}
@media (max-width: 700px) { .bmr-reg26-bottom { grid-template-columns: 1fr; } }
.bmr-reg26-bottomCard {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 18px;
  border-radius: var(--bmr-radius, 16px);
  border: 1px solid var(--bmr-line-soft, rgba(0,0,0,.08));
  background: var(--bmr-paper, #fff);
  box-shadow: var(--bmr-shadow);
  color: var(--bmr-text, #111);
  transition: transform .15s ease, box-shadow .15s ease;
}
.bmr-reg26-bottomCard:hover { transform: translateY(-1px); box-shadow: var(--bmr-shadow-lift, 0 18px 34px rgba(0,0,0,.10)); color: var(--bmr-text); }
.bmr-reg26-bottomCard .tag {
  font-size: 11px; font-weight: var(--bmr-w-bold, 700);
  letter-spacing: var(--bmr-track, .14em); text-transform: uppercase;
  color: var(--bmr-text-soft);
}
.bmr-reg26-bottomCard .name { margin-top: 4px; font-size: 15px; font-weight: var(--bmr-w-bold, 700); }
.bmr-reg26-bottomCard .go { color: var(--bmr-blue, #0066B1); font-size: 18px; font-weight: var(--bmr-w-bold, 700); }

/* =====================================================================
   APPEND-ONLY ADDITION to kleo-child/css/bmr-pages.css  (2026-07)
   Prize cards for the Regulations 2026 template (.bmr-reg26-prize*)
   HOW TO USE: paste at the very bottom of your live bmr-pages.css,
   after the section-27 block you added previously.
   ===================================================================== */

.bmr-reg26-prizeGrid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
@media (max-width: 1000px) { .bmr-reg26-prizeGrid { grid-template-columns: 1fr; } }

.bmr-reg26-prizeCard {
  background: var(--bmr-paper, #fff);
  border: 1px solid var(--bmr-line-soft, rgba(0,0,0,.08));
  border-radius: var(--bmr-radius, 16px);
  box-shadow: var(--bmr-shadow, 0 10px 30px rgba(0,0,0,.06));
  padding: 20px;
  display: flex; flex-direction: column;
}
.bmr-reg26-prizeSeries {
  margin: 0 0 4px;
  font-size: 10px; font-weight: var(--bmr-w-bold, 700);
  letter-spacing: var(--bmr-track, .14em); text-transform: uppercase;
  color: var(--bmr-text-soft, rgba(17,17,17,.6));
}
.bmr-reg26-prizeClass {
  margin: 0 0 14px;
  font-size: 18px; font-weight: var(--bmr-w-bold, 700);
  color: var(--bmr-teal, #005A74);
  padding-bottom: 10px;
  border-bottom: 2px solid var(--bmr-teal, #005A74);
  letter-spacing: .02em;
}
.bmr-reg26-prizeRow {
  display: grid;
  grid-template-columns: 34px 1fr;
  grid-template-areas: "pos money" "pos extra";
  column-gap: 12px; row-gap: 2px;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px dashed var(--bmr-line-soft, rgba(0,0,0,.08));
}
.bmr-reg26-prizeRow:last-of-type { border-bottom: none; }
.bmr-reg26-prizeRow .pos {
  grid-area: pos;
  font-size: 12px; font-weight: var(--bmr-w-bold, 700);
  color: var(--bmr-text-soft);
}
.bmr-reg26-prizeRow .money {
  grid-area: money;
  font-size: 17px; font-weight: var(--bmr-w-bold, 700);
  color: var(--bmr-text, #111);
}
.bmr-reg26-prizeRow .extra {
  grid-area: extra;
  font-size: 12px; color: var(--bmr-text-soft);
  line-height: 1.5;
}
.bmr-reg26-prizeRow.is-p1 {
  background: var(--bmr-teal-soft, rgba(0,90,116,.08));
  border-radius: var(--bmr-radius-sm, 12px);
  padding: 12px;
  border-bottom: none;
  margin-bottom: 4px;
}
.bmr-reg26-prizeRow.is-p1 .money { font-size: 22px; color: var(--bmr-teal, #005A74); }
.bmr-reg26-prizeRow.is-p1 .pos { color: var(--bmr-teal, #005A74); }

.bmr-reg26-prizeChamp {
  margin: 12px 0 0;
  font-size: 12px; line-height: 1.7;
  font-weight: var(--bmr-w-bold, 700);
  color: var(--bmr-blue, #0066B1);
}
.bmr-reg26-prizeNum {
  margin: 8px 0 0; padding-top: 10px;
  border-top: 1px solid var(--bmr-line-soft, rgba(0,0,0,.08));
  font-size: 12px; line-height: 1.7;
  color: var(--bmr-text-soft);
}
.bmr-reg26-prizeNum strong { color: var(--bmr-text, #111); font-weight: var(--bmr-w-bold, 700); }