/* Alpha Dot public mobile overrides, loaded after fluid.css. */
@media screen and (max-width: 800px) {
    body.home { background: #ebedee; }
    #header:after, #home-page-bg, #hamburger,
    #holder > menu .target, #holder > menu .target-on { display: none !important; }
    #header, body.home #header {
        width: 100%; height: auto; min-height: 90px;
        padding: 16px 0; margin: 0 !important;
    }
    #logo-image, body.home #logo-image {
        width: 100%; margin: 0; text-align: center !important;
    }
    #logo-image a {
        position: relative; top: auto; left: auto;
        width: 175px; height: 60px; margin: 0 auto;
    }
    body.home #logo-image a { width: 240px; height: auto; }
    body.home #logo-image img { width: 240px; margin: 0 auto; }
    body.home #logo-image:after { font-size: 15px; line-height: 1.5; padding: 8px 16px 0; }

    /* Visible, wrapping navigation uses the existing links. */
    #holder > menu, #holder > menu.my-account-menu {
        position: relative; top: auto; right: auto; width: 100%;
        margin: 0; padding: 0 12px; background: #3a4858;
    }
    body.home #holder > menu { background: transparent; }
    #holder > menu #main-menu { margin: 0; text-align: center; }
    #holder > menu #main-menu > li > a,
    #holder > menu #main-menu > li > a:hover,
    #holder > menu #main-menu > li > a.on,
    #holder > menu #main-menu > li:hover > a { padding: 8px 10px; line-height: 28px; }
    #holder > menu #main-menu > li.clearfix { display: none; }
    #breadcrumb-links { padding: 10px 20px; line-height: 1.5; }
    #breadcrumb, #breadcrumb a { font-size: 14px !important; }
    body.home #breadcrumb { display: none; }

    body.home #header-pane { width: 100%; left: 0; min-height: 0; }
    #header-pane .block-h { padding: 24px 0; margin-bottom: 0; }
    #header-pane .block-h h1, body.home #header-pane h1 {
        font-size: 32px; line-height: 1.2; margin: 0;
    }
    body.home #header-pane h1 { text-align: center; }
    #main-and-side { width: 100%; }
    #main-content, #side-pane { width: 100%; float: none; }
    #header-pane .block, #main-and-side .block, #footer-pane .block {
        width: 100%; padding-left: 20px; padding-right: 20px;
    }
    .column, .column + .column,
    .width-1-3 + .width-1-3, .width-1-3 + .width-1-3 + .width-1-3 {
        width: 100%; float: none; margin-left: 0 !important;
        /* Override inline heights set by the existing column script. */
        height: auto !important;
    }
    .bg-colour0, .bg-coloured { padding: 32px 0 12px; }
    .bg-colour3, .bg-colour4 { background-image: none; }
    h2, h3 { font-size: 28px; }
    p { line-height: 1.65; }
    #content-area ul { float: none; }
    #content-area ul li { line-height: 1.5; margin-bottom: 12px; }
    body.home .column img { max-height: 320px; width: auto; object-fit: contain; }
    body.registration .width-1-3 img { max-width: 150px; max-height: 150px; }
    .button { min-height: 44px; padding-top: 10px; padding-bottom: 10px; }
    .button-lg { height: auto; line-height: 24px; padding: 14px 28px; }
    .button-sm, .button-xsm { height: auto; line-height: 24px; }

    .homepage-icons-grid { display: flex; flex-wrap: wrap; }
    .homepage-icons-grid .homepage-icons-item { width: 50%; float: none; padding: 20px 8px; }
    .homepage-icons-grid .homepage-icons-item div { margin-top: 12px; }
    .homepage-icons h5 { font-size: 24px; }
    .downloads-icons-item { width: 50%; height: auto; margin: 0 0 24px; }
    .downloads-icons-item .downloads-icons { height: 130px; padding: 16px; }

    body.home #footer-pane .c224 .width-1-2,
    .purchase-card, .purchase-card + .purchase-card {
        width: 100%; float: none; margin: 0 0 24px; padding: 24px 20px;
    }
    body.home #footer-pane .c224 .width-1-2 p { line-height: 1.65; }
    body.home #footer-pane .c224 .width-1-2 .button { margin-bottom: 16px; }
    .purchase-cards { width: 100%; float: none; }
    .purchase-card-graphic { width: 100%; height: auto; float: none; margin: 0; text-align: center; }
    .purchase-card-graphic img { max-width: 100%; max-height: 300px; height: auto; }

    .alpha-login, .alpha-reg, .registration-type, .small-user-form,
    #alphadot-account .small-user-form,
    #alphadot-account .small-user-form + .small-user-form {
        width: 100%; float: none; margin: 0 0 24px;
    }
    .user-form { padding: 24px 16px; }
    .user-form .form-row span.label {
        position: static; display: block; width: auto; padding: 0;
        margin: 0 0 6px; background: none; line-height: 1.4;
    }
    .user-form .form-row span.label span.note {
        position: static; display: inline; font-size: 14px;
    }
    .user-form .form-row-list label,
    .user-form .form-row-list label + label { width: 100%; float: none; }
    .user-form .form-row label input.textbox,
    .user-form .form-row label textarea.textbox,
    .user-form .form-row label select.drop { padding: 10px; }
    .user-form .form-row-1-4, .user-form .form-row-1-2, .user-form .form-row-3-4,
    .user-form .bound-box-left, .user-form .bound-box-right,
    label.form-half { width: 100%; float: none; }
    label.form-half + label.form-half { margin-left: 0; }
    input.textbox, textarea.textbox, select.drop { max-width: 100%; font-size: 16px; }
    .has-error .help-block { margin-left: 0; margin-right: 0; }
    .basket-holder { padding: 20px 12px; }

    /* The basket lives outside #holder. Keep it reachable without moving
       template markup or overlapping the header. */
    body:not(.home) { padding-bottom: 64px; padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
    #members-controls {
        position: fixed; top: auto; bottom: 0; right: 0;
        width: 100%; margin: 0; padding: 12px 16px;
        padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
        background: #fff; border-top: 1px solid #dedede; z-index: 1000;
        font-size: 14px; line-height: 20px;
    }
    #members-controls .my-basket { width: 100%; padding: 0; text-align: center; }
    #members-controls .my-basket .icon, #members-controls .my-basket br { display: none; }
    #members-controls .my-basket a { display: inline-block; padding: 0 4px; }

    #footer { padding: 40px 20px 24px !important; }
    #footer-holder { padding: 50px 0 0; }
    #footer-holder:before { top: 0; left: 0; width: 175px; }
    #footer-content, #footer-links { width: 100%; padding: 16px 0; float: none; text-align: left; }
    .link-group { width: 100%; margin-bottom: 24px; }
    #absolute-div { margin: 0; padding: 16px 20px; background: #3a4858; font-size: 12px; }
    #absolute-div p { overflow-wrap: break-word; }
}
