/*
 * The basic version's look (GH-672): the old site's own, from its styles.css - the
 * dark page, the white panel, the orange buttons, the underlined headings, the grey
 * played rows and the points colours - over Bootstrap 3.4.1.
 *
 * Plain CSS on purpose: no custom properties, no grid, nothing an iOS 12 Safari does
 * not draw. A zone is shaded and barred like the full site's, focus is always visible,
 * and the text clears 4.5:1 on its background.
 */

/* The old site's headings were Noto Sans (GH-862), served here rather than from a font
   host, so the basic version still asks nothing of anybody else. Its body text asked
   for "OpenSans", a name nothing served, so what players saw was the system's sans. */
@font-face {
    font-family: "Noto Sans";
    font-weight: 400;
    src: url("fonts/noto-sans-latin.woff") format("woff");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Noto Sans";
    font-weight: 400;
    src: url("fonts/noto-sans-latin-ext.woff") format("woff");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "Noto Sans";
    font-weight: 400;
    src: url("fonts/noto-sans-greek.woff") format("woff");
    unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}

body {
    background: #333;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: #222;
}

/* The old site's grass behind the panel: its own main-bg.jpg, behind a tablet or wider
   only, as it had it, so a phone - which shows a white page - never fetches it. The
   #111 under it is the image's own bottom edge, where a long page runs past it. */
@media (min-width: 768px) {
    body {
        background: #111 url("main-bg.jpg") no-repeat center top;
    }
}

h1, h2, h3, h4, h5, h6 {
    font-family: "Noto Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.basic-copyright {
    margin: 20px 0 30px;
    color: #fff;
    text-align: center;
}

#container {
    background: #fff;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    padding-bottom: 15px;
}

.basic-header {
    padding: 8px 0 5px;
    text-align: right;
}

.basic-logo {
    height: 87px;
    width: auto;
}

.navbar {
    border-radius: 0;
    margin-left: -15px;
    margin-right: -15px;
}

.navbar-form {
    margin-right: 0;
}

h1.header,
h4.header {
    font-size: 20px;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}

span.header-line {
    display: block;
    height: 2px;
    margin: 7px 0 0;
    max-width: 300px;
    background: #eb9038;
}

h2.basic-table-heading {
    font-size: 17px;
    margin: 15px 0 10px;
}

/* "About this league" (GH-946): the organiser's line breaks kept, a long word wrapped. */
.basic-league-about {
    white-space: pre-line;
    overflow-wrap: break-word;
}

.text-muted {
    color: #595959;
}

.help-block {
    color: #595959;
}

.has-error .help-block {
    color: #a94442;
}

/* Beside a large button, as the old site's was beside its smaller one. */
.basic-forgot {
    margin-top: 13px;
}

/* Bootstrap's legend is a large page heading; this one names a few checkboxes. */
.basic-legend {
    border: 0;
    font-size: inherit;
    font-weight: bold;
    margin-bottom: 5px;
}

/* The old site's orange, Bootstrap's own, with dark text where it had white (GH-759):
   white on this orange is about 1.9:1, and this is the Save button. */
.btn-warning {
    background: #f0ad4e;
    border-color: #eea236;
    color: #222;
}

.btn-warning:hover,
.btn-warning:focus {
    background: #ed9c28;
    border-color: #d58512;
    color: #222;
}

a {
    color: #1a5a96;
}

a:focus,
button:focus,
input:focus,
select:focus,
.btn:focus {
    outline: 3px solid #1a5a96;
    outline-offset: 2px;
}

#main:focus {
    outline: none;
}

.basic-skip.sr-only-focusable:focus {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 10;
    padding: 8px 12px;
    background: #fff;
}

/* The Mini-Leagues dropdown: Bootstrap's own menu, opened by <details> instead of its
   script (GH-691). The summary is drawn as a navbar link. */

