* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

@font-face {
    font-family: TorstarDeckCondensed;
    src: url(https://misc.thestar.com/fonts/TorstarDeckCondensed-Semibold.otf);
}

.ui-accordion .ui-accordion-content {
    padding: 1em 2.2em;
    border-top: 0;
    overflow-y: scroll !important;
    max-height: 260px !important;
}

sup {
    font-size: smaller;
    vertical-align: super;
}

body {
    font-family: 'Inter', sans-serif;
    /* border-radius: 10px;
    margin: 2px;
   */
    /*border: 1px solid #bfbfbf;
   */
    background-color: #f8f8f8;
}

.hidden {
    display: none;
}

.graphic-1 {
    max-width: 690px;
    margin: 0 auto;
}

#opening-container {
    border-top: 10px solid grey;
}

.graphic-bottom {
    margin: 12px 0 0;
    padding: 4px 0 16px;
    border-top: 1px solid #b0b0b0;
}

.graphic-bottom:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: " ";
    clear: both;
    height: 0;
}

@media (min-width: 526px) {
    .graphic-bottom {
        padding-top: 6px;
    }
}

@media (min-width: 592px) {
    .graphic-bottom {
        padding-top: 8px;
    }
}

p.graphic-bottom__graphic-source {
    margin: 0;
    padding-bottom: 4px;
    font-size: 11px;
    line-height: 1.35em;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, Helvetica, Arial, sans-serif;
    color: #707070;
    text-rendering: optimizeLegibility;
    text-transform: uppercase;
}

@media (min-width: 526px) {
    p.graphic-bottom__graphic-source {
        max-width: 65%;
        vertical-align: top;
        float: left;
        font-size: 12px;
    }
}

p.graphic-bottom__graphic-byline {
    margin: 0;
    padding-bottom: 4px;
    font-size: 11px;
    line-height: 1.35em;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, Helvetica, Arial, sans-serif;
    color: #707070;
    text-transform: uppercase;
    text-rendering: optimizeLegibility;
}

@media (min-width: 526px) {
    p.graphic-bottom__graphic-byline {
        text-align: right;
        max-width: 30%;
        vertical-align: top;
        float: right;
        font-size: 12px;
    }
}

p.graphic-bottom__notetext {
    margin: 0;
    text-align: left;
    font-size: 14px;
    line-height: 1.35em;
    padding-bottom: 8px;
    color: #444;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: subpixel-antialiased;
    -moz-osx-font-smoothing: auto;
    text-rendering: optimizeLegibility;
}

@media (min-width: 526px) {
    p.graphic-bottom__notetext {
        font-size: 15px;
    }
}

@media (min-width: 592px) {
    p.graphic-bottom__notetext {
        font-size: 16px;
    }
}

.graphic {
    width: 100%;
}

p#battleGround {
    line-height: 1.3em;
    font-size: 14px;
    font-style: italic;
    margin: 0;
    padding-bottom: 8px;
}

#divider {
    width: 100%;
    height: 1px;
    background-color: #b0b0b0;
    margin-top: 8px;
    margin-bottom: 8px;
}

#ridingStory {
    font-size: 10pt;
    line-height: 14pt;
    padding: 0 0 16px;
    width: 100%;
    max-width: 715px;
}

#ridingStory h2 {
    font-size: 11pt;
    line-height: 16pt;
    padding-bottom: 4px;
}

#ridingStory p {
    color: #303030;
}

#ridingStory p br {
    height: 4px;
}

#ridingStory h3 {
    font-size: 10pt;
    line-height: 14pt;
    font-weight: 500;
    padding-bottom: 4px;
    padding-top: 3px;
    padding-left: 0px;
}

#ridingIntro {
    font-size: 10pt;
    line-height: 14pt;
    padding: 4px 4px 16px;
    width: 100%;
    max-width: 715px;
}

#ridingIntro p {
    color: #303030;
}

#ridingIntro p br {
    height: 4px;
}

#boiler,
#boiler2 {
    font-size: 10pt;
    line-height: 14pt;
    padding: 4px 4px 16px;
    width: 100%;
    max-width: 715px;
    margin-top: 12px;
}

#boiler h2 {
    font-size: 11pt;
    line-height: 16pt;
    padding-bottom: 4px;
}

#boiler p {
    color: #303030;
}

