@font-face {
    font-family:logofont;
    src:url('/fonts/logofont.otf');
    }


/* --- Sidebar --- */

html {
    background:url('/images/grey-noise-bg.png');
    border:0;
    color:#222;
    font-family:"Helvetica", sans-serif;
    }
p {
    font-size:16px;
    line-height:20px;
    }    

#main {
    margin:0 auto;
    position:relative;
    width:790px;
    z-index:100;
    }
#main * {
    float:left;
    margin:0;
    padding:0;
    position:relative;
    }
#main a {
    color: inherit;
    float: none;
    border-bottom: 1px solid #000;
    text-decoration: none;
}
#main a:hover,
#main a:focus {
    border-bottom: none;
}

#content {
    background:#fff;
    border-radius:15px;
    clear:both;
    float:left;
    margin:0 0 40px 0;
    width:790px;
    }
    #matrix-content {
        background:#fff;
        border-radius:15px;
        clear:both;
        margin:0 auto 40px auto;
        padding:40px 20px;
        width:4900px;
        }
    #dot-tracker-content {
        background:#fff;
        border-radius:15px;
        clear:both;
        margin:0 auto 40px auto;
        padding:40px 20px;
        width:1660px;
        }
#realtime-content {
    background:#fff;
    border-radius:15px;
    clear:both;
    float:left;
    margin:40px 0 40px -80px;
    padding-top:40px;
    width:1110px;
    }

#matrix {
    text-align:left;
    }
#matrix a {
    text-decoration: none;
    border-bottom:1px solid;
    }
    #matrix a:hover {
        border-bottom: none;
        }
    #matrix th {
        padding:10px 25px;
        }
        #matrix th a {
            color:inherit;
        }
    #matrix td {
        padding:10px 20px;
        min-width: 180px;
        }


/* --- Navigation --- */

#nav {
    float:left;
    height:95px;
    list-style:none;
    margin:0 0 30px 0;
    padding:30px 0 0 0;
    position:relative;
    width:948px;
    }
    #nav li {float:right;}
    #nav li:first-child {float:left;}
    #nav li a {
        background:#c00;
        border:3px solid #fff;
        border-radius:6px;
        color:#fff;
        float:left;
        font-family:logofont, sans-serif;
        font-size:35px;
        margin:15px 0 0 20px;
        padding:5px 10px 8px 10px;
        text-decoration:none;
        }
        #nav li.main-here a {background:#009;}
        #nav li.site-icon a {
            height:53px;
            opacity: 0.2;
            padding: 0;
            width:53px;
            }
        #nav li.fb-icon a { background:url('/images/fbook-icon.png') top left no-repeat #009; }
            #nav li.fb-icon a:hover,
            #nav li.fb-icon a:focus {
                background:url('/images/fbook-icon.png') top left no-repeat #009;
                border-color: #fff;
                opacity: 1;
                }
        #nav li.realtime-icon a {
            background:url('/images/realtime-icon.png') top left no-repeat #c00;
            opacity: 1;
            }
            #nav li.realtime-icon a:hover,
            #nav li.realtime-icon a:focus {
                background-image:url('/images/realtime-icon-hover.png');
                }
            #nav li.realtime-icon.main-here a {
                background-color: #009;
                }
        #nav li.yh-icon a { background:url('/images/yahoo-icon.png') top left no-repeat #609; }
            #nav li.yh-icon a:hover,
            #nav li.yh-icon a:focus {
                background:url('/images/yahoo-icon.png') top left no-repeat #609;
                border-color: #fff;
                opacity: 1;
                }
    #nav li:first-child a {
        background:none;
        border:none;
        border-radius:10px;
        height:90px;
        margin:0;
        padding:0;
        }
    #nav li a:hover,
    #nav li a:focus {
        background:#a00;
        border-color:#ddd;
        color:#ddd;
        }
        #nav li:first-child a:hover,
        #nav li:first-child a:focus {
            background:none;
            border:none;
            }
        #nav li.main-here a:hover,
        #nav li.main-here a:focus {
            background:#009;
            border-color:#fff;
            color:#fff;
            }
    #nav li a:active {
        margin:17px 0 -2px 20px;
        }
        #nav li:first-child a:active {
            margin:0;
            }
#nav ul {
    list-style:none;
    position:absolute;
        right:0;
        top:115px;
    }
    #nav ul li {float:left;}
    #nav ul li a,
    #nav ul li:first-child a {
        background:none;
        border:none;
        color:#999;
        float:left;
        font-family:"Helvetica", sans-serif;
        font-size:18px;
        height:auto;
        margin:0;
        padding:5px 10px 3px 10px;    
        width:auto;
        }
    #nav ul li a:hover,
    #nav ul li a:focus,
    #nav ul li:first-child a:hover,
    #nav ul li:first-child a:focus {
        background:none;
        border:none;
        color:#666;
        }
    #nav ul li.mini-here a,
    #nav ul li.mini-here a:hover
    #nav ul li.mini-here a:focus {
        background:#fff;
        border-radius:3px;
        color:#009;
        }
    #nav ul li a:active {
        margin:2px 0 -2px 0;
        }
#nav ul#third-nav {
    top:40px;
    width:900px;
    }
    #nav ul#third-nav li {
        float:right;
        }


/* --- Retina Replacements --- */

@media screen and (-webkit-min-device-pixel-ratio: 2), screen and (max-moz-device-pixel-ratio: 2) {
html {
    background:url('/images@2x/grey-noise-bg@2x.png');
    background-size:200px 200px;
    }
#nav li:first-child a img {
    display:none;
    }
#nav li:first-child a {
    background-image:url('/images@2x/logo-mark@2x.png');
    background-size:335px 90px;
    display:block;
    height:90px;
    width:335px;
    }
#nav li:first-child a:hover,
#nav li:first-child a:focus {
    background:url('/images@2x/logo-mark@2x.png');
    background-size:335px 90px;
    }
#nav li.fb-icon a,
#nav li.fb-icon a:hover,
#nav li.fb-icon a:focus {
    background-image:url('/images@2x/fbook-icon@2x.png');
    background-size:53px 53px;
    }
#nav li.realtime-icon a {
    background-image:url('/images@2x/realtime-icon@2x.png');
    background-size:53px 53px;
    }
#nav li.realtime-icon a:hover,
#nav li.realtime-icon a:focus {
    background-image:url('/images@2x/realtime-icon-hover@2x.png');
    background-size:53px 53px;
    }
#nav li.yh-icon a,
#nav li.yh-icon a:hover,
#nav li.yh-icon a:focus {
    background-image:url('/images@2x/yahoo-icon@2x.png');
    background-size:53px 53px;
    }
}

/* --- Table sorting --- */
.sortable th.indicator-left span[id*="sorttable"] {
    display: none;
}
.sortable th.indicator-left[class~="sorttable_sorted_reverse"]::before {
    margin-right: 3px;
    content: '\025B4';
}
.sortable th.indicator-left[class~="sorttable_sorted"]::before {
    margin-right: 3px;
    content: '\025BE';
}

#main a.team-link {
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0); /* Transparent bottom border. */
}
#main a.team-link:hover,
#main a.team-link:focus {
    border-bottom-color: inherit;
}
