/**
 * Theme Name: GenevaSkills
 * Version: 1.4.0
 * Template: blankslate
 * Author: Nicolas Ettlin
 * Author URI: https://www.nicolapps.ch/
 */

html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline
}

body {
    line-height: 1
}

button {
    outline: 0;
    font-family: inherit;
}

ol, ul {
    list-style: none
}

blockquote, q {
    quotes: none
}

blockquote:before, blockquote:after, q:before, q:after {
    content: '';
    content: none
}

pre {
    font-family: monospace;
}

q {
    display: inline;
    font-style: italic
}

q:before {
    content: '"';
    font-style: normal
}

q:after {
    content: '"';
    font-style: normal
}

textarea, input[type="text"], input[type="button"], input[type="submit"], input[type="reset"], input[type="search"], input[type="password"] {
    -webkit-appearance: none;
    appearance: none;
    border-radius: 0
}

table {
    border-collapse: collapse;
    border-spacing: 0
}

th, td {
    padding: 2px
}

big {
    font-size: 120%
}

small, sup, sub {
    font-size: 80%
}

sup {
    vertical-align: super;
}

sub {
    vertical-align: sub
}

dd {
    margin-left: 20px
}

kbd, tt {
    font-family: courier;
    font-size: 12px
}

ins {
    text-decoration: underline
}

del, strike, s {
    text-decoration: line-through
}

dt {
    font-weight: bold
}

em {
    font-style: italic;
}

address, cite, var {
    font-style: italic
}

article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
    display: block
}

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent
}

.sticky {
}

.bypostauthor {
}

.wp-caption {
}

.wp-caption-text {
}

.gallery-caption {
}

.alignright {
}

.alignleft {
}

.aligncenter {
}

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important
}

/******************************************************************/

:root {
    --primary-light: #ffe158;
    --primary: #ffcb48;
    --primary-dark: #ffb22f;
    --primary-text: #e69e2c;
    --primary-orange: #f27c22;
    --bronze: #dd7e3c;
    --gray-light: #f0f0f0;
    --gray: #eaeaea;
    --gray-dark: #919295;
    --career-primary: #00646a;
    --career-secondary: #b0d243;
    --flag-red: #bb1c30;
}

::selection {
    background: var(--primary-light);
    color: black;
}

body {
    font-family: Frutiger, 'Helvetica Neue', Helvetica, Ubuntu, Roboto, Arial, sans-serif;
    font-size: 20px;
    line-height: 1.4;
    background-color: white;
}

#container {
    padding-bottom: 64px;
}

#header {
    position: relative;
}

#menu-wrapper {
    position: relative;
    z-index: 9;
    background: var(--primary-light);
    margin-bottom: 100px;
    clip-path: polygon(0px 0px, 100% 0, 100% 100%, 0 70%);
    -webkit-clip-path: polygon(0px 0px, 100% 0, 100% 100%, 0 70%);
}

.header-landing-page #menu-wrapper,
.header-trade-page #menu-wrapper {
    margin-bottom: -90px;
}

#menu {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding-right: 15px;
}

#menu > div > ul {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

#menu > div > ul a {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 90px;
    padding: 0 12px;
    color: black;
}

#social {
    display: flex;
}

#social svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

#social a {
    transition: .1s ease-in-out transform, .1s ease-in-out opacity;
    color: var(--primary-orange);
    margin-left: 10px;
    opacity: .6;
}

#social a:hover {
    transform: scale(1.2);
    opacity: 1;
}

.current_page_item {
    font-weight: bold;
}

#branding {
    position: absolute;
    top: 0;
    left: 0;
    background: var(--primary);
    width: 6em;
    height: 5em;
    padding-left: 1em;
    padding-bottom: 8em;
    padding-right: 12em;
    padding-top: 1em;
    font-size: 14px;
    box-sizing: content-box;
    z-index: 15;

    clip-path: polygon(0px 0px, 100% 0px, 44.88% 34.08%, 0px 100%);
    -webkit-clip-path: polygon(0px 0px, 100% 0px, 44.88% 34.08%, 0px 100%);
}

@media (min-width: 1430px) {
    #branding {
        font-size: 24px;
    }
}

