/* FONTS */

body #pdi-main {
    font-family: roboto, sans-serif;
    font-weight: 400;
    font-size: 16px;
}

body #pdi-main p {
    font-size: 1em;
}

body #pdi-main .pdi-breakout-content {
    font-size: 1em;
}

body #pdi-main .pdi-summary p {
    font-size: 1.25em;
}

h2.pdi-section-header {
    font-family: "nexa-heavy", sans-serif;
    font-weight: 500;
    font-size: 40px;
    margin-bottom: 3rem;
    padding-top: 10px;
}

/* There are subheaders here, so don't put too much margin */
.page-regional-output h2.pdi-section-header {
    margin-bottom: 0;
}

@media (max-width: 960px) {
    h2.pdi-section-header {
        margin-bottom: 2rem;
    }
}

h2.pdi-section-header a {
    font-size: 0.5em;
    vertical-align: text-top;
}

h2.pdi-section-header.block-header {
    padding-left: 30px;
}

section.pdi-breakout h2.pdi-section-header {
    font-family: "nexa-heavy", sans-serif;
    font-weight: 700;
    font-size: 40px;
}

.pdi-header h1 {
    font-family: "nexa-heavy", sans-serif;
    font-weight: 700;
}

#pdi-main h3 {
    font-family: "nexa-heavy";
    font-weight: 500;
}

.pdi-table-header {
    margin-left: 30px;
}

.page-statistics-tables #stat-menu ul li {
    font-family: "nexa-regular";
    font-size: 1rem;
    height: 43px;
    display: flex;
    align-items: center;
}

.page-statistics-tables #stat-menu ul li span {
    padding-top: 4px;
}

.page-statistics-tables .pdi-content #stat-menu ul li img {
    margin: 0px 9px 0px 0px;
}

/* END FONTS */

/* IMAGES */

.col-featured-image img.box-shadow-none {
    box-shadow: none;
}

/* END IMAGES */

/* STATS TABLES */

.page-statistics-tables .ul-cropping li img,
.page-statistics-tables .ul-cropping li.active,
.page-statistics-tables .ul-cropping li:hover,
.page-statistics-tables .table-cropping th {
    background-color: #677c44;
}
.page-statistics-tables #stat-menu ul.ul-cropping li {
    color: #677c44;
}
.page-statistics-tables #stat-menu ul.ul-cropping li:hover {
    color: white;
}

.page-statistics-tables .ul-livestock li img,
.page-statistics-tables .ul-livestock li.active,
.page-statistics-tables .ul-livestock li:hover,
.page-statistics-tables .table-livestock th {
    background-color: #a16828;
}
.page-statistics-tables #stat-menu ul.ul-livestock li {
    color: #a16828;
}
.page-statistics-tables #stat-menu ul.ul-livestock li:hover {
    color: white;
}

.page-statistics-tables #li-horticulture img,
.page-statistics-tables #li-horticulture.active,
.page-statistics-tables #li-horticulture:hover,
.page-statistics-tables .table-horticulture th {
    background-color: #ab292c;
}
.page-statistics-tables #stat-menu ul #li-horticulture {
    color: #ab292c;
}
.page-statistics-tables #stat-menu ul #li-horticulture:hover {
    color: white;
}

.page-statistics-tables #li-wine-grapes img,
.page-statistics-tables #li-wine-grapes.active,
.page-statistics-tables #li-wine-grapes:hover,
.page-statistics-tables .table-horticulture th {
    background-color: #953661;
}
.page-statistics-tables #stat-menu ul #li-wine-grapes {
    color: #953661;
}
.page-statistics-tables #stat-menu ul #li-wine-grapes:hover {
    color: white;
}

.page-statistics-tables #li-forestry img,
.page-statistics-tables #li-forestry.active,
.page-statistics-tables #li-forestry:hover,
.page-statistics-tables .table-forestry th {
    background-color: #148064;
}
.page-statistics-tables #stat-menu ul #li-forestry {
    color: #148064;
}
.page-statistics-tables #stat-menu ul #li-forestry:hover {
    color: white;
}

.page-statistics-tables #li-fisheries img,
.page-statistics-tables #li-fisheries.active,
.page-statistics-tables #li-fisheries:hover,
.page-statistics-tables .table-fisheries th {
    background-color: #357a80;
}
.page-statistics-tables #stat-menu ul #li-fisheries {
    color: #357a80;
}
.page-statistics-tables #stat-menu ul #li-fisheries:hover {
    color: white;
}

.page-statistics-tables .overview-stats-legend img,
.page-statistics-tables .overview-stats-legend.active,
.page-statistics-tables .overview-stats-legend:hover,
.page-statistics-tables .overview-stats-legend th {
    background-color: #1c355e;
}

/* END STATS TABLES */

/* CAROUSEL */