.basic-dropdown summary {
    display: block;
    padding: 15px;
    line-height: 20px;
    color: #555;
    cursor: pointer;
    list-style: none;
}

.basic-dropdown summary::-webkit-details-marker {
    display: none;
}

.basic-dropdown summary:hover,
.basic-dropdown details[open] summary {
    color: #333;
    background: #e7e7e7;
}

.basic-dropdown summary:focus {
    outline: 3px solid #1a5a96;
    outline-offset: -3px;
}

.basic-dropdown details[open] .dropdown-menu {
    display: block;
    max-height: 70vh;
    overflow-y: auto;
}

.basic-dropdown-note {
    padding: 3px 20px;
    max-width: 280px;
    white-space: normal;
    color: #595959;
}

/* The old site's pressed-in tab: grey with an inset shadow, not bold (GH-862). */
.navbar-default .navbar-nav > .active > a,
.navbar-default .navbar-nav > .active > details > summary {
    color: #333;
    background: #e7e7e7;
    box-shadow: 0 0 4px #ccc inset;
}

/* Log out is a form post, so a button, drawn as the link beside it would be: in the
   name's dropdown from a tablet up, its own line in a phone's menu. */
.basic-menu-button {
    display: block;
    width: 100%;
    padding: 3px 20px;
    border: 0;
    background: none;
    line-height: 1.42857143;
    color: #333;
    text-align: left;
    white-space: nowrap;
}

.basic-menu-button:hover {
    background: #f5f5f5;
}

.basic-menu-button:focus {
    outline: 3px solid #1a5a96;
    outline-offset: -3px;
}

.navbar-nav > li > form > .basic-menu-button {
    padding: 10px 15px;
    line-height: 20px;
    color: #555;
}

.dropdown-menu > .active > a,
.dropdown-menu > .active > a:hover,
.dropdown-menu > .active > a:focus {
    background: #f0ad4e;
    color: #222;
}

.basic-divisions {
    margin-bottom: 15px;
}

.nav-pills > li.active > a,
.nav-pills > li.active > a:hover,
.nav-pills > li.active > a:focus {
    background: #f0ad4e;
    color: #222;
}

.basic-league-fixtures .btn {
    margin-top: 4px;
}

.basic-league-fixtures thead th {
    font-size: 12px;
}

@media (max-width: 767px) {
    /* A heading may break inside a long word - "Victoire à l'extérieur", "Votre
       pronostic" - rather than push a 320px screen sideways. Only on a phone: beside the
       Mini-Leagues column a tablet has the room, and "Result" split as "Resu-lt". */
    .prediction-table thead th {
        word-break: break-word;
        -webkit-hyphens: auto;
        hyphens: auto;
    }

    .prediction-table > thead > tr > th,
    .prediction-table > tbody > tr > td,
    .prediction-table > tbody > tr > th,
    .prediction-table > tfoot > tr > th,
    .prediction-table > tfoot > tr > td {
        padding: 5px 3px;
    }

    .prediction-table thead th {
        font-size: 11px;
    }

    /* A score is read as one thing - "2 - 1" never stacks - and a short heading such as
       "Pts" is never spelled down the column. */
    .prediction-table .basic-nowrap {
        white-space: nowrap;
    }

    /* A modal has less room than the page, so a very long name breaks rather than
       pushing the points out of the dialog. */
    .basic-modal .prediction-table td.left {
        word-break: break-word;
    }
}

.standings-table .basic-excluded {
    text-decoration: line-through;
}

.basic-round-picker {
    margin-bottom: 15px;
}

.basic-round-picker select {
    width: auto;
    display: inline-block;
    max-width: 60%;
}

/* The slip's heading with its round picker on the right, the old site's (GH-846): the
   grey rule moves from the heading to the pair, so it runs under both. A browser without
   flexbox stacks them, as a phone does, with the rule under the picker. */
