/* The single @layer order declaration (CSS_TARGET_ARCHITECTURE.md §8,
   ADR-0022). Required FIRST in every entry point; cascade layers are
   document-global so this governs all bundles. `legacy` first => lowest. */
@layer legacy, reset, tokens, base, layout, prose, components, utilities, ads;

@layer legacy {
@media (max-width: 768px) {
  html {
    font-size: 100%;
    font-family: "PT Sans", "SF Pro Text", "SF Pro Icons", -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", serif;
    overflow-x: clip;
    width: 100%;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale; }
  body {
    line-height: 1.31;
    font-family: "PT Sans", "SF Pro Text", "SF Pro Icons", -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", serif;
    /*padding-top: 50px;*/
    padding-top: 0;
    box-sizing: border-box;
    overflow-x: clip;
    width: 100%; }
  .container {
    padding-top: 0 !important; }
  .container {
    float: none;
    width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box; }
    .articles_preview .b-article-top{
        border-top: 1px solid #dfdfdf;
    }
  .u-for-desktop {
    display: none !important; }
  .u-for-mobile{
  display: block !important;
  }
  .widget {
    margin: 0 auto;
    width: 100%; }
  .widget_maxbottom {
    margin: 0 0 25px; }
  .u-heading {
    display: block;
    font-family: "Din", "PT Sans", "SF Pro Text", "SF Pro Icons", -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", serif;
    font-size: 1.125rem;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.167;
    padding: 1.0625rem 25px 0.8125rem 0;
    border-bottom: 3px solid #000;
    box-sizing: border-box;
    margin: 0 0 0 25px; }
  .bd-news #sidebar {
    padding: 0 !important; }
    .bd-news #sidebar .widget {
      padding: 0;
      margin: 0; }
  .widget_foot {
    margin: 0;
    padding-right: 25px !important;
  }
  .news_list_tabs {
    margin: 12px 0 25px 25px;
  }
  .poll_question {
    padding: 12px 25px 25px 25px;
  }
  .poll_question .widget_head {
    border-top: 3px solid #000;
  }
  .poll_question .widget_head {
    border-top: 3px solid #000;
  }
  .poll_question .widget_foot {
    text-align: right;
    padding: 12px 0 0 0 !important;
  }
  #sidebar {
    padding-top: 0 !important;
  }
  body.bd-Championship .f1Table .firstLine td {
    font-weight: 700;
    padding: 7px 6px 5px; }
  body.bd-Championship .f1Table tr td {
    padding: 6px 6px 5px; }
  body.bd-Championship .f1Table tr td:nth-child(5) {
    white-space: nowrap; }
  .select_date {
    height: auto;
    box-sizing: border-box;
    padding: 0 25px 1.25rem !important; }

  /* Error page (desktop half lives in fluid.css). */
  .error-wrapper .error {
    width: 300px;
    height: 200px;
    background-size: contain;
  }
  .error-text {
    width: 100%;
  }

  /* Registration form (desktop half lives in fluid.css). */
  .reg_form div input[type="text"], input[type="password"], input[type="email"] {
    width: 100%;
    max-width: 402px;
  }
  .reg_form .buttons_wrapper {
    margin: 0;
  }
  .reg_form .reg_button {
    margin: 0 20px 20px 0;
  }
}

}
@layer legacy {
@media (max-width: 768px) {
  .b-main__sidebar {
    overflow: hidden;
  }
  .b-main {
    width: 100%;
    padding: 0;
    margin: 0;
    /* flow-root restores the block formatting context that `overflow-x: hidden`
       used to provide here: !330 swapped it for `clip`, and `clip` does not
       establish one. Without a BFC the first child's top margin collapses out
       of this white surface and paints as body grey (#e6e9ea) above it —
       visible on /forecast/ from the moment !369 gave .post a 20px top margin
       under the forecast page-type selector in b-post.css.
       flow-root is not a scroll container, so the `position: sticky` behaviour
       `clip` was chosen for in !330 is unaffected. */
    display: flow-root;
    overflow-x: clip; }
  .b-main__sidebar {
    width: 100%;
    margin: 0;
    float: none; }
}

}
@layer legacy {
@media (max-width: 768px) {
  .b-other-news {
    box-sizing: border-box;
    padding: 0 25px; }
    .b-other-news .widget_head {
      padding-bottom: 0; }
    .b-other-news .sk81778_wrap_outer {
      width: 100%; }
    .b-other-news .sk81778_item {
      width: 100%;
      float: none;
      margin: 0; }
    .b-other-news .sk81778_img {
      display: none; }
    .b-other-news .sk81778_text {
      font-size: 0.8125rem;
      color: #000;
      padding: 10px 0 7px;
      border-bottom: 1px solid #d4d4d4; }
    .b-other-news .news-block-magick {
      display: none; }
    .b-other-news {
      margin-bottom: 25px; } }

}
@layer legacy {
@media (max-width: 768px) {
    .bd-Championship.pn-gridsprint #content table, .bd-Championship.pn-grid #content table {
        min-width: 0;
        width: 100% !important;
    }
    .b-article {
        margin: -25px 0 0; }
    .b-article .widget_head {
        display: none; }
    .b-article__item.b-article__item.b-article__item {
        margin: 0;
        padding: 0.9375rem 25px;
        box-sizing: border-box; }
    .b-article__item.b-article__item.b-article__item:nth-child(2n),.search_results_body .article_large:nth-child(2n) {
        background: #f3f3f3; }
    .search_results_body .article_large:nth-child(2n){
    margin-bottom: 0;
    padding-bottom: 25px;}
    .b-article__figure {
        display: block; }
    .b-article__image {
        width: 100px !important;
        height: 75px !important;
        object-fit: cover; }
    .ajax_load{
        margin-bottom: 25px;
    }
    .search_wrapper .search_form{
        padding:32px 25px 0;
    }
    .bd-forecast .search_wrapper .search_form {
        padding:32px 0 0;
    }
    .bd-forecast .search_input {
        width: 52%;
        max-width: 186px;
    }
    .search_wrapper .search_results_title{
        padding:0 25px;
    }
    .search_wrapper .article{
        padding: 20px 25px 0px 25px;
    }
}

}
/*
 * The styles-mobile legacy fragments (WP2 phone-only split), demoted into
 * the same `legacy` cascade layer as legacy-app.css. styles-mobile.css is
 * the later stylesheet in document order, so within the layer these keep
 * beating the app-bundle legacy exactly as before — import order here is
 * the pre-bridge require order from assets/js/styles-mobile.js and MUST
 * stay that way.
 *
 * lapchart.mobile.css is NOT here: it pairs with lapchart.css in
 * components-styles-mobile.css inside @layer components (ADR-0022).
 */

@layer components {
/* Block: post — phone-gated CMS-content fighters.
 *
 * These rules beat inline styles from third-party embeds and CMS HTML.
 * They sit in @layer components (ADR-0022) and beat @layer legacy by layer
 * order. Kept in a separate .mobile.css file per the WP2 split.
 *
 * WP6 B-3 port (PHASE_B_SPEC §2 recipe, §6 hazards, §10 this block).
 */

@media (max-width: 768px) {
    .post_thumbnail img {
        height: auto;
        object-fit: cover;
        width: 100%;
    }

    .post_content p iframe,
    .post_content p embed {
        width: 100% !important;
        height: auto !important;
    }

    .post_content iframe.instagram-media {
        min-width: 0 !important;
        width: 100% !important;
    }

    .post_content img {
        max-width: 100%;
        height: auto !important;
    }

    .post_content table img {
        max-width: none;
    }

    .post-table::before {
        content: '';
        display: block;
        width: calc(100% + var(--gutter));
        height: 3px;
        background: #000;
    }

    .post-table__wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 0 calc(-1 * var(--gutter));
        box-sizing: border-box;
        width: calc(100% + 2 * var(--gutter));
        padding: 0 var(--gutter);
    }

    .post-table__wrap table {
        border: none;
        width: 100% !important;
        min-width: 300px;
    }

    /* Dropped !important on first attempt; un-layered may win now. */
    .post_foot > div:empty {
        display: none;
    }

    /* Kept !important: needed to beat .post_foot > nav padding. */
    .post_more {
        padding: 1rem var(--gutter) !important;
        box-sizing: border-box;
    }

    /* Prev/next stack on phone. Replaces the legacy main.mobile.css
     * .row > [class*="span"] killer that no longer matches the markup
     * (the span classes are gone). */
    .post_more_prev,
    .post_more_next {
        float: none;
        width: 100%;
        margin: 0;
    }

    /* Clear any floats inside the post footer on phone. */
    .post_foot {
        clear: both;
    }
}

}
@layer components {
/*
 * Mobile rules for the lap chart (#196, WP2). The chart canvas is sized to the
 * container on desktop, but the ~630 px-minimum SVG overflows below ~600 px;
 * fall back to horizontal scrolling instead of clipping. Bundled into
 * styles-mobile.css (media-gated, non-render-blocking on desktop).
 */
@media (max-width: 768px) {
    .lapchart__canvas {
        overflow-x: auto;
    }
}

}
/* Mobile block companions, all in @layer components (ADR-0022).
 * Import order preserves the pre-layer require order from
 * assets/js/styles-mobile.js / legacy-styles-mobile.css.
 */