#boiler2 p {
    color: #303030;
}

#boiler p br {
    height: 4px;
}

#boiler2 p br {
    height: 4px;
}

#boiler h3 {
    font-size: 10pt;
    line-height: 14pt;
    font-weight: 500;
    padding-bottom: 4px;
    padding-top: 3px;
    padding-left: 0px;
}

#boiler2 h3 {
    font-size: 10pt;
    line-height: 14pt;
    font-weight: 500;
    padding-bottom: 4px;
    padding-top: 3px;
    padding-left: 0px;
}

.incumbent {
    font-weight: 600;
}

.partyTitle {
    padding-left: 5px;
    padding-top: 2px;
    padding-bottom: 2px;
    font-weight: 700;
}

.container {
    position: relative;
    background: #fff;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    width: 90%;
    min-height: 300px;
    margin: 0 auto;
    margin-bottom: 2rem;
    font-family: 'Inter';
}

#pastResults {
    display: inline-block;
    width: 100%;
    padding-bottom: 16px;
}

#pastResultsTable {
    width: 100%;
    max-width: 700px;
}

#theRaceTitle {
    padding-bottom: 8px;
}

#statCan {
    display: inline-block;
    margin-left: 0%;
    margin-top: 18px;
}

.categoryCol {
    font-weight: 600;
    color: #474747;
    line-height: 10pt;
}

h3 {
    font-size: 1.1em;
    margin-bottom: 1px;
    margin-top: 5px;
    font-weight: 700;
}

h2 {
    font-size: 1.35em;
    font-weight: 800;
    line-height: 14pt;
}

h1 {
    margin: 0;
    /* font-size: 26px;
    line-height: 1.2em;
   */
    padding-bottom: 4px;
    color: #000;
    text-rendering: optimizeLegibility;
    font-weight: normal;
    font-style: normal;
    -moz-osx-font-smoothing: grayscale;
}

.graphic-top {
    padding: 8px 0;
}

@media (min-width: 526px) {
    .graphic-top {
        padding: 12px 0;
    }
}

@media (min-width: 592px) {
    .graphic-top {
        padding: 16px 0;
    }
}

h2.graphic-top__graphic-hed {
    margin: 0;
    font-size: 26px;
    line-height: 1.2em;
    padding-bottom: 4px;
    font-family: "TorstarDeckCondensed", Georgia, "Times New Roman", Times, serif;
    color: #000;
    text-rendering: optimizeLegibility;
    font-weight: normal;
    font-style: normal;
    -moz-osx-font-smoothing: grayscale;
}

@media (min-width: 526px) {
    h2.graphic-top__graphic-hed {
        font-size: 28px;
    }
}

@media (min-width: 592px) {
    h2.graphic-top__graphic-hed {
        font-size: 30px;
    }
}

#map {
    position: relative;
    top: 0;
    bottom: 0;
    height: 450px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 16px;
}

.upGreen {
    background-color: #e4f7e4;
    color: green;
    font-weight: 500;
}

.downRed {
    background-color: #ffebe8;
    color: #bf4734;
    font-weight: 500;
}

table,
th,
td {
    border-collapse: collapse;
    border: 1px solid #ddd;
    padding: 8px 12px 8px 8px;
}

.party-container {
    margin-bottom: 8px;
}

.party-container p {
    padding: 7px;
    padding-bottom: 0px;
}

.othColour {
    background-color: #83789E;
}

.othColour~.winner {
    color: #83789E;
}

.bqColour {
    background-color: #2fa4bc;
}

.bqColour~.winner {
    color: #2fa4bc;
}

#bq-container {
    border: 1px solid #2fa4bc;
    background-color: #ebfcff;
}

.libColour {
    background-color: #d32a37;
}

.libColour~.winner {
    color: #d32a37;
}

.libColourFade {
    background-color: #fae3e5;
    margin-top: 0px;
    font-weight: 500;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
}

#lib-container {
    border-top: 6px solid #d32a37;
    background-color: #fffafa;
}

.conColour {
    background-color: #2b64ae;
}

.conColour~.winner {
    color: #2b64ae;
}

.conColourFade {
    background-color: #e8f1fa;
    margin-top: 0px;
    font-weight: 500;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
}

#con-container {
    border-top: 6px solid #2b64ae;
    background-color: #fafcff;
}

