/* bundles/css/shared.css */
body {
    --text-color: #222;
    --dark-background-color: #1d1e1e;
    
    margin: 0;

    /* page design uses medium weight for headings, overriden for platform fonts lacking medium face (i.e. Arial!) */
    --heading-weight: 500;

    /* effectively content max-width */
    --contents-width: min(100vw, 1650px);
}

/* font settings applied over defaults */
body, input, textarea, select, button {
    /* type settings */
    font-family: Helvetica Neue, Arial, sans-serif;
    font-variant: proportional-nums; /* Helvetica Neue defaults to tabular nums */
    line-height: 1.2;
}

header.windows, main.windows, footer.windows {
    --heading-weight: 600; /* use semi-bold or bold instead */
}

body, header, footer, main, section {
    overflow-x: clip;
}

.light-on-dark {
    /* only affects MacOS rendering, no impact on Android, iOS, Linux or Windows */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body, main, section, h1, h2, h3, h4, h5, p, ul, li, button {
    margin: 0;
    padding: 0;
}

a, a:link, a:active, a:visited, a:hover, a:focus, cite { 
    color: inherit;
    text-decoration: none;
    font-style: normal;
}

img {
    width: 100%;
}

ul {
    list-style-type: none;
}

button {
    border: none;
    background-color: transparent;
}

.corp-text h1 {
    font-size: 52px;
    --narrow-desktop-size: 46px;
    --mobile-size: 32px;
    line-height: 1.1;
    margin: 0px 0px 40px 0px;
}

.corp-text h2 {
    font-size: 52px;
    --narrow-desktop-size: 42px;
    --mobile-size: 27px;
    line-height: 1.15;
    margin: 0px 0px 30px 0px;
}

.corp-text h3 {
    font-size: 27px;
    line-height: 1.25;
    margin: 0px 0px 50px 0px;
}

.corp-text h1, .corp-text h2, .corp-text h3 {
    font-weight: var(--heading-weight);
}

.corp-text p, p.corp-text {
    font-size: 20px;
    line-height: 1.5;
}

.corp-text p + p {
    margin-top: 1.5em;
}

p.highlight-text, .highlight-text p {
    font-size: 27px;
    line-height: 1.26;
    font-weight: 500;
}

main.windows p.highlight-text, main.windows .highlight-text p {
    font-size: 24px;
    line-height: 1.4;
    font-weight: 700;
}

@media only screen and (max-width: 1100px) {
    .corp-text h1, .corp-text h2 {
        font-size: var(--narrow-desktop-size);
    }

    .corp-text p, p.corp-text {
        line-height: 1.4;
    }

    .corp-text p + p {
        margin-top: 1.4em;
    }

    p.highlight-text, .highlight-text p {
        font-size: 24px;
    }

    main.windows p.highlight-text, main.windows .highlight-text p {
        font-size: 22px;
    }
}

@media only screen and (max-width: 1000px) {
    p.highlight-text, .highlight-text p {
        font-size: 22px;
    }

    main.windows p.highlight-text, main.windows .highlight-text p {
        font-size: 20px;
    }
}

@media only screen and (max-width: 740px) {
    .corp-text h1, .corp-text h2 {
        font-size: var(--mobile-size);
    }

    p.highlight-text, .highlight-text p,
    main.windows p.highlight-text, main.windows .highlight-text p {
        font-size: 20px;
        line-height: 1.4;
    }

    main.windows p.highlight-text, main.windows .highlight-text p {
        font-weight: normal;
    }
}

/* main grid definition */
main > section, div.grid {
    display: grid;
    grid-template-columns: repeat(24, 1fr);
    max-width: var(--contents-width);
    margin: 0px auto;
}

main > section.no-grid {
    display: block;
    margin: 0;
    max-width: 100vw;
}

/* bundles/css/footer.css */
/* variables: --page-footer-text-color defined in page-specific CSS, --dark-background-color defined in shared CSS  */

footer {
    width: 100%;
    overflow: hidden;
    background-color: var(--dark-background-color);
    color: var(--page-footer-text-color);
    --daily-item-width: 194px;
    --daily-item-img-width: 136px;
    --weekly-title-width: 250px;
    --weekly-title-margin: 24px;
}

footer > .contents div.daily-weekly {
    grid-column: 1 / 25;
    grid-row: 1 / 2;
    display: flex;
    justify-content: space-between; /* daily items on the left, weekly item on the right */
    flex-direction: row;
    padding-left: 7vw;
}

footer > .contents div.daily-weekly .bc-daily {
    width: calc(3.05 * var(--daily-item-width));
}

footer > .contents div.footer-links {
    grid-column: 1 / 25;
    grid-row: 2 / 3;
    padding-left: 7vw;
}

footer > .contents {
    width: var(--contents-width);
    margin: 0 auto;
    padding: 7vw 0;
}

footer ul {
    list-style-type: none;
}

footer div.footer-links {
    font-size: 14px;
    line-height: 2.0;
}

footer div.footer-links > li span {
    opacity: 0.6;
}

footer > .contents a:hover,
footer > div.footer-links a:hover {
    text-decoration: underline;
}

footer > .contents div.daily-weekly {
    font-size: 12px;
    line-height: 1.333;
    margin-bottom: 50px;
}

footer > .contents div.daily-weekly h3 {
    font-size: 12px;
    margin-bottom: 2em;
}

footer > .contents div.daily-weekly h3 span {
    display: inline-block;
    font-weight: normal;
    margin-left: 0.2em;
}

footer > .contents div.daily-weekly div.image {
    width: var(--daily-item-img-width);
}

footer > .contents div.bc-daily ul li {
    display: inline-block;
    width: var(--daily-item-width);
    vertical-align: top;
}

footer > .contents div.bc-daily ul li a {
    display: block;
    width: calc(var(--daily-item-img-width) + 10px);
}

footer > .contents div.bc-daily div.image {
    margin-bottom: 5px;
}

@media only screen and (max-width: 1150px) {
    footer > .contents div.bc-daily ul li:nth-child(3) {
        display: none;
    }
}

@media only screen and (max-width: 910px) { 
    footer > .contents div.bc-daily ul li:nth-child(2),
    footer > .contents div.bc-daily h3 span {
        display: none;
    }
}

@media only screen and (max-width: 900px) {
    footer > .contents div.daily-weekly {
        justify-content: flex-start;
    }

    footer > .contents div.daily-weekly .bc-daily {
        width: 40vw;
    }
}

footer > .contents div.bc-weekly {
    width: calc(var(--daily-item-img-width) + var(--weekly-title-margin) + var(--weekly-title-width));
}

footer > .contents div.bc-weekly div.story {
    vertical-align: top;
    white-space: nowrap;
}

footer > .contents div.bc-weekly div.story div {
    display: inline-block;
    white-space: normal;
}

footer > .contents div.bc-weekly div.story div.image + div {
    width: var(--weekly-title-width);
    vertical-align: top;
    margin-left: var(--weekly-title-margin);
}

footer > .contents div.bc-weekly div.story a.title {
    display: block;
    line-height: 1.5;
    margin-bottom: 0.7em;
}

footer > .contents div.bc-weekly div.story a.link {
    display: inline-block;
    vertical-align: middle;
    border: 1px solid var(--page-background-color);
    border-radius: 3px;
    padding: 7px 13px;
    fill: currentColor;
    font-weight: bold;
}

footer > .contents div.bc-weekly div.story a.link div.center {
    display: flex;
    align-items: center;
}

footer > .contents div.bc-weekly div.story a.link div.center svg {
    margin-left: 10px;
    margin-top: 2px;
}

footer > .contents div.footer-links {
    display: flex;
    justify-content: space-between; /* bc links, social links on the left, site links on the right */
    flex-direction: row;
}

footer > .contents div.footer-links > div {
    width: calc(2.2 * var(--daily-item-width));
}

footer > .contents div.footer-links > ul {
    width: calc(var(--daily-item-img-width) + var(--weekly-title-margin) + var(--weekly-title-width));
}

footer > .contents div.bc-weekly,
footer > .contents div.footer-links > ul {
    margin-right: 10vw;
}

footer > .contents div.footer-links ul.links-bc,
footer > .contents div.footer-links ul.links-social {
    display: inline-block;
    vertical-align: top;
    width: var(--daily-item-width); /* so that second column is aligned with second daily item */
}

footer > .contents div.footer-links a:hover {
    text-decoration: underline;
}

@media only screen and (max-width: 1200px) {
    footer > .contents div.bc-weekly,
    footer > .contents div.footer-links > ul {
        margin-right: 5vw;
    }
}
    
@media only screen and (max-width: 900px) {
    footer > .contents div.daily-weekly .bc-daily {
        width: 40vw;
    }

    footer > .contents div.footer-links > div {
        display: flex;
        justify-content: space-between;
        width: calc(52vw + var(--daily-item-width));
    }

    footer > .contents div.footer-links > ul {
        width: calc(var(--weekly-title-margin) + var(--weekly-title-width));
        margin-right: 5vw;
    }
}

footer > div.footer-links.mobile {
    font-weight: bold;
    margin-top: 50px;
    text-align: center;
}

footer > div.footer-links.mobile > ul {
    padding: 4em 0;
}

footer > div.footer-links.mobile ul:nth-child(1) { background-color: #262725; }
footer > div.footer-links.mobile ul:nth-child(2) {
    background-color: #121313;
    font-weight: normal;
}

footer > div.footer-links.mobile button {
    font-weight: bold;
}

footer > div.footer-links.mobile > ul > li + li {
    margin-top: 1.6em;
}

footer > div.footer-links.mobile > ul li a + a {
    border-left: 1px solid #eaeaea80;
    padding-left: 0.5em;
    margin-left: 0.3em;
}

footer > div.footer-links.mobile .social-links {
    margin-top: 4em;
}

footer > div.footer-links.mobile .social-links a {
    display: inline-block;
    width: 44px;
    height: 44px;
    fill: currentColor;
}

footer > div.footer-links.mobile .social-links a + a {
    margin-left: 60px;
}

footer > div.footer-links.mobile .social-links a + a {
    border-left: none;
    padding-left: 0;
}

footer > div.footer-links.mobile .logo {
    padding-top: 0.5em;
}

footer > div.footer-links.mobile .logo svg {
    width: 112px;
    fill: #fff;
}

footer > div.footer-links.mobile .logo svg span {
    display: none;
}

/* mobile */
@media (max-width: 740px) {
    footer > .contents, footer > div.grid {
        display: none;
    }

    footer > div.footer-links.mobile {
        margin-top: 0;
    }

    footer li.page-specific {
        display: none;
    }

    footer.artists li.page-specific.labels {
        display: list-item;
    } 

    footer.about li.page-specific.press {
        display: list-item;
    } 
}

/* not mobile */
@media (min-width: 741px) {
    footer > .footer-links.mobile {
        display: none;
    }
}

/* bundles/css/lang_menu.css */
footer .lang-picker {
    --lang-picker-background: #383835;
    --lang-picker-active-background: #2d2d2d;
    --lang-picker-padding: 10px;
}

footer .lang-picker {
    display: inline-block;
    position: relative;
    background-color: var(--lang-picker-background);
    -webkit-user-select: none;
    user-select: none;
    cursor: default;
    padding-left: var(--lang-picker-padding);
    border-radius: 3px;
}

footer .lang-picker.selected {
    border-radius: 0 0 3px 3px;
}

footer .lang-picker ul.lang-submenu {
    position: absolute;
    bottom: 100%;
    left: 0;
    z-index: 1;
    width: 100%;
    list-style: none;
    padding: 0;
    margin: 0;
}

footer .lang-picker ul.lang-submenu li:nth-child(1) {
    border-radius: 3px 3px 0 0;
}

footer .lang-picker ul.lang-submenu li {
    border-bottom: 1px solid var(--lang-picker-background);
    background-color: var(--lang-picker-active-background);
}

footer .lang-picker button {
    -webkit-appearance: none;
    appearance: none;
    padding-right: var(--lang-picker-padding);
    border: none;
    color: inherit;
    background: inherit;
    font-size: inherit;
    cursor: pointer;
}

footer .lang-picker button:focus {
    outline: none;
}

footer .lang-picker ul.lang-submenu button {
    width: 100%;
    text-align: right;
}

footer .lang-picker ul.lang-submenu button:hover {
    text-decoration: underline;
}

footer .lang-picker > button > span.title {
    opacity: 0.6;
}

footer .lang-picker > button:hover > span.lang-name {
    text-decoration: underline;
}

footer .lang-picker:hover {
    background-color: var(--lang-picker-active-background);
}