@media (min-width: 768px) {
    .basic-section-head {
        display: flex;
        align-items: center;
        margin: 25px 0 15px;
        border-bottom: 1px solid #eee;
    }

    .basic-section-head h2.header {
        flex: 1 1 auto;
        margin: 0;
        border-bottom: 0;
    }

    .basic-section-head .basic-round-picker {
        flex: 0 0 auto;
        margin: 0 0 0 15px;
    }

    .basic-section-head .basic-round-picker select {
        max-width: none;
    }
}

/* The slip */

.prediction-table td,
.prediction-table th {
    text-align: center;
    vertical-align: middle;
}

.prediction-table .left {
    text-align: left;
}

.prediction-table .played {
    background: #eee;
}

.prediction-table .basic-date th {
    background: #f7f7f7;
    font-weight: bold;
}

.basic-boxes {
    white-space: nowrap;
}

.basic-boxes input.form-control {
    display: inline-block;
    width: 44px;
    height: 36px;
    padding: 4px;
    text-align: center;
    font-size: 16px;
}

.basic-boxes input.basic-invalid {
    border: 2px solid #a94442;
}

/* From a tablet up, the old site's row (GH-862): the home side's short name against its
   box, the two boxes a gap apart with no dash, and the away side's name after them. */
.prediction-table .basic-team-home {
    text-align: right;
}

/* The blank heads over the names, which are cells rather than headers, keep the rule. */
.prediction-table > thead > tr > td {
    border-bottom: 2px solid #ddd;
}

@media (min-width: 768px) {
    .basic-boxes .basic-box + .basic-box {
        margin-left: 15px;
    }
}