a.btn.pdi-carousel-link {
    background-color: white;
    font-weight: 600;
    font-family: "nexa-heavy";
    padding: 8px 25px 6px 25px;
    margin-bottom: 15px;
    margin-top: 30px;
}

.pdi-breakout-content a {
    color: inherit;
    text-decoration: underline;
}

.pdi-breakout-content a:hover {
    color: inherit;
    text-decoration: underline;
    transform: scale(1.05);
}

.pdi-carousel-arrow-wrapper {
    display: inline-block;
    height: 15px;
    width: 15px;
    margin-left: 5px;
}

.pdi-breakout-content ul {
    list-style-type: disc;
}

.pdi-breakout-content p {
    padding-bottom: 0px;
    margin-bottom: 0px;
    margin-top: 10px;
}

section.pdi-breakout .breakout-arrows .pdi-breakout-arrow-wrapper img {
    display: inline-block;
    height: 36px;
    width: 36px;
    margin: 0px;
}

section.pdi-breakout .breakout-arrows .pdi-breakout-arrow-wrapper {
    display: inline-block;
}

section.pdi-breakout .breakout-arrows.pdi-arrows {
    margin-top: 20px;
}

section.pdi-breakout .pdi-breakout-arrow-wrapper.arrow-wrapper-right {
    margin-left: 20px;
}

/* END CAROUSEL */

/* FOOTNOTES */
a.source-reference,
a.source-reference sup {
    text-decoration: none !important;
    border-bottom: none !important;
}

#pdi-header-section {
    /* Overriding :( */
    width: 100%;
    padding: 0px;
}

#pdi-cover-content-wrapper {
    max-width: 1440px;
    width: 100%;
    margin: auto;
    position: relative;
    height: 100%;
}

#pdi-cover-bg-image {
    width: 100%;
    background-size: cover !important;
    padding: 0px;
}

/* Try to hide the cutout on mobile */
#pdi-cover-bg-image {
    background-position: left center;
}

section.pdi-header-poultry #pdi-cover-bg-image {
    background-position: left center;
}

section.pdi-header-sheep-meat #pdi-cover-bg-image {
    background-position: center;
}

section.pdi-header-wool #pdi-cover-bg-image,
section.pdi-header-sorghum #pdi-cover-bg-image,
section.pdi-header-pork #pdi-cover-bg-image,
section.pdi-header-rice #pdi-cover-bg-image {
    background-position: right;
}

section.pdi-header-sugarcane #pdi-cover-bg-image {
    background-position: top center;
}

section.pdi-header-pulses #pdi-cover-bg-image,
section.pdi-header-cotton #pdi-cover-bg-image,
section.pdi-header-sheepmeat #pdi-cover-bg-image,
section.pdi-header-poultry #pdi-cover-bg-image,
section.pdi-header-milk #pdi-cover-bg-image,
section.pdi-header-honey-beeswax #pdi-cover-bg-image,
section.pdi-header-horticulture #pdi-cover-bg-image,
section.pdi-header-hunting #pdi-cover-bg-image,
section.pdi-header-fisheries #pdi-cover-bg-image,
section.pdi-header-fishing #pdi-cover-bg-image,
section.pdi-header-eggs #pdi-cover-bg-image,
section.pdi-header-other-coarse-grains #pdi-cover-bg-image,
section.pdi-header-forestry #pdi-cover-bg-image,
section.pdi-header-wine-grapes #pdi-cover-bg-image {
    background-position: center;
}

section.pdi-header-bees #pdi-cover-bg-image {
    background-position: right bottom;
}

/* Try to keep cutout img in frame */
#pdi-cover-bg-image,
section.pdi-header-beef-cattle #pdi-cover-bg-image {
    background-position: right center;
}

section.pdi-header-poultry #pdi-cover-bg-image,
section.pdi-header-pork #pdi-cover-bg-image {
    background-position: right top;
}

section.pdi-header-barley #pdi-cover-bg-image {
    background-position: right top;
}

section.pdi-header-sugarcane #pdi-cover-bg-image {
    background-position: right top;
}

.pdi-header-tall-gutter {
    margin-bottom: 70px;
}

.pdi-header-short-gutter {
    margin-bottom: 0px;
}

span.svg-container {
    position: absolute;
    display: block;
    width: 18px;
    height: 24px;
}

span.svg-container svg {
    position: absolute;
    top: -3px;
}

/* Different svgs are different ;( */
span.svg-container.PDI_2020_steady svg {
    top: 8px;
}

.pdi-cover-box,
.page-pdi-home div.pdi-cover-box {
    width: 100%;
    height: 775px;
    background-size: cover;
    position: relative;
    margin: auto;
    padding-left: 140px;
}

.pdi-overview-page .pdi-cover-box,
.page-foreword .pdi-cover-box {
    /* 775 - 122 px*/
    height: 653px;
}

