/* ============================================================
   Pre-Race Information page: Print / Save as PDF button + print styles
   (copied from the scw site custom.css; only linked from *-pre.php pages)
   A real <button> so the click target does not depend on theme
   anchor styling, and so it is keyboard focusable.
   ============================================================ */
.print_button {
    position: relative;
    z-index: 2;
    display: inline-block;
    margin: 18px 0 0;
    padding: 12px 26px;
    border: 2px solid #fff;
    border-radius: 3px;
    background: transparent;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
    cursor: pointer;
    transition: background .3s ease-in-out, color .3s ease-in-out;
}

.print_button i {
    margin-right: 10px;
}

.print_button:hover,
.print_button:focus {
    background: #fff;
    color: #000;
}

/* ============================================================
   Print styles
   pre-race.css is loaded last (after global/structure_uts/
   urbantrails/tofont/custom), so these rules win without needing
   !important on layout properties.
   ============================================================ */
@media print {

    /* --- Strip site chrome ------------------------------------ */
    .no-print,
    #Top_bar,
    #Intro,
    #Header,
    .header_placeholder,
    .fixed-nav,
    #Footer,
    #Side_slide,
    #back_to_top,
    #body_overlay,
    .responsive-menu-toggle,
    iframe,
    noscript {
        display: none !important;
    }

    /* --- Flatten backgrounds, save ink ------------------------ */
    body,
    #Wrapper,
    #Content,
    .content_wrapper,
    .sections_group,
    .section,
    .section_wrapper,
    .post-wrapper-content,
    .hover_color,
    .hover_color_bg,
    .column_attr {
        background: none !important;
        box-shadow: none !important;
        text-shadow: none !important;
        color: #000 !important;
    }

    body {
        font-size: 9pt;
        line-height: 1.35;
        font-family: Arial, Helvetica, sans-serif;
    }

    @page {
        size: A4 portrait;
        margin: 12mm 10mm;
    }

    /* --- Page title: reuse the banner, minus its blue block --- */
    .column_hover_color {
        margin: 0 0 6mm;
        page-break-after: avoid;
    }

    .column_hover_color .hover_color_wrapper {
        padding: 0 !important;
    }

    .column_hover_color h3 {
        color: #000 !important;
        font-size: 15pt;
        margin: 0 !important;
        border-bottom: 1pt solid #000;
        padding-bottom: 2mm;
    }

    /* --- Three columns, as on screen and in the source PDF ---- */
    #Content,
    .content_wrapper,
    .section_wrapper,
    .post-wrapper-content {
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .one-third.column {
        width: 32% !important;
        float: left !important;
        margin: 0 2% 0 0 !important;
        padding: 0 !important;
    }

    .one-third.column:last-child {
        margin-right: 0 !important;
    }

    /* --- Typography inside the columns ------------------------ */
    .column_attr h3 {
        font-size: 10.5pt;
        margin: 4mm 0 1.5mm;
        color: #000 !important;
        page-break-after: avoid;
        break-after: avoid;
    }

    .column_attr p,
    .column_attr li {
        margin: 0 0 1.8mm;
        orphans: 3;
        widows: 3;
    }

    .column_attr ul,
    .column_attr ol {
        margin: 0 0 2mm 4.5mm;
        padding: 0;
    }

    /* Links print as plain text (email addresses are spelled out in the copy) */
    .column_attr a {
        color: #000 !important;
        text-decoration: none;
    }
}