.grnColour {
    background-color: #4da659;
}

.grnColourFade {
    background-color: #e1f2e4;
    margin-top: 0px;
    font-weight: 500;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
}

.grnColour~.winner {
    color: #4da659;
}

#grn-container {
    border-top: 6px solid #4da659;
    background-color: #fafcfa;
}

.ndpColour {
    background-color: #e56f30;
}

.ndpColour~.winner {
    color: #e56f30;
}

.ndpColourFade {
    background-color: #fce7dc;
    margin-top: 0px;
    font-weight: 500;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
}

#ndp-container {
    border-top: 6px solid #e56f30;
    background-color: #fffaf7;
}

#oth-container {
    border-top: 6px solid #DCDCDC;
    background-color: #fffaf7;
}

.othColour {
    background-color: #DCDCDC;
}

.othColour~.winner {
    color: #DCDCDC;
}

.othColourFade {
    background-color: #f0eeee;
    margin-top: 0px;
    font-weight: 500;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
}

.othText {
    color: #83789E;
}

.bqText {
    color: #2fa4bc;
}

.libText {
    color: #d32a37;
}

.conText {
    color: #2b64ae;
}

.grnText {
    color: #4da659;
}

.ndpText {
    color: #e56f30;
}

.capColour {
    background-color: #DCDCDC;
}

.ccpColour {
    background-color: #DCDCDC;
}

.cepColour {
    background-color: #DCDCDC;
}

.cnsColour {
    background-color: #00BAF2;
}

.comColour {
    background-color: #FF6347;
}

.corColour {
    background-color: #66CC66;
}

.freColour {
    background-color: #3333CC;
}

.indColour {
    background-color: #DCDCDC;
}

.modColour {
    background-color: #DCDCDC;
}

.mulColour {
    background-color: #DCDCDC;
}

.naColour {
    background-color: #DCDCDC;
}

.napColour {
    background-color: #808080;
}

.npcColour {
    background-color: #DCDCDC;
}

.nrtColour {
    background-color: #DC663C;
}

.oalColour {
    background-color: #DCDCDC;
}

.onpColour {
    background-color: #112f53;
}

.pauColour {
    background-color: #90EE90;
}

.peoColour {
    background-color: #6F9BA8;
}

.pobColour {
    background-color: #DCDCDC;
}

.psnColour {
    background-color: #FBEC5D;
}

.sccColour {
    background-color: #DCDCDC;
}

.snsColour {
    background-color: #DCDCDC;
}

.srpColour {
    background-color: #DCDCDC;
}

.triColour {
    background-color: #642C85;
}

.vepColour {
    background-color: #DCDCDC;
}

.ltnColour {
    background-color: #F2BA00;
}

p#theClosingText {
    color: #777;
    font-style: italic;
    margin-bottom: 20px;
}

table,
th,
td {
    font-family: 'Inter';
    font-family: 'Inter', sans-serif;
    border: 1px solid #ddd;
    padding: 6px 10px 6px 6px;
    font-size: 9.5pt;
}

.hidden {
    display: none;
}

.visible {
    display: block;
}

.winner {
    font-weight: 800;
}

.party {
    font-weight: 600;
    color: #474747;
}

.pickARiding {
    max-width: 700px;
    margin: 0px;
}

.minGroup {
    font-style: italic;
    font-weight: 500;
    padding-left: 18x;
}

.currentMPParty {
    font-weight: 500;
}

#currentMP {
    font-family: 'Inter', sans-serif;
    font-size: 10pt;
    color: #525252;
    margin-top: -3px;
    margin-bottom: 10px;
    font-weight: 500;
}

#table-container {
    display: flex;
    flex-wrap: wrap;
}

#statCan {
    margin-top: 15px;
    width: 99%;
    max-width: 700px;
    border-radius: 5px;
    margin-bottom: 12px;
    /* border: 1px solid #bababa;
   */
    margin-left: 0px;
}

.header {
    font-weight: 600;
    color: #525252;
    text-align: left;
}

.other {
    color: #525252;
    font-size: 9pt;
}

.ridingName {
    font-family: "TorstarDeckCondensed", Georgia, "Times New Roman", Times, serif;
    margin-bottom: 5px;
    font-size: 1.4em;
}

#ridingName {
    margin-bottom: 5px;
}

