/* Match page layout v2 (fp-parts/single-post-v2.php, open item 159). Loaded only on match posts
   that use the v2 layout. One grey for every grey surface: #f8f8f8 (owner, 2026-10-27). */

.single-post-v2 .post-toc,
.single-post-v2 .stats-data__table th,
.single-post-v2 .predlinks-box-wrapper,
.single-post-v2 .review-cta-footer__tc {
    background-color: #f8f8f8;
}

/* With the lighter grey the items' own #f1f1f1 border would show as boxes. */
.single-post-v2 .post-toc__item:not(.active) {
    border-color: #f8f8f8;
}

.single-post-v2 .post-main > h2,
.single-post-v2 .post-main > div > h2 {
    margin-top: 6px;
}

/* style.css (around line 517, open item 159 note, item 156) gives every svg on the site
   position absolute, top and left 50% and a translate; without this reset the icons of the new
   blocks jump to the nearest positioned box (the kick-off clock appeared between two offers). */
.single-post-v2 .mp-facts svg,
.single-post-v2 .mp-watch svg {
    position: static;
    top: auto;
    left: auto;
    transform: none;
    display: block;
    max-width: none;
    max-height: none;
    width: 18px;
    height: 18px;
    flex: none;
}
.single-post-v2 .mp-watch svg {
    width: 20px;
    height: 20px;
}

/* Prediction first */
.mp-predbox {
    background: #f8f8f8;
    border: 1px solid #e3e3e3;
    padding: 10px 12px;
    margin-bottom: 15px;
}
.mp-predbox h2 {
    margin: 0 0 8px;
}
.mp-predbox p {
    margin: 8px 0 0;
}
.mp-score {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    background: #fff;
    border: 1px solid #e3e3e3;
    border-radius: 6px;
    padding: 10px;
}
.mp-score__side {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex: 1;
    min-width: 0;
    font-weight: 700;
    font-size: 15px;
}
.mp-score__side--away {
    justify-content: flex-start;
}
.mp-score__side img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    flex: none;
}
.mp-score__res {
    font-size: 26px;
    font-weight: 800;
    color: #0e5090;
    white-space: nowrap;
}

/* Match facts: one row on desktop. The 1px gap on a line-coloured background draws the dividers,
   so the lines stay right however many items there are and wherever they wrap. */
.mp-facts {
    display: flex;
    flex-wrap: nowrap;
    gap: 1px;
    background: #e3e3e3;
    border: 1px solid #e3e3e3;
    margin: 0 0 15px;
}
.mp-facts__item {
    flex: 1 1 0;
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 9px 10px;
    min-width: 0;
    background: #f8f8f8;
    color: #0e5090;
}
.mp-facts__item--comp,
.mp-facts__item--ko {
    flex: 0 0 auto;
}
.mp-facts__item--venue {
    flex: 1.7 1 0;
}
.mp-facts dt {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .4px;
    color: #666;
    font-weight: 700;
    line-height: 1.3;
}
.mp-facts dd {
    margin: 0;
    font-weight: 700;
    font-size: 13px;
    line-height: 1.35;
    color: #303030;
}
.mp-facts dd small {
    display: block;
    font-weight: 400;
    color: #666;
    font-size: 12px;
}
.mp-facts__logo {
    width: 28px;
    height: 28px;
    object-fit: contain;
    flex: none;
}
.mp-facts__venue {
    width: 64px;
    height: 48px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .06);
    flex: none;
}

/* Betting tips table: the look of the /betting-tips/ cards (oddsblock and prog-wrapper from combined.css) */
.mp-tips {
    border: 1px solid #e3e3e3;
    margin-bottom: 15px;
}
.mp-tips table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 13px;
    margin: 0;
}
.mp-tips__c1 { width: 52%; }
.mp-tips__c2 { width: 18%; }
.mp-tips__c3 { width: 30%; }
.mp-tips thead th {
    background: #f8f8f8;
    font-size: 12px;
    font-weight: 700;
    color: #000;
    text-align: left;
    padding: 8px 10px;
    border: 0;
    border-bottom: 1px solid #e3e3e3;
}
.mp-tips thead th:nth-child(2) {
    text-align: center;
}
.mp-tips td,
.mp-tips tbody th {
    padding: 8px 10px;
    border: 0;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
    color: #000;
    text-align: left;
    font-weight: 400;
}
.mp-tips tbody + tbody tr:first-child > * {
    border-top: 2px solid #e3e3e3;
}
.mp-tips tbody:last-child tr:last-child > * {
    border-bottom: 0;
}
.mp-mk {
    display: block;
    font-size: 11px;
    color: #666;
    line-height: 1.3;
}
.mp-tp {
    display: block;
    font-weight: 700;
    font-size: 13px;
    line-height: 1.35;
}
.mp-na {
    color: #8a8a8a;
    font-weight: 400;
}