.points_0 { color: #333366; }
.points_1 { color: #522b57; }
.points_3 { color: #802040; }
.points_5 { color: #b21326; }
.points_7 { color: #c00000; }

/* The tables */

.basic-periods {
    margin-bottom: 15px;
}

.basic-league-tabs {
    margin-bottom: 15px;
}

/* The old site's tight rows (its `table-x-condensed`), opened by a pixel each way so a
   name, as a link, is still a 24px target. */
.standings-table > thead > tr > th,
.standings-table > tbody > tr > td {
    padding: 2px 4px;
}

.standings-table td,
.standings-table th {
    text-align: center;
}

.standings-table .user {
    text-align: left;
}

.standings-table .promotion {
    background: #dff0d8;
}

.standings-table .relegation {
    background: #f2dede;
}

/* The full site's zone bar: a line down the left edge that a shade alone does not
   give, and that survives the player's own row painting over the shade. */
.standings-table .promotion > td:first-child {
    box-shadow: inset 4px 0 0 #2b6b2b;
}

.standings-table .relegation > td:first-child {
    box-shadow: inset 4px 0 0 #a32020;
}

/* The More menu at the end of a mini-league's Week / Month / Season buttons (GH-925),
   opened by <details> rather than Bootstrap's script, like the Mini-Leagues menu. */
.basic-more summary {
    list-style: none;
}

.basic-more summary::-webkit-details-marker {
    display: none;
}

.basic-more summary:focus {
    outline: 3px solid #1a5a96;
    outline-offset: -3px;
}

.basic-more[open] .dropdown-menu {
    display: block;
}

/* A season ranked by points per game or percent correct (GH-925): the line above the
   first member who has not predicted enough games to be placed. Their place reads "-"
   and says why to a screen reader, and the sentence above the table says it to everyone. */
.standings-table .below-line > td {
    border-top: 2px solid #777;
}

.standings-table .me {
    background: #fcf0d4;
    font-weight: bold;
}

.standings-table .champion {
    background: #ffcc66;
}

.basic-zone,
.basic-you {
    display: inline-block;
    font-size: 11px;
    font-weight: normal;
    padding: 1px 5px;
    border-radius: 3px;
    margin-left: 4px;
    white-space: nowrap;
}

.basic-you {
    background: #f0ad4e;
    color: #222;
}

.basic-zone-promotion {
    background: #2b6b2b;
    color: #fff;
}

.basic-zone-relegation {
    background: #a32020;
    color: #fff;
}

.basic-pages .pagination {
    margin: 5px 0 10px;
}

.basic-footer {
    border-top: 1px solid #eee;
    margin-top: 20px;
    padding-top: 10px;
    font-size: 13px;
    color: #595959;
}

@media (max-width: 767px) {
    body {
        background: #fff;
    }

    #container {
        border-radius: 0;
    }

    .basic-periods {
        text-align: center;
    }

    /* Bootstrap boxes a scrolling table in on a phone; the old site's had no box. */
    .table-responsive {
        border: 0;
    }

    /* A name keeps its "You" label in view, wrapping under it, rather than
       pushing them off the side of a 320px screen. */
    .table-responsive > .standings-table td.user {
        white-space: normal;
    }

    /* As Bootstrap's own open menu in a collapsed navbar: in the flow, not floating. */
    .basic-dropdown details[open] .dropdown-menu {
        position: static;
        float: none;
        width: auto;
        max-height: none;
        border: 0;
        box-shadow: none;
    }

    .basic-dropdown .dropdown-menu > li > a {
        padding: 10px 15px 10px 25px;
    }

    .prediction-table {
        font-size: 13px;
    }

    .basic-boxes input.form-control {
        width: 38px;
    }

    .basic-round-picker .btn-warning {
        min-width: 44px;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
        animation: none !important;
    }
}

/* Profile and Predictions (GH-695): the old site's profile above the slip, and its
   snapshots and charts below. */

h2.header {
    font-size: 18px;
    border-bottom: 1px solid #eee;
    margin: 25px 0 15px;
}

.basic-avatar {
    display: block;
    margin: 0 auto 15px;
    max-width: 100%;
    height: auto;
    border: 3px solid #eee;
}

.basic-profile-details > tbody > tr:first-child > th,
.basic-profile-details > tbody > tr:first-child > td {
    border-top: none;
}

.basic-profile-details th {
    width: 45%;
    font-weight: normal;
    color: #595959;
}

@media (max-width: 767px) {
    .basic-profile-details th,
    .basic-profile-details td {
        font-size: 13px;
    }
}

/* The Competition dropdown, in the old site's grey strip under the navbar (GH-860),
   edge to edge as the navbar is. */

.basic-subnav {
    position: relative;
    margin: -20px -15px 15px;
    background: #e7e7e7;
}

.basic-dropdown.basic-subnav summary {
    padding: 9px 15px;
    line-height: 21px;
    color: #333;
    white-space: normal;
    text-align: left;
}

.basic-dropdown.basic-subnav summary:hover,
.basic-dropdown.basic-subnav details[open] summary {
    background: #d4d4d4;
}

@media (max-width: 767px) {
    .basic-copyright {
        color: #333;
    }
}

/* The trophy cabinet (GH-695): the full site's `<x-trophy-badge>`, styled here as the
   panel theme's `.ptf-trophy` styles it, in plain CSS. The numeral sits on the medal's
   disc, 68% down the art - `--ptf-trophy-position-top` in the theme, measured there. */

.basic-trophy-row {
    margin-bottom: 10px;
}

.ptf-trophy {
    position: relative;
    display: inline-block;
    height: 56px;
    margin: 0 6px 6px 0;
    vertical-align: bottom;
}

.ptf-trophy img {
    height: 100%;
    width: auto;
    max-width: none;
}

/* No dark mode here, so the light art is always the one shown. */
.ptf-trophy-dark {
    display: none;
}

.ptf-trophy-position {
    position: absolute;
    left: 50%;
    top: 68%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    font-size: 17px;
    font-weight: bold;
    line-height: 1;
    color: #fff;
    pointer-events: none;
}

.ptf-trophy-position-wide {
    font-size: 13px;
    letter-spacing: -0.03em;
}

/* A shelf in the "Trophies by season" modal (GH-846): the rule above each one is the
   shelf, so the first, under the summary line, has none. */
.basic-shelf-heading {
    font-size: 15px;
    margin: 10px 0 6px;
    padding-top: 8px;
    border-top: 1px solid #eee;
}

p + .basic-shelf-heading {
    border-top: 0;
    padding-top: 0;
}

/* The profile's charts (GH-759), as plain bars: the old site's blue columns over a
   ruled plot, its value above each and the month under it. Heights are set in pixels
   on the bar, out of the 120 the plot leaves room for. */
.basic-charts {
    margin-top: 10px;
}

.basic-chart-bars {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    margin: 0 0 10px;
    padding: 0;
    list-style: none;
}

.basic-chart-bars li {
    -webkit-box-flex: 1;
    -webkit-flex: 1 1 0;
    flex: 1 1 0;
    min-width: 0;
    text-align: center;
}

.basic-chart-plot {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-flex-direction: column;
    flex-direction: column;
    -webkit-box-pack: end;
    -webkit-justify-content: flex-end;
    justify-content: flex-end;
    height: 140px;
    border-bottom: 1px solid #333;
    background-image: linear-gradient(to top, #ddd 1px, transparent 1px);
    background-size: 100% 30px;
    background-position: left bottom;
}

.basic-chart-bar {
    display: block;
    margin: 0 1px;
    background: #3366cc;
}

.basic-chart-value {
    display: block;
    color: #3366cc;
    font-size: 11px;
    line-height: 18px;
    white-space: nowrap;
}

.basic-chart-label {
    display: block;
    padding-top: 3px;
    font-size: 11px;
    line-height: 16px;
    overflow: hidden;
}

.basic-chart-season {
    font-size: 18px;
    font-weight: bold;
    line-height: 34px;
}

.basic-chart-stepper {
    margin-bottom: 20px;
}

/* A profile snapshot's numbers (GH-759) are columns of one width, so a run of them lines
   up from one snapshot to the next: nine of them from a tablet up, and the four a phone
   keeps (P, GD, bonus, points). The position is pinned too, so the names start in the
   same place; the name takes the rest. */
.basic-even .basic-num,
.basic-even .basic-pos {
    width: 7%;
}

@media (max-width: 767px) {
    .basic-even .basic-num {
        width: 15%;
    }

    .basic-even .basic-pos {
        width: 10%;
    }
}

/* The slip's bonus columns (GH-781): narrow and centred, a tick in the old site's green
   for a bonus, with its words hidden beside it for a screen reader. */
.prediction-table .basic-bonus {
    text-align: center;
    white-space: nowrap;
}

.basic-tick {
    color: #2b6b2b;
    vertical-align: -3px;
}

.basic-share {
    font-size: 12px;
}

.basic-share-in {
    color: #2b6b2b;
    font-weight: bold;
}

/* The old site's "(?)" beside a column heading, opening what it means. */
.basic-help {
    font-weight: normal;
    font-size: 12px;
    white-space: nowrap;
}

/* The way into a fixture's info, after the team names as the old site had it: the
   icon is small, the target is not. */
.basic-info-link {
    display: inline-block;
    padding: 6px;
    margin: -6px -6px -6px 0;
    line-height: 1;
    vertical-align: -2px;
}

/* The basic modals (GH-781, GH-846) are Bootstrap's own `.modal`, drawn by its CSS.
   What is here is what its jQuery plugin would otherwise do: show it, by its anchor
   (`:target`) with no script or by the `is-open` the script adds, and let a long one
   scroll even before the script has put `modal-open` on the body. */
.basic-modal:target,
.basic-modal.is-open {
    display: block;
    overflow-x: hidden;
    overflow-y: auto;
}

/* The backdrop is inside the modal here rather than beside it, as a link that closes
   it, so the dialog has to be lifted over it. */
.basic-modal-backdrop {
    opacity: 0.5;
}

.basic-modal .modal-dialog {
    z-index: 1050;
}

/* Bootstrap's × is 20% black, too faint to find; this is about 8:1 on white, and a
   bigger target than the glyph. */
.basic-modal .close {
    margin: -8px -10px 0 10px;
    padding: 4px 10px;
    font-size: 28px;
    opacity: 0.7;
    text-decoration: none;
}

.basic-modal .close:hover,
.basic-modal .close:focus {
    opacity: 1;
}

.basic-modal .modal-title {
    font-size: 18px;
}

.basic-modal-subtitle {
    margin: 2px 0 0;
}

.basic-modal-heading {
    margin: 20px 0 8px;
    font-size: 13px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #595959;
}

.basic-modal-score {
    font-size: 18px;
}

.basic-modal-pick {
    padding: 10px 12px;
    background: #fcf0d4;
    border: 1px solid #f0d9a6;
    border-radius: 4px;
}

.basic-modal-pick p {
    margin-bottom: 4px;
}

.basic-modal-points {
    font-size: 20px;
    font-weight: bold;
}

.basic-modal-bonuses {
    margin: 6px 0 0;
}

.basic-modal-bonus-in {
    color: #2b6b2b;
}

.basic-modal-breakdown th {
    font-weight: normal;
    padding-right: 20px;
}

/* Win, draw, win upright, as the old site drew them (GH-846). The plot is one height
   for all three, set on the page, with the figure and bar pinned to its foot, so the bars
   share a baseline however many lines a team's name wraps to underneath. */
.basic-modal-outcomes {
    margin: 0 0 16px;
    text-align: center;
}

.basic-modal-outcomes li {
    display: inline-block;
    width: 32%;
    vertical-align: top;
}

.basic-modal-outcome-plot {
    position: relative;
    display: block;
}

.basic-modal-outcome-stack {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
}

.basic-modal-outcome-share {
    display: block;
    margin-bottom: 2px;
}

.basic-modal-outcome-bar {
    display: block;
    width: 40%;
    margin: 0 auto;
    background: #3366cc;
}

.basic-modal-outcome-label {
    display: block;
    padding: 4px 2px 0;
    font-weight: bold;
    line-height: 1.2;
    word-wrap: break-word;
}

.basic-modal-shares {
    width: 100%;
    margin-bottom: 10px;
}

.basic-modal-shares th,
.basic-modal-shares td {
    padding: 3px 4px;
    vertical-align: middle;
}

.basic-modal-shares th {
    width: 1%;
    white-space: nowrap;
    font-weight: normal;
}

.basic-modal-bar-cell {
    width: 60%;
}

.basic-modal-bar {
    display: block;
    height: 12px;
    background: #3366cc;
}

.basic-modal-share {
    width: 1%;
    white-space: nowrap;
    text-align: right;
}

.basic-modal-labels {
    width: 1%;
    white-space: nowrap;
}

.basic-modal-marked {
    background: #fcf0d4;
}

.basic-label-yours {
    background: #f0ad4e;
    color: #222;
}

.basic-label-result {
    background: #333;
    color: #fff;
}

.basic-modal-more summary {
    cursor: pointer;
    color: #1a5a96;
    padding: 4px 0;
}

@media (max-width: 767px) {
    .basic-modal-bar-cell {
        width: 40%;
    }
}

/* The slip on a phone with its bonus columns (GH-781): the kick-off time goes under the
   team names, each "(?)" under its heading, and the cells and boxes close up, so the
   points column stays on a 320px screen. */
.basic-xs-time {
    font-size: 12px;
    color: #595959;
}

@media (max-width: 767px) {
    .prediction-table > thead > tr > th,
    .prediction-table > tbody > tr > td,
    .prediction-table > tfoot > tr > td,
    .prediction-table > tfoot > tr > th {
        padding-left: 3px;
        padding-right: 3px;
    }

    .prediction-table > thead > tr > th {
        font-size: 11px;
        vertical-align: bottom;
    }

    .prediction-table .basic-help {
        display: block;
    }

    .prediction-table .basic-boxes input.form-control {
        width: 34px;
        padding-left: 4px;
        padding-right: 4px;
    }
}

/* The old site's phone frame (GH-860): a small logo at the left of the navbar and the
   three-bar button at its right, the menu folded behind it once `<x-basic.menu />` has
   marked the navbar. Without script nothing is marked and the menu stays open. */
.basic-brand {
    float: left;
    padding: 4px 10px 4px 5px;
}

.basic-brand img {
    display: block;
    height: 42px;
    width: auto;
}

.navbar-default .basic-toggle {
    border-color: #ccc;
}

.navbar-default .basic-toggle .icon-bar {
    background: #555;
}

@media (max-width: 767px) {
    .basic-folding .basic-menu {
        display: none;
    }

    .basic-folding .basic-menu.in {
        display: block;
    }
}

/* The slip on a phone, as the old site drew it (GH-860): each team's short name over its
   own box, the two side by side in the prediction column, and the kick-off and the
   fixture info in a narrow column after them. Below 400px CRB and ESB go, as they did
   there, so a 320px screen keeps the boxes, the result and the points. */
@media (max-width: 767px) {
    .prediction-table .basic-boxes {
        white-space: normal;
        text-align: left;
    }

    .prediction-table .basic-box {
        float: left;
        width: 50%;
        padding-right: 4px;
    }

    .prediction-table .basic-box-team {
        display: block;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
        font-size: 13px;
        line-height: 18px;
    }

    .prediction-table .basic-boxes input.form-control,
    .prediction-table .basic-boxes .basic-box input.form-control {
        width: 44px;
        max-width: 100%;
    }

    .prediction-table .basic-xs-info {
        width: 1%;
        white-space: nowrap;
        text-align: center;
    }

    .prediction-table .basic-xs-info .basic-xs-time {
        display: block;
    }

    .prediction-table .basic-xs-info .basic-info-link {
        margin: 0;
    }
}

/* Important, as Bootstrap's own `visible-xs` is, so a cell can be both: drawn on a phone,
   but not below 400px. */
.prediction-table .basic-visible-xxs {
    display: none !important;
}

@media (max-width: 399px) {
    .prediction-table .basic-hidden-xxs {
        display: none !important;
    }

    .prediction-table .basic-visible-xxs {
        display: table-cell !important;
    }
}

/* The round picker on a phone, the old site's: `<<` at one edge, `>>` at the other, and
   the week between them taking the rest. */
@media (max-width: 767px) {
    .basic-round-picker {
        display: -webkit-box;
        display: -webkit-flex;
        display: flex;
        -webkit-box-align: center;
        -webkit-align-items: center;
        align-items: center;
    }

    .basic-round-picker select {
        -webkit-box-flex: 1;
        -webkit-flex: 1 1 auto;
        flex: 1 1 auto;
        min-width: 0;
        max-width: none;
        margin: 0 8px;
    }

    .basic-round-picker .btn-default {
        margin-right: 8px;
    }
}

/* Starting a competition: the list and the team question. */
.basic-join-heading {
    font-size: 18px;
    margin: 20px 0 8px;
}

/* A competition and its season at the left, the button lined up at the right. */
.basic-competitions td {
    text-align: right;
}

.basic-join-meta {
    display: block;
    color: #555;
    font-weight: normal;
    margin-top: 2px;
}

.basic-join-team {
    max-width: 400px;
}

.basic-join-back {
    margin-top: 20px;
}

/* 5px in from the panel, as the table's cell padding sets the buttons above it. */
.basic-more-competitions {
    padding-right: 5px;
    text-align: right;
}