.pdi-overview-page section.pdi-header,
.page-foreword .pdi-cover-box,
.page-foreword section.pdi-header,
.page-key-export-markets .pdi-cover-box,
.page-key-export-markets section.pdi-header {
    min-height: 653px;
}

#pdi-key-stats-wrapper {
    width: 100%;
    max-width: 1440px;
    position: relative;
    margin: auto;
}

.pdi-home-strip {
    position: absolute;
    width: 120px;
    height: 100%;
    left: 0px;
}

.pdi-home-icon {
    width: 100px;
    margin-left: 10px;
    margin-top: 50px;
}

.pdi-header-info-box {
    width: 100%;
    position: absolute;
}

.pdi-high-header {
    bottom: 147px;
}

.pdi-low-header {
    bottom: 75px;
}

.pdi-page-title {
    padding-left: 152px;
}

.pdi-page-title h1 {
    display: inline-block;
    animation: slide-up 1.25s cubic-bezier(0.5, 0.2, 0, 1);
    animation-fill-mode: both;
    animation-delay: calc(0.1s * var(--word-index));
}

.pdi-page-title h5 {
    font-family: Roboto, sans-serif;
    font-weight: 400;
    font-size: 24px;
    text-transform: uppercase;
    color: white;
}

#pdi-page-header-text {
    font-family: "nexa-heavy", sans-serif;
    font-weight: 500;
    font-size: 96px;
    color: white;
    width: 100%;
}

#pdi-key-stats-box {
    background-color: #e8e8e8;
    padding: 15px 36px 20px 36px;
    width: 50%;
    max-width: 100%;
}

#pdi-key-stats-wrapper-internal {
    position: absolute;
    left: 0;
    top: -122px;
    display: flex;
    flex-direction: row;
    width: 100%;
    justify-content: space-between;
}

.pdi-header-image {
    object-fit: cover;
    width: 21%;
}

.pdi-key-stat-icon {
    height: 30px;
}
section.pdi-breakout::before {
    /* background-image: url(https://www.dpi.nsw.gov.au/__data/assets/file/0006/1188816/waratah.svg); */
    /* TODO use URL */
    /* background-image: url(https://www.dpi.nsw.gov.au/about-us/publications/pdi/2020/images/icon/PDI_2020_icon-phyllotaxis-white.svg),
        url(../File/1268987/PDI_2020_icon-phyllotaxis-white.svg) !important; */
    content: "";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.07;
    background-repeat: no-repeat;
    background-position: -90px 170px;
    background-size: 770px;
}

#pdi-key-stats-box ul li {
    list-style: none;
    font-weight: 500;
    display: flex;
    font-family: "nexa-heavy", sans-serif;
    font-weight: normal;
    padding: 31px 0px 0px 0px;
    position: relative;
}

.pdi-stat {
    font-size: 1.375em;
    margin-left: 40px;
    line-height: 130%;
    font-family: "nexa-regular", sans-serif;
    font-weight: 400;
}

.pdi-page-icon {
    height: 120px;
}

/* TABLET / MOBILE */
@media (max-width: 960px) {
    /* FRONTPAGE OVERRIDES */

    div.page-pdi-home #tiles-industries .industry-box {
        height: 200px;
    }

    .page-pdi-home #tiles-industries .container {
        padding-right: 15px;
        padding-left: 15px;
    }

    /* On mobile, the header constrains menu/title on all sides */
    #pdi-cover-bg-image {
        width: 100%;
        padding: 40px 25px;
        height: 450px;
    }

    #pdi-header-section #pdi-key-stats-box ul {
        /* Overrides :( */
        padding-left: 0px !important;
    }

    .pdi-overview-page #pdi-header-section,
    .theme-main #pdi-header-section {
        height: 450px;
        min-height: 450px;
    }

    .pdi-home-strip {
        display: none;
    }

    .pdi-header-info-box {
        width: 100%;
        max-width: 960px;
        bottom: -15px;
    }
    
    /* Fix should be more systematic, but made a bug here 2023 */
    @media (max-width: 960px) {
        .page-foreword .pdi-header-info-box,
        .page-key-export-markets .pdi-header-info-box {
            bottom: 188px;
        }
    }

    #pdi-key-stats-box {
        padding-left: 20px;
        top: 0px;
        width: 100%;
        position: relative;
    }

    #pdi-key-stats-wrapper-internal {
        position: relative;
        flex-direction: column;
        top: 0px;
        height: auto;
    }

    .pdi-header-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .pdi-header-image-2 {
        display: none;
    }

    .pdi-page-title {
        padding-left: 5px;
    }

    .pdi-page-title h5 {
        font-size: 1.2em;
    }

    #pdi-page-header-text {
        font-size: 2.4em;
    }

    .pdi-page-icon {
        height: 70px;
    }

    .pdi-stat {
        font-size: 1.2em;
    }

    .pdi-header-tall-gutter {
        margin-bottom: 10px;
    }

    .pdi-nav-option-wrapper {
        margin: 0px;
    }

    /* FONT */
    h2.pdi-section-header.block-header {
        padding-left: 15px;
    }

    h2.pdi-section-header {
        font-size: 1.8em;
    }
}