#branding img {
    width: 110%;
}

@media screen and (max-width: 720px) {
    #social {
        position: absolute;
        top: 15px;
        right: 15px;
    }

    #menu {
        flex-direction: column;
        padding-top: 65px;
        padding-bottom: 30px;
        align-items: flex-end;
    }

    #menu > div > ul {
        flex-direction: column;
        align-items: flex-start;
    }

    #menu > div > ul a {
        height: 30px;
        padding: 0;
    }

    #branding {
        font-size: 24px;
        padding-bottom: 1em;
        padding-right: 3em;
        padding-left: .5em;
        padding-top: .5em;
        height: 3em;
        -webkit-clip-path: polygon(0px 0px, 100% 0px, 0px 100%);
        clip-path: polygon(0px 0px, 100% 0px, 0px 100%);
    }

    #branding img {
        width: 60%;
    }

    #header, #menu-wrapper {
        margin-bottom: 10px;
    }

    #header.header-landing-page {
        margin-bottom: 0;
    }
}

h1 {
    font-weight: bold;
    font-size: 48px;
    color: var(--primary-dark);
    line-height: 1;
    margin: .2em 0;
}

h2 {
    font-size: 36px;
    color: black;
    margin-top: 35px;
    margin-bottom: 15px;
    font-weight: bold;
    line-height: 1.1;
}

h3 {
    font-size: 28px;
    font-weight: bold;
    line-height: 1.2;
}

h4 {
    font-size: 24px;
    color: var(--gray-dark);
    font-weight: 500;
    margin-top: 20px;
    margin-bottom: 5px;
}

@media (min-width: 1280px) {
    h1 {
        font-size: 64px;
    }
}

a {
    text-decoration: none;
}

blockquote {
    margin-top: 10px;
    padding-left: 20px;
    border-left: 10px solid var(--primary);
}

.entry-content p,
.entry-content ul,
.trade-desc p {
    font-size: 22px;
    line-height: 1.6;
}

@media screen and (max-width: 460px) {
    h1 {
        font-size: 36px;
    }

    h2 {
        font-size: 24px;
    }

    .entry-content p,
    .entry-content ul,
    .trade-desc p {
        font-size: 18px;
    }
}

.page-template-landing-page .entry-content p {
    max-width: 700px;
    margin: 0 auto;
    margin-bottom: 1em;
}

.entry-content p a,
.archive-notice a {
    display: inline-block;
    position: relative;
    color: var(--primary-text);
    font-weight: bold;
    text-decoration: none;
    line-height: 1.1;
}

.entry-content p a::before,
.entry-content p a::after,
.archive-notice a::before,
.archive-notice a::after {
    display: block;
    content: '';
    position: absolute;
    width: 0;
    left: 0;
    bottom: -.15em;
    height: .25em;
}

.entry-content p a::before,
.archive-notice a::before {
    background: rgba(255, 178, 47, .2);
    width: 100%;
}

.entry-content p a::after,
.archive-notice a::after {
    background: rgba(255, 178, 47, .5);
    transition: .1s ease-in-out width;
}

.entry-content p a:hover::after,
.archive-notice a:hover::after {
    width: 100%;
}

strong {
    font-weight: bold;
}

/* Footer */
.footer {
    position: relative;
    background-color: var(--gray-light);
    margin-top: 20px;
    padding: 72px 0;
    color: #666;

    clip-path: polygon(0px 25px, 100% 0, 100% 100%, 0 100%);
    -webkit-clip-path: polygon(0px 25px, 100% 0, 100% 100%, 0 100%);
}

.footer .container {
    display: flex;
    flex-direction: column;
    grid-gap: 48px;
}

.footer-credits {
    position: absolute;
    bottom: 5px;
    padding-bottom: env(safe-area-inset-bottom);
    right: 15px;
    font-size: 11px;
    color: #aaa;
}

.footer .logos {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    margin: 15px 0;
    gap: 32px;
}

.footer .logo svg {
    width: auto;
    height: 70px;
    fill: #999;
}

@media (min-width: 992px) {
    .footer .logos {
        gap: 24px;
    }

    .footer .logo {
        margin-right: 40px;
    }

    .footer .logo svg {
        height: 90px;
    }
}