/* Photos */
.mp-pn {
    display: flex;
    align-items: center;
    gap: 8px;
}
.mp-pp {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    flex: none;
    border: 1px solid #e0e0e0;
    background: #dfe4ea;
}
.mp-pp--none {
    display: inline-block;
    background: #dfe4ea url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28'%3E%3Ccircle cx='14' cy='11' r='5' fill='%23a9b3bf'/%3E%3Cpath d='M4 28c0-6 4.5-9.5 10-9.5S24 22 24 28z' fill='%23a9b3bf'/%3E%3C/svg%3E") center / cover no-repeat;
}

/* Line-ups and injuries: the look of the form and stats block */
.mp-two {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 15px;
}
.mp-teambar {
    background: #0e5090;
    color: #fff;
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 7px;
}
.mp-teambar img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    background: #fff;
    border-radius: 4px;
    padding: 2px;
    flex: none;
}
.mp-teambar b {
    display: block;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
}
.mp-teambar small {
    display: block;
    font-size: 11px;
    line-height: 1.3;
}
.mp-chip {
    margin-left: auto;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .4px;
    padding: 2px 6px;
    border-radius: 3px;
    background: #fff;
    color: #0e5090;
    white-space: nowrap;
}
.mp-st {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    border: 1px solid #e0e0e0;
    border-top: 0;
    margin: 0;
}
.mp-st thead th {
    background: #f8f8f8;
    font-weight: 400;
    color: #444;
    padding: 7px 8px;
    text-align: left;
    border: 0;
    border-bottom: 1px solid #e0e0e0;
}
.mp-st td,
.mp-st tbody th {
    padding: 7px 8px;
    border: 0;
    border-bottom: 1px solid #efefef;
    text-align: left;
    font-weight: 600;
    color: #333;
}
.mp-st td {
    font-weight: 400;
}
.mp-st .mp-c {
    text-align: center;
}
.mp-subs th[scope="rowgroup"] {
    background: #f8f8f8;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .4px;
    color: #666;
    font-weight: 700;
}
.mp-subs th[scope="row"] {
    font-weight: 400;
}
.mp-stt {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    padding: 1px 6px;
    border-radius: 3px;
    background: #c0392b;
}
.mp-stt--doubtful { background: #e3a33a; }
.mp-stt--suspended { background: #555; }
.mp-empty {
    border: 1px solid #e0e0e0;
    border-top: 0;
    padding: 14px 10px;
    font-size: 12px;
    color: #666;
}

/* Where to watch */
.mp-watch {
    background: #f8f8f8;
    border: 1px solid #e3e3e3;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}
.mp-watch__hd {
    display: flex;
    gap: 10px;
    align-items: center;
    color: #0e5090;
}
.mp-watch__hd b {
    display: block;
    color: #303030;
    font-size: 14px;
    line-height: 1.3;
}
.mp-watch__hd small {
    display: block;
    color: #666;
    font-size: 12px;
}
.mp-chips {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.mp-chips li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid #e3e3e3;
    border-radius: 6px;
    padding: 6px 10px 6px 6px;
    font-weight: 600;
    font-size: 13px;
    margin: 0;
    list-style: none;
}
.mp-chips li i {
    font-style: normal;
    width: 30px;
    height: 30px;
    border-radius: 5px;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
}
.mp-watch__none,
.mp-watch__note {
    margin: 0;
    font-size: 12px;
    color: #666;
}

@media (max-width: 600px) {
    /* Six jump links do not fit a phone: the bar scrolls sideways. */
    .single-post-v2 .post-toc {
        justify-content: flex-start;
        overflow-x: auto;
        scrollbar-width: none;
    }
    .single-post-v2 .post-toc::-webkit-scrollbar {
        display: none;
    }
    .single-post-v2 .post-toc__item {
        flex: none;
        white-space: nowrap;
    }
    /* Phone: competition and kick-off side by side, venue and referee each on a full row. */
    .mp-facts {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .mp-facts__item--venue,
    .mp-facts__item--ref {
        grid-column: 1 / -1;
    }
    .mp-facts__item--ref {
        order: 3;
    }
    .mp-facts__item--venue {
        order: 4;
    }
    .mp-tips__c1 { width: 50%; }
    .mp-tips__c2 { width: 20%; }
    .mp-tips td,
    .mp-tips tbody th,
    .mp-tips thead th {
        padding: 8px 6px;
    }
    .mp-two {
        grid-template-columns: minmax(0, 1fr);
    }
    .mp-score__res {
        font-size: 22px;
    }
}

/* Template-wide rules in combined.css that would otherwise apply to the new blocks:
   .entry-content img:not(.wp-smily) adds a 20px bottom margin to every image, and
   .single-post-new-template .entry-content ul / li style every list as the old tips box. */
.single-post-v2 .entry-content .mp-predbox img,
.single-post-v2 .entry-content .mp-facts img,
.single-post-v2 .entry-content .mp-pn img,
.single-post-v2 .entry-content .mp-teambar img {
    margin-bottom: 0;
}
.single-post-v2 .entry-content ul.mp-chips {
    columns: auto;
    background: none;
    border: 0;
    padding: 0;
    margin: 0;
}
.single-post-v2 .entry-content .mp-chips li,
.single-post-v2 .entry-content .mp-chips li:not(:last-child) {
    margin: 0;
    padding: 6px 10px 6px 6px;
    font-size: 13px;
    line-height: 1.3;
}