/* SMALL MOBILE */
@media (max-width: 350px) {
    #pdi-page-header-text {
        font-size: 2em;
    }
}

/* HIDE/SHOW THINGS */
/* @media (max-width: 767.98px) { */
@media (max-width: 960px) {
    .hide-mobile {
        display: none !important;
    }
    /* Don't show main landing icon in mobile view */
    .page-pdi-home .pdi-page-icon {
        display: none;
    }
}
/* @media (min-width: 767.98px) { */
@media (min-width: 960px) {
    .hide-desktop {
        display: none !important;
    }
}

/* Don't show desktop nav on landing page */
.page-pdi-home #pdi-new-nav {
    display: none;
}

/* CHART LEGENDS */
.chart-notes-wrapper {
    margin-top: 10px;
}

.legend-circle {
    display: inline-block;
    border-radius: 100%;
    height: 26px;
    width: 26px;
    margin-right: 10px;
}

.legend-label {
    margin-right: 10px;
}

.legend-line {
    background-color: white !important;
    border-width: 2px;
    border-style: solid;
}

.legend-circle.legend-dotted-true {
    border-style: dashed;
}

.legend-area {
    border-width: 13px;
    border-style: solid;
}

.default-legend.default-legend-chart,
.donut-legend.donut-legend-chart {
    width: 100%;
    margin-top: 30px;
}

.default-legend.default-legend-chart li:before,
.donut-legend.donut-legend-chart li:before {
    display: none;
}

#pdi-main .donut-legend li span {
    width: auto;
    height: auto;
    background-color: transparent;
    display: inline-block;
    margin: 0 10px 0 0;
    border-radius: 0;
}

ul.donut-legend.sunburst-legend:nth-child(1),
ul.donut-legend.sunburst-legend:nth-child(3) {
    margin-left: 10%;
}

ul.donut-legend.sunburst-legend {
    width: 100%;
    padding: 0;
    margin: 0;
    width: 40%;
}

ul.donute-legend.sunburst-legend:last-of-type {
    margin-right: 0;
}

.page-horticulture #output-legend ul.donut-legend.sunburst-legend .subcategory,
.page-fisheries #output-legend ul.donut-legend.sunburst-legend .subcategory {
    padding-left: 40px;
}

.page-fisheries #output-legend ul.donut-legend.sunburst-legend {
    width: 33%;
    margin: 0;
}

.sunburst-legend .legend-heading .text {
    text-align: left;
    padding-left: 10px;
}

#output-legend {
    margin-top: 20px;
}

#output-legend .legend-heading .icon {
    display: none;
}

#output-legend .legend-heading .text {
    font-weight: bold;
    font-size: 18px;
}

.page-fisheries #output-legend #li-hatchery-species {
    color: #e77e64;
    margin-top: 0;
}

.page-fisheries #output-legend #li-other-species {
    color: #97989a;
}

.page-fisheries #output-legend #li-crustaceans {
    color: #357a80;
}

.page-fisheries #output-legend #li-molluscs {
    color: #148064;
}

.page-fisheries #output-legend #li-freshwater-fish {
    color: #f29c00;
}

.sunburst-legend .legend-heading img {
    box-shadow: none;
}

.sunburst-legend i {
    position: absolute;
    left: 8px;
    top: 0;
}

.chart-source-container {
    margin-top: 20px;
}

.chart-source {
    float: none;
    clear: none;
}

.chart-download,
.chart-download:visited,
.chart-download:active,
.chart-download:hover {
    float: none;
    height: 34px;
    line-height: 30px;
    background-color: transparent;
    padding: 0px 15px;
    border-radius: 17px;
    font-size: 0.8em;
    border-width: 2px;
    border-style: solid;
    transition: all 0.3s;
    position: relative;
    text-decoration: none;
    margin: 30px 0 0 0;
    z-index: 1;
}
.chart-download:hover {
    color: white;
}

#pdi-main .donut-legend li {
    padding-left: 0;
}

#pdi-main .default-legend li {
    margin-left: 0;
    padding-left: 0;
}

#pdi-main .default-legend li:before {
    content: none;
    display: none;
}

#pdi-main input[type="checkbox"] + label:before,
#pdi-main input[type="checkbox"]:checked + label:before {
    display: none;
}

#pdi-main input[type="checkbox"] + label i {
    border-radius: 50%;
    display: inline-block;
    width: 24px;
    height: 24px;
    left: 0;
    top: -3px;
    background: none;
    position: absolute;
}

#pdi-main input[type="checkbox"]:checked + label i {
    content: "";
    font-weight: lighter;
    font-size: 36px;
    line-height: 20px;
    position: absolute;
    padding: 0px 0 0;
}