.footer .logo:focus {
    outline: none;
}

.footer .logo:focus svg,
.footer .logo:hover svg {
    fill: currentColor;
}

.footer .logo:focus .logo-black,
.footer .logo:hover .logo-black {
    fill: #333;
}

.footer .logo:focus .logo-gray,
.footer .logo:hover .logo-gray {
    fill: #666;
}

.footer .logo svg,
.footer .logo .logo-black,
.footer .logo .logo-gray {
    transition: .15s ease-in-out fill;
}

/* Landing page */
.landing-page-header {
    position: relative;
    background-color: #010101;
    padding: 200px 0;
    margin-bottom: 40px;
}

.landing-page-header h1 {
    color: var(--primary-light);
}

.landing-page-header .subtitle {
    color: white;
    font-size: 22px;
    line-height: 1.1;
    margin-top: 10px;
}

.landing-page-header .subtitle sup {
    display: inline-block;
    position: relative;
    vertical-align: baseline;
    top: -.3em;
}

.landing-page-header-img {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 70%;
    height: 100%;
    z-index: 1;
    background-image: url(/wp-content/themes/genevaskills/img/landing.jpg);
    background-size: contain;
    background-position: bottom right;
    background-repeat: no-repeat;
}

.landing-page-header-content {
    position: relative;
    z-index: 2;
}

@media screen and (max-width: 700px) {
    .landing-page-header {
        padding-top: 120px;
        padding-bottom: 300px;
    }

    .landing-page-header-img {
        width: 100%;
    }
}

@media screen and (max-width: 460px) {
    .landing-page-header {
        padding-bottom: 250px;
    }

    .landing-page-header h1 {
        font-size: 32px;
    }

    .landing-page-header .subtitle {
        font-size: 16px;
    }
}

.landing-page-video {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    margin: 40px 0;
}

.landing-page-video::before {
    display: block;
    content: '';
    padding-top: 56.25%; /* 16:9 */
}

.landing-page-video iframe {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
}

.competition-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    margin-top: 30px;
    grid-gap: 20px;
}

.competition-card {
    display: flex;
    flex-direction: column;
    color: #000;
    background: var(--gray-light);
}

.competition-card-img {
    width: 100%;
    padding-bottom: 66%;
    background-size: cover;
    background-position: center;
}

.competition-card-title {
    padding: 16px 12px;
    line-height: 1.2;
    flex: 1;
    font-size: 16px;
    display: flex;
    align-items: center;
}


@media screen and (max-width: 460px) {
    .competition-cards {
        grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
        grid-gap: 10px;
    }

    .competition-card-title {
        padding: 12px 8px;
        font-size: 14px;
    }
}

.competition-card:hover {
    background-color: var(--gray);
}

/* Skill page */
article.type-gs-competition {
    display: flex;
    flex-direction: column;
}

.trade-header {
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    position: relative;
    margin-top: 60px;
    height: 56.25vw; /* (ratio: 16:19) */
    min-height: 400px;
    max-height: 900px;
}

.trade-header-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to right, rgba(0, 0, 0, .5) 0%, rgba(0, 0, 0, .5) 30%, transparent 100%);
}

.trade-header h1 {
    color: white;
}

@media screen and (max-width: 700px) {
    .trade-header {
        margin-top: 0;
    }
}

.trade-desc-wrapper {
    background: var(--gray);
    padding-bottom: 40px;
}

.trade-desc {
    position: relative;
    background: white;
    padding: 32px;
    margin: 0 auto;
    max-width: 700px;
    margin-top: -40px;
}

@media (min-width: 470px) {
    .trade-desc {
        margin-top: -80px;
    }
}

.trade-desc h2 {
    margin-bottom: 16px;
    margin-top: 0;
}

.page-template-landing-page h2 {
    margin-top: 60px;
}