.demo {
    margin-bottom: 8px;
    margin-top: 8px;
}

#preview-data {
    padding: 0px;
}

td {
    text-align: left;
}

#statCanTable {
    /* border: 0px solid grey;
   */
    padding-left: 0px;
    margin-left: 0px;
    width: 100%;
}

.ui-state-active {
    background-color: rgb(46, 109, 203) !important;
}

@media only screen and (max-width: 600px) {
    /* h1{
        font-size: 1.1em;
   }
   */
    .ui-accordion .ui-accordion-content {
        padding: 0 !important;
        border-top: 0;
        overflow-y: scroll !important;
        max-height: 260px !important;
    }
    .demo {
        padding-left: 0px;
        margin-left: 0px;
        margin-bottom: 4px;
    }
    .title-container {
        margin-left: 0px;
    }
    .titleTable {
        font-size: 11pt;
        line-height: 16pt;
        padding-bottom: 4px;
    }
    #map {
        position: relative;
        top: 0;
        bottom: 0;
        height: 320px;
        width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
    h3 {
        margin-bottom: 2px;
    }
    table,
    th,
    td {
        font-family: 'Inter';
        font-family: 'Inter', sans-serif;
        color: #525252;
        border: 1px solid #ddd;
        padding: 6px 10px 6px 4px;
        font-size: 9pt;
    }
    #preview-data {
        margin-left: 0px;
        padding-left: 0px;
    }
    #pastResults {
        margin-left: 0px;
        overflow-x: hidden;
    }
    #pastResultsTable {
        width: 95%;
    }
    #statCan {
        border-radius: 2px;
        width: 100%;
        margin-left: 0%;
        overflow-x: hidden;
        /*border: 1px solid #bababa;
       */
    }
}

#statCanTable tr:nth-last-child(1) {
    border-left: 0.5px solid #f8f8f8;
    border-right: 0.5px solid #f8f8f8;
    border-top: 0.5px solid #f8f8f8;
    border-bottom: 0.5px solid #f8f8f8;
}

#statCanTable tr:nth-last-child(2) {
    border-left: 0.5px solid #f8f8f8;
    border-right: 0.5px solid #f8f8f8;
    border-top: 0.5px solid #f8f8f8;
    border-bottom: 0.5px solid #f8f8f8;
}

#statCanTable tr:nth-last-child(3) {
    border-left: 0.5px solid #f8f8f8;
    border-right: 0.5px solid #f8f8f8;
    border-top: 0.5px solid #f8f8f8;
    border-bottom: 0.5px solid #f8f8f8;
}

#statCanTable tr:nth-last-child(4) {
    border-left: 0.5px solid #f8f8f8;
    border-right: 0.5px solid #f8f8f8;
    border-top: 0.5px solid #f8f8f8;
    border-bottom: 0.5px solid #f8f8f8;
}

#statCanTable tr:nth-last-child(5) {
    border-left: 0.5px solid #f8f8f8;
    border-right: 0.5px solid #f8f8f8;
    border-top: 0.5px solid #f8f8f8;
    border-bottom: 0.5px solid #f8f8f8;
}

#statCanTable tr:nth-last-child(6) {
    border-left: 0.5px solid #f8f8f8;
    border-right: 0.5px solid #f8f8f8;
    border-top: 0.5px solid #f8f8f8;
    border-bottom: 0.5px solid #f8f8f8;
}

td {
    border-right: 0.5px solid #f8f8f8;
    border-left: 0.5px solid #f8f8f8;
}

.header td {
    border-right: none;
    border-top: none;
    vertical-align: bottom;
}

.header th {
    border-left: none;
    border-right: none;
    border-top: none;
}

table {
    border: none;
}

.note td {
    border-right: 0.5px solid #f8f8f8;
    border-left: 0.5px solid #f8f8f8;
    border-top: 0.5px solid #f8f8f8;
    border-bottom: 0.5px solid #f8f8f8;
}

.other td {
    border-right: 0.5px solid #f8f8f8;
    border-left: 0.5px solid #f8f8f8;
    border-top: 0.5px solid #f8f8f8;
    border-bottom: 0.5px solid #f8f8f8;
}

.titleTable {
    font-size: 11pt;
    line-height: 16pt;
    padding-bottom: 4px;
}

td {
    color: #525252;
}