.page-horticulture #output-legend .horticulture-category,
.page-fisheries #output-legend .aquaculture-category {
    height: auto;
}

.page-horticulture #output-legend .horticulture-category .icon,
.page-fisheries #output-legend .aquaculture-category .icon {
    width: 42px;
    border-radius: 48px;
    height: 42px;
    padding: 2px;
    flex-shrink: 0;
}

.page-fisheries #output-legend .aquaculture-category span {
    margin-left: 0;
    align-self: normal;
}

.page-horticulture #output-legend .horticulture-category span.text,
.page-fisheries #output-legend .aquaculture-category span.text {
    width: auto;
    border-radius: 0;
    height: auto;
    padding: 0;
    flex-shrink: 1;
    background: none !important;
}

.page-horticulture #output-legend ul,
.page-fisheries #output-legend ul {
    padding-left: 0 !important;
}

.page-horticulture #output-legend .horticulture-category .icon img,
.page-fisheries #output-legend .aquaculture-category .icon img {
    padding: 4px;
}

.page-horticulture #output-legend #li-fruit-nuts {
    color: #9d7245;
}
.page-horticulture #output-legend #li-fruit-nuts .icon {
    background-color: #9d7245;
}
.page-horticulture #output-legend #li-vegetables .icon img {
    padding: 7px;
}
.page-horticulture #output-legend #li-nurseries-cut-flowers-turf .icon {
    background-color: #537a46;
}
.page-horticulture #output-legend #li-nurseries .icon {
    background-color: #859861;
}
.page-horticulture #output-legend #li-cultivated-turf .icon {
    background-color: #a3b085;
}
.page-horticulture #output-legend #li-cut-flowers .icon {
    background-color: #dde3d5;
}
.page-horticulture #output-legend #li-vegetables .icon {
    background-color: #ab292b;
}
.page-horticulture #output-legend #li-mushrooms .icon {
    background-color: #c75a55;
}
.page-horticulture #output-legend #li-potatoes .icon {
    background-color: #db847b;
}
.page-horticulture #output-legend #li-melons .icon {
    background-color: #e9aca7;
}
.page-horticulture #output-legend #li-other-vegetables .icon {
    background-color: #fad4d1;
}
.page-horticulture #output-legend #li-avocados .icon {
    background-color: #512c1a;
}
.page-horticulture #output-legend #li-oranges .icon {
    background-color: #222222;
}
.page-horticulture #output-legend #li-macadamias .icon {
    background-color: #cea07f;
}
.page-horticulture #output-legend #li-table-grapes .icon {
    background-color: #754d2a;
}
.page-horticulture #output-legend #li-other-fruit .icon {
    background-color: #bd8353;
}
.page-horticulture #output-legend #li-almonds .icon {
    background-color: #e1bda3;
}
.page-horticulture #output-legend #li-other-nuts .icon {
    background-color: #f0ded0;
}

.page-horticulture #output-legend #li-nurseries-cut-flowers-turf .legend-heading .text {
    color: #f7b219;
}

.page-horticulture #output-legend #li-vegetables .legend-heading .text {
    color: #4e5b31;
}

.page-horticulture #output-legend #li-fruit .legend-heading .text {
    color: #af2b2d;
}

.page-horticulture #output-legend #li-nuts .legend-heading .text {
    color: #502d1e;
}

.page-fisheries #output-legend:after {
    content: "";
    display: block;
    order: 4;
    flex-basis: 100%;
    height: 0;
}

#ul-hatchery-species {
    order: 5;
}
#ul-other-species {
    order: 6;
}

.multi-chart-container h3 {
    position: relative;
    margin-bottom: 8px;
    top: -45px;
}

.chart-selector {
    position: relative;
    height: 3rem;
    border-radius: 3rem;
    margin: 0;
    background: none;
    z-index: 3;
    flex-wrap: wrap;
}

.chart-selector-margin-sm {
    top: 32px;
}

.chart-selector-margin-lg {
    top: 60px;
}

@media (max-width: 960px) {
    .chart-selector-margin-sm {
        top: 50px;
    }
    .chart-selector-margin-lg {
        top: 70px;
    }
}

.chart-selector .custom-control {
    padding-left: 0;
    margin-right: 2rem;
}

/* .chart-selector .custom-control {

} */

#pdi-main .chart-selector input[type="checkbox"] + label {
    color: #808080;
}

#pdi-main .chart-selector input[type="checkbox"] + label:before {
    content: "";
    display: inline-block;
    border-radius: 50%;
    display: inline-block;
    width: 20px;
    height: 20px;
    left: 0;
    top: -1px;
    background: none !important;
    position: absolute;
    border: solid 2px #808080 !important;
}