.sponsors {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.sponsors img {
    height: 60px;
    max-width: 250px;
    margin-bottom: 30px;
    margin-right: 30px;
    object-fit: contain;
}

.competitors {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-gap: 15px;
}

.competitor {
    display: flex;
    align-items: center;
}

.competitor-picture {
    width: 50px;
    height: 50px;
    border: 2px solid var(--gray);
    background: var(--gray-light);
    margin-right: 15px;
    position: relative;
}

.competitor-picture-1 { border-color: var(--primary); }
.competitor-picture-2 { border-color: var(--gray-dark); }
.competitor-picture-3 { border-color: var(--bronze); }

.competitor-picture img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.competitor-content {
    flex: 1;
}

.competitor h6 {
    font-size: 14px;
    font-weight: bold;
}

.competitor p {
    font-size: 14px;
    line-height: 1.2;
}

/* Ranking */
.ranking-position {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    padding: 8px 12px;
    margin-bottom: 12px;
}

.ranking-competitor {
    display: flex;
    align-items: center;
    flex: 1;
}

.ranking-competitor h5 {
    display: flex;
    align-items: center;
    justify-content: center;

    font-weight: bold;
    height: 2em;
    line-height: 1;
    margin: .2em;
}

.ranking-competitor img {
    width: 42px;
    height: 42px;
    background-color: var(--gray);
    border: 1px solid rgba(0, 0, 0, .1);
    border-radius: 50%;
    object-fit: cover;
    object-position: top center;
    margin-right: 8px;
}

.ranking-content {
    margin-right: 16px;
}

.ranking-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-bottom: .4em;
    width: 2em;
    height: 2em;

    /*border: 1px solid black;*/
    background-position: center;
    background-size: contain;

    color: #555555;
    font-weight: bold;
}

.ranking-position-1 .ranking-number { background-image: url(img/ranking/laurels-1.svg); }
.ranking-position-2 .ranking-number { background-image: url(img/ranking/laurels-2.svg); }
.ranking-position-3 .ranking-number { background-image: url(img/ranking/laurels-3.svg); }

.ranking-position-1,
.ranking-position-1 .ranking-content {
    background-color: var(--primary);
}

.ranking-position-2,
.ranking-position-2 .ranking-content {
    background-color: var(--gray-light);
}

.ranking-position-3,
.ranking-position-3 .ranking-content {
    background-color: #f1e8de;
}

@media (min-width: 768px) {
    .ranking {
        display: flex;
        margin-top: -36px;
        text-align: center;
        -webkit-clip-path: polygon(-20% 0, 100% 0%, 100% 90%, 28% 100%, -20% 90%);
        clip-path: polygon(-20% 0, 100% 0%, 100% 90%, 28% 100%, -20% 90%);
    }

    .ranking-position {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: stretch;

        margin: 0;
        padding: 0;
        background: transparent;

        font-size: 24px;
    }

    .ranking-competitor {
        display: block;
        flex: none;
    }

    .ranking-competitor img {
        width: 100px;
        height: 100px;
        margin: 0;
    }

    .ranking-position-1 { order: 2; }
    .ranking-position-2 { order: 1; }
    .ranking-position-3 { order: 3; }

    .ranking-position-2 { padding-top: 70px }
    .ranking-position-3 { padding-top: 140px }

    .ranking-content {
        flex: 1;
        padding: 20px 0;
        margin: 0;
        margin-top: 16px;
        transform: skew(-10deg);
        transform-origin: top center;
        padding-bottom: 64px;
    }

    .ranking-number {
        font-size: 64px;
        transform: skew(10deg);
    }

    .ranking-position-1 {
        position: relative;
        left: 20px;
        z-index: 2;

        margin-left: -15px;
        margin-right: -15px;
    }
}

.archive-notice {
    display: flex;
    background-color: #fef3c7;
    color: #000;
    padding: 20px;
    align-items: center;
}

.archive-notice p {
    flex: 1;
}

.archive-notice-icon {
    width: 48px;
    height: 48px;
    margin-right: 16px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 2px solid #e69e2c;
    background-color: white;
    border-radius: 50%;

    color: #e69e2c;
}

.archive-notice svg {
    width: 24px;
    height: 24px;
}

@media screen and (max-width: 720px) {
    .archive-notice {
        padding: 12px;
        font-size: 14px;
    }

    .archive-notice-icon {
        width: 36px;
        height: 36px;
        border: 0;
        background: transparent;
        margin-right: 8px;
    }
}