#pdi-main .chart-selector input[type="checkbox"] + label:after {
    background: transparent !important;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    top: 4px;
    left: 5px;
}

#pdi-main .chart-selector input[type="checkbox"]:checked + label {
    color: #212529;
}

.cropping #pdi-main .chart-selector input[type="checkbox"]:checked + label {
    color: #677c44;
}
.cropping #pdi-main .chart-selector input[type="checkbox"]:checked + label:before {
    border-color: #677c44 !important;
}
.cropping #pdi-main .chart-selector input[type="checkbox"]:checked + label:after {
    background-color: #677c44 !important;
}

.livestock #pdi-main .chart-selector input[type="checkbox"]:checked + label {
    color: #a16828;
}
.livestock #pdi-main .chart-selector input[type="checkbox"]:checked + label:before {
    border-color: #a16828 !important;
}
.livestock #pdi-main .chart-selector input[type="checkbox"]:checked + label:after {
    background-color: #a16828 !important;
}

.hrf #pdi-main .chart-selector input[type="checkbox"]:checked + label {
    color: #1b5680;
}
.hrf #pdi-main .chart-selector input[type="checkbox"]:checked + label:before {
    border-color: #1b5680 !important;
}
.hrf #pdi-main .chart-selector input[type="checkbox"]:checked + label:after {
    background-color: #1b5680 !important;
}

.horticulture #pdi-main .chart-selector input[type="checkbox"]:checked + label {
    color: #ab292c;
}
.horticulture #pdi-main .chart-selector input[type="checkbox"]:checked + label:before {
    border-color: #ab292c !important;
}
.horticulture #pdi-main .chart-selector input[type="checkbox"]:checked + label:after {
    background-color: #ab292c !important;
}

.wine-grapes #pdi-main .chart-selector input[type="checkbox"]:checked + label {
    color: #953661;
}
.wine-grapes #pdi-main .chart-selector input[type="checkbox"]:checked + label:before {
    border-color: #953661 !important;
}
.wine-grapes #pdi-main .chart-selector input[type="checkbox"]:checked + label:after {
    background-color: #953661 !important;
}

.fisheries #pdi-main .chart-selector input[type="checkbox"]:checked + label {
    color: #357a80;
}
.fisheries #pdi-main .chart-selector input[type="checkbox"]:checked + label:before {
    border-color: #357a80 !important;
}
.fisheries #pdi-main .chart-selector input[type="checkbox"]:checked + label:after {
    background-color: #357a80 !important;
}

.forestry #pdi-main .chart-selector input[type="checkbox"]:checked + label {
    color: #148064;
}
.forestry #pdi-main .chart-selector input[type="checkbox"]:checked + label:before {
    border-color: #148064 !important;
}
.forestry #pdi-main .chart-selector input[type="checkbox"]:checked + label:after {
    background-color: #148064 !important;
}

#pdi-main .chart-selector input[type="checkbox"]:checked + label:before {
    background: none !important;
    border-color: #808080 !important;
}

#pdi-main .chart-selector input[type="checkbox"]:checked + label:after {
    background-image: none;
    background: #808080 !important;
}

.chart-group-wrapper {
    display: -ms-grid;
    display: grid;
    -ms-grid-columns: 100% 100% 1fr 1fr;
}

.chart-group-wrapper .chart-container {
    width: 100%;
    position: relative;
    top: 0;
    left: 0;
    min-width: 0;
    -ms-grid-row: 2;
    grid-row: 2;
    -ms-grid-column: 1;
    grid-column: 1;
    transition: 0.3s;
    opacity: 0;
    z-index: 5;
    pointer-events: none;
}

.chart-notes-container {
    font-style: italic;
    padding-top: 40px;
    font-size: 14px;
    grid-row: 4;
    -ms-grid-row: 4;
}

h3.chart-title {
    margin-bottom: 20px;
}

@media (max-width: 960px) {
    .chart-title {
        margin-top: 20px;
        margin-bottom: 10px;
    }
}

h3.chart-title-margin-lg {
    margin-bottom: 40px;
}

h3.chart-title-margin-xl {
    margin-bottom: 60px;
}

/* .custom-multichart {
    width: 100%;
    display: flex;
}

.custom-multichart div {
    width: 50%;
} */

.chart-group-wrapper .chart-container[data-visible="true"] {
    opacity: 1;
    z-index: 2;
    pointer-events: auto;
}

/* Overview Colours */
.page-pdi-home .chart-download,
.page-pdi-home .chart-download:visited,
.page-pdi-home .chart-download:active,
.key-export-markets .chart-download,
.key-export-markets .chart-download:visited,
.key-export-markets .chart-download:active,
.regional-output .chart-download,
.regional-output .chart-download:visited,
.regional-output .chart-download:active,
.macroeconomic-conditions .chart-download,
.macroeconomic-conditions .chart-download:visited,
.macroeconomic-conditions .chart-download:active {
    border-color: #1c355e;
    color: #1c355e;
}

.page-pdi-home .chart-download:hover,
.key-export-markets .chart-download:hover,
.regional-output .chart-download:hover,
.macroeconomic-conditions .chart-download:hover {
    background-color: #1c355e;
    color: white;
}

/* Cropping Colours */
.cropping .chart-download,
.cropping .chart-download:visited,
.cropping .chart-download:active,
.cropping .chart-download:hover {
    border-color: #677c44;
    color: #677c44;
}
.cropping .chart-download:hover {
    background-color: #677c44;
    color: white;
}

/* Livestock Colours */
.livestock .chart-download,
.livestock .chart-download:visited,
.livestock .chart-download:active,
.livestock .chart-download:hover {
    border-color: #a16828;
    color: #a16828;
}
.livestock .chart-download:hover {
    background-color: #a16828;
    color: white;
}

/* Hunting and Fishing Colours */
.theme-hunting-and-fishing .chart-download,
.theme-hunting-and-fishing .chart-download:visited,
.theme-hunting-and-fishing .chart-download:active,
.theme-hunting-and-fishing .chart-download:hover {
    border-color: #1b5680;
    color: #1b5680;
}
.theme-hunting-and-fishing .chart-download:hover {
    background-color: #1b5680;
    color: white;
}

/* Horticulture Colours */

.horticulture .chart-download,
.horticulture .chart-download:visited,
.horticulture .chart-download:active,
.horticulture .chart-download:hover {
    border-color: #ab292c;
    color: #ab292c;
}
.horticulture .chart-download:hover {
    background-color: #ab292c;
    color: white;
}

/* Wine Grapes */
.wine-grapes .chart-download,
.wine-grapes .chart-download:visited,
.wine-grapes .chart-download:active,
.wine-grapes .chart-download:hover {
    border-color: #953661;
    color: #953661;
}
.wine-grapes .chart-download:hover {
    background-color: #953661;
    color: white;
}

/* Fisheries */
.fisheries .chart-download,
.fisheries .chart-download:visited,
.fisheries .chart-download:active,
.fisheries .chart-download:hover {
    border-color: #357a80;
    color: #357a80;
}
.fisheries .chart-download:hover {
    background-color: #357a80;
    color: white;
}

/* Forestry */
.forestry .chart-download,
.forestry .chart-download:visited,
.forestry .chart-download:active,
.forestry .chart-download:hover {
    border-color: #148064;
    color: #148064;
}
.forestry .chart-download:hover {
    background-color: #148064;
    color: white;
}

#PDI_2020_sugarcane_production .tick,
#PDI_2020_sugarcane_yields .tick {
    font-size: 11px;
    fill: #676c6f;
}

#PDI_2020_sugarcane_production .y-axis-label,
#PDI_2020_sugarcane_yields .y-axis-label {
    font-size: 13px;
}

#PDI_2020_beef_cattle_monthly_slaughter .circles[data-id="average"] {
    display: none;
}

#PDI_2020_beef_cattle_slaughter_rate .circles[data-id="average"] {
    display: none;
}

#PDI_2020_barley_prices .circles[data-id="ua"],
#PDI_2020_barley_prices .circles[data-id="ru"] {
    display: none;
}

.cropping .chart-title {
    color: #677c44;
}

.livestock .chart-title {
    color: #a16828;
}

.hrf .chart-title {
    color: #1b5680;
}

.horticulture .chart-title {
    color: #ab292c;
}

.wine-grapes .chart-title {
    color: #953661;
}

.fisheries .chart-title {
    color: #357a80;
}

.forestry .chart-title {
    color: #148064;
}

g.legends-wrapper {
    display: none;
}

#PDI_2020_pulses_production .right-labels-wrapper tspan {
    font-weight: normal !important;
}

.d3-tip table tr:first-child th,
.d3-tip-bubble table tr:first-child th {
    font-family: "nexa-light", sans-serif;
}

#PDI_2020_horticulture_nuts {
    margin-top: 20px;
}

#PDI_2020_horticulture_macadamias {
    margin-top: 42px;
}

.page-fisheries .pdi-summary .col-featured-image {
    margin-bottom: 20px;
}

#PDI_2020_oilseeds_production .title-text-right,
#PDI_2020_oilseeds_production .percent-text {
    display: none;
}

/* FRONTPAGE OVERRIDES */

.page-pdi-home .pdi-page-icon {
    height: 250px;
    width: auto;
    margin-bottom: 32px;
}

.page-pdi-home #tiles-industries .industry-box {
    height: 260px;
}

.page-pdi-home #tiles-industries .industries-row {
    margin-top: 30px;
    padding: 0px 10px;
}

.page-pdi-home #tiles-industries {
    padding-bottom: 0px;
}

.page-pdi-home #section-output #chart-output text {
    font-size: 18px;
}

#tiles-industries .container {
    padding-right: 30px;
    padding-left: 30px;
    margin-bottom: 4rem;
}

#section-output {
    padding-top: 0px;
}

/* Overview section */

.pdi-regular-page #pdi-overview-section {
    margin-top: 150px;
}

@media (max-width: 960px) {
    .pdi-regular-page #pdi-overview-section {
        margin-top: 0px;
    }
}

.theme-main .pdi-regular-page #pdi-overview-section {
    margin-top: 50px;
}

.pdi-extra-row {
    margin-top: 50px;
}

@media (max-width: 960px) {
    .pdi-row-content .pdi-text-content ul {
        padding-left: 20px;
    }
}

/* If multiple items in a col, space them */
.pdi-column-content > :not(:first-child) {
    margin-top: 40px;
}

/* Cols turn into rows on mobile */
/* So we need to add some vertical space */
@media (max-width: 960px) {
    .pdi-row-content > :not(:first-child) {
        margin-top: 40px;
    }
}

/* pdi-row-content */

.page-recreational-and-charter-fishing #pdi-main .pdi-fishing-projects .donut-legend li span {
    width: 20px;
    height: 20px;
    background-color: #dadada;
    display: inline-block;
    margin-bottom: -5px;
    margin-right: 7px;
    border-radius: 50%;
}

/* Fix for map on key-export-markets page */
.datamap {
    left: 0;
}

.area-cropping section.highlight-bg {
    background-color: #e9f2d1;
}

.area-livestock section.highlight-bg {
    background-color: #efded1;
}

.area-wine-grapes section.highlight-bg {
    background-color: #ead6da;
}

.theme-hunting-and-fishing section.highlight-bg {
    background-color: #d1e9f2;
}

.theme-main section.highlight-bg {
    background-color: hsl(206, 56%, 90%);
}

.svg-wrapper {
    width: 100%;
}

/* Image captions */

.pdi-section-image-caption {
    text-align: center;
    margin-top: 1rem;
}

#pdi-main .pdi-section-image-caption.pdi-caption-bold {
    font-weight: 500;
    font-family: "nexa-heavy", sans-serif;
    margin-top: 2rem;
    font-size: 1.3rem;
}

.pdi-section-image-wrapper {
    text-align: center;
}

.x-axis-text {
    font-family: "nexa-regular", sans-serif;
}

/* Pad text when desktop, not mobile. To align with charts */

.text-padding-70 {
    padding-top: 70px;
}

.text-padding-140 {
    padding-top: 140px;
}

@media (max-width: 960px) {
    .text-padding-70,
    .text-padding-140 {
        padding-top: 0px;
    }

    /* Stop images from getting too high */

    .pdi-section-image-wrapper img {
        max-height: 500px;
        display: block;
        margin: auto;
    }
}

/* Other headings */

.livestock h3,
.livestock h4,
.livestock h5 {
    color: #a16828;
}

.page-export #donuts-legend {
    text-align: center;
    margin-top: 2rem;
}

/* BLOCKQUOTE STYLING */

/* Before reset */
#pdi-main blockquote:before {
    content: "";
    display: block;
    width: 0;
    height: 0;
    position: absolute;
    left: -0.5em;
    top: 0.5em;
}

.cropping blockquote {
    /* Border left */
    border-left: 5px solid #677c44;
}

.livestock blockquote {
    /* Border left */
    border-left: 5px solid #a16828;
}

.pdi-row-content .pdi-text-content ul {
    list-style: disc;
    list-style-type: disc;
    margin-left: 16px;
}

#export-map .country {
    font-family: "nexa-regular", sans-serif;
    margin-top: 8px;
    width: 100%;
    text-align: center;
}

#export-map .datamaps-hoverover .d3-tip img {
    width: 70px;
}

#story-section a {
    word-break: break-all;
}

#section-executive-summary-key-points {
    font-family: "nexa-regular", sans-serif;
}

#section-executive-summary-key-points .pdi-column-2 {
    display: flex;
    align-items: center;
    font-size: 1.3rem;
}

#section-executive-summary-key-points .pdi-column-2 li {
    margin-bottom: 1rem;
    margin-top: 1rem;
}

.pdi-overview-page .empty-overview section {
    padding-top: 30px;
    padding-bottom: 30px;
}

/* Random CSS for Recreational fishing chart */

#estimates-of-total-recreational-fishing-expenditure-million-in-regions-of-nsw-key-freshwater-expenditure-in-green-and-saltwater-in-blue-189
    .c3-event-rects {
    background-color: red;
}

.pdi-image-caption {
    text-align: center;
    margin-top: 1rem;
    /* italic */
    font-style: italic;
    font-size: 0.8rem;
}

body #pdi-main p {
    font-size: 1rem;
    margin-bottom: 1rem;
}

body #pdi-main section > .container {
    max-width: 1140px;
}