@font-face {
    font-family: fkDisplay;
    src:url("./FKDisplay-RegularAlt2.ttf");
}

/* latin-ext */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url(https://fonts.gstatic.com/s/inter/v18/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa25L7W0Q5n-wU.woff2) format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url(https://fonts.gstatic.com/s/inter/v18/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1ZL7W0Q5nw.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --fontFamilyFallbackSansSerif: -apple-system,system-ui,BlinkMacSystemFont,'Helvetica','Arial',sans-serif;
    --fontFamilyInter: "Inter",var(--fontFamilyFallbackSansSerif);
    
    --space-0: 0;
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 20px;
    --space-5: 32px;
    --space-6: 52px;
    --space-7: 84px;
    --space-8: 136px;
    --space-9: 220px;
  
    --font-size-0: 12px;
    --font-size-1: 14px;
    --font-size-2: 16px;
    --font-size-3: 18px;
    --font-size-4: 20px;
    --font-size-5: 24px;
    --font-size-6: 30px;
    --font-size-7: 36px;
    --font-size-8: 48px;
    --font-size-9: 60px;
    --font-size-10: 72px;
  
    --line-height-0: 16px;
    --line-height-1: 20px;
    --line-height-2: 24px;
    --line-height-3: 28px;
    --line-height-4: 28px;
    --line-height-5: 32px;
    --line-height-6: 36px;
    --line-height-7: 40px;
    --line-height-8: 48px;
    --line-height-9: 60px;
    --line-height-10: 72px;
    --line-height-11: 96px;
    --line-height-12: 128px;
  
    --light: #cccccc;
    --black: #000000;
    --text-black: #37352f;
    --dark-grey: #282828;
    --darker-grey: #575757;
    --mid-grey: #979797;
    --medium-grey: #b5b5b5;
    --light-grey: #cccccc;
    --white: #ffffff;
    --blue1: #aba5dc;
    --blue2: #9694bd;
    --blue3: #8e82ca;
    --blue4: #8b7fba;
    --blue5: #646aa9;
    --blue6: #455a8c;
  
    --max-width-0: 320px;
    --max-width-1: 768px;
    --edge-padding: calc(min(64px, 8vw));
  
    --qwsize1: clamp(4px,3cqw,8px);
    --qwsize2: clamp(4px,4cqw,8px);
    --qwsize3: clamp(6px,3cqw,18px);
    --qwsize4: clamp(6px,6cqw,18px);
    --qwsize5: clamp(8px,4cqw,13px);
    --qwsize6: clamp(10px,5cqw,14px);
    --qwsize7: clamp(10px,5cqw,16px);
    --qwsize8: clamp(12px,5cqw,16px);
    --qwsize9: clamp(12px,6cqw,16px);
    --qwsize10: clamp(12px,6cqw,20px);
    --qwsize11: clamp(16px,7cqw,20px);
    --qwsize12: clamp(24px,5cqw,28px);

    --columnWidth: calc((100vw - 10%) / 12);
    --twoColumnWidth: calc((100vw - 10%) / 12 * 2);
    --threeColumnWidth: calc((100vw - 10%) / 12 * 3);
    --sixColumnWidth: calc((100vw - 10%) / 12 * 6);
    --mobileColumnWidth: calc((100vw - 10%) / 6);
    --mobileTwoColumnWidth: calc((100vw - 10%) / 6 * 2);
    --mobileThreeColumnWidth: calc((100vw - 10%) / 6 * 3);
    --mobileSixColumnWidth: calc((100vw - 10%) / 6 * 6);
}

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: 0px;
    padding: 0px;
    border: 0px none;
    font: inherit;
    vertical-align: baseline;
    font-size: inherit;
    line-height: inherit;
    font-family: inherit;
    scroll-behavior: smooth;
}

html {
    background: var(--light-grey);
    color: var(--text-black);
    -moz-osx-font-smoothing: grayscale;
    font-family: var(--fontFamilyInter);
}

button, select, input {
    font-family: var(--fontFamilyInter);
}

*, ::before, ::after {
    box-sizing: border-box;
}

::selection {
    background: #000000;
    color: var(--light-grey);
}

strong {
    font-weight: 700;
}

em {
    font-style: italic;
}

i {
    font-style: italic;
}

sup {
    vertical-align: top;
    font-size: 0.6em;
    position: relative; 
    top: -0.5em;
}

.post-text > sup {
    top: 0em;
}

.heading-2 > sup {
    top: 0em;
}

body {
    width: 95vw;
    margin-left: auto;
    margin-right: auto;
    font-family: var(--fontFamilyInter);
    font-weight: normal;
    font-size: var(--font-size-0);
    line-height: 1.2em;
}

a {
    color: var(--text-black);
    text-decoration: none;
}

a:hover {
    color: var(--dark-grey);
    text-decoration: underline;
}

.link-text {
    font-weight: 600;
    color: var(--darker-grey);
    text-decoration: underline;
}

.link-text:hover {
    text-decoration: underline;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

d3fc-canvas,d3fc-svg {
    position:relative;
    display:block;
    height:100vh;
    width:100vw;
}
d3fc-canvas>canvas,d3fc-svg>svg {
    position:absolute;
    height:100%;
    width:100%;
}
d3fc-svg>svg {
    overflow: visible;
}

#logo-title {
    grid-column: 1 / span 1;
    grid-row: 1 / span 1;
    font-size: var(--font-size-2);
    font-weight: normal;
    /* border: 0.5px solid var(--medium-grey); */
    border-radius: 5px;
    background-color: var(--medium-grey);
    color: var(--text-black);
    padding-top: 4px;
    padding-bottom: 4px;
    padding-left: 5px;
    padding-right: 5px;
}
#logo-title:hover {
    background-color: var(--mid-grey);
    text-decoration: none;
}
.subtitle {
    grid-column: 2 / span 1;
    grid-row: 1 / span 1;
    font-size: var(--font-size-2);
    font-weight: normal;
    /* border: 0.5px solid var(--text-black); */
    border-radius: 5px;
    color: var(--text-black);
    padding-top: 4px;
    padding-bottom: 4px;
    padding-left: 5px;
    padding-right: 5px;
}
.blue-bg {
    background-color: var(--blue1);
}
.grey-bg {
    background-color: var(--medium-grey);
}
.white-bg {
    background-color: var(--white);
}
.main-grid {
    display: grid;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    grid-template-columns: 1fr;
    grid-auto-rows: auto 1fr auto;
    column-gap: 0px;
    min-height: 100vh;
}
#render-window {
    display: grid;
    grid-template-columns: repeat(12, minmax(0px, 1fr));
    grid-auto-rows: auto;
    grid-column: 1 / span 12;
    column-gap: calc(0.714286vw);
    -webkit-box-align: baseline;
    align-items: baseline;
    position: relative;
    align-content: flex-start;
    max-width: 1440px;
    margin-left: auto;
    margin-right: auto;
}
#top-banner {
    position: fixed;
    z-index: 100;
    grid-column: 1 / span 4;
    grid-row: 1 / span 1;
    display: grid;
    grid-template-columns: auto auto 1fr auto auto;
    align-items: baseline;
    column-gap: 10px;
    padding-bottom: 20px;
    padding-top: 21px;
}
#topleft-info {
    grid-column: 1 / span 1;
    grid-row: 1 / span 1;
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.text-link {
    text-decoration: underline;
}

.text-link:hover {
    color: var(--dark-grey);
    font-weight: 500;
}

/* //////////////////// */
/* TABLET/MOBILE STYLES */
/* //////////////////// */

@media only screen and (max-width: 899px) {
    #render-window {
        grid-template-columns: repeat(6, minmax(0px, 1fr));
        column-gap: calc(0.714286vw);
        grid-area: 2 / 1 / span 1 / span 6;
        position: static;
    }

    #top-banner {
        /* background-color: var(--light-grey); */
        padding-bottom: 10px;
        padding-top: 14px;
    }
}

/* //////////////////// */
/* //////////////////// */
/* //////////////////// */
/* //////////////////// */
/* //////////////////// */
/* SITE-SPECIFIC STYLES */
/* //////////////////// */
/* //////////////////// */
/* //////////////////// */
/* //////////////////// */
/* //////////////////// */

.section-title-container {
    grid-row: 1 / span 1;
    grid-column: 1 / span 2;
    display: flex;
    flex-wrap: wrap;
    column-gap: 10px;
    row-gap: 10px;
}

.section-title {
    font-size: var(--font-size-2);
    font-weight: normal;
    border-radius: 5px;
    color: var(--text-black);
    /* background-color: var(--blue1); */
    padding-top: 4px;
    padding-bottom: 4px;
    padding-left: 5px;
    padding-right: 5px;
    width: max-content;
}

/* //////////////////// */
/* //////////////////// */
/* INTRO SECTION ////// */
/* //////////////////// */
/* //////////////////// */

#intro-section {
    margin-left: auto;
    margin-right: auto;
    grid-row: 1 / span 1;
    grid-column: 1 / span all;
    position: relative;
    margin-top: var(--space-6);
    padding-bottom: var(--space-5);
}

.titles-wrapper {
    display: grid;
    grid-auto-rows: auto;
    align-items: baseline;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-column-gap: calc(12 / 1680* 100vw);
    column-gap: calc(12 / 1680* 100vw);
    grid-column: 1 / span 12;
    position: relative;
    padding-top: var(--space-6);
    padding-bottom: var(--space-6);
}

#dashboard {
    grid-row: 2 / span 1;
    border-top: 1px solid var(--medium-grey);
    padding-bottom: var(--space-4);
}

.text-block {
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
}

.post-text {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    padding-bottom: 16px;
}

.post-text>strong {
    font-weight: 600;
}

.callout {
    width: 90%;
    margin-left: auto;
    margin-right: auto;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    padding: 10px 10px 10px;
    margin-bottom: 16px;
    background-color: var(--medium-grey);
    border-radius: 10px;
}

.callout>strong {
    font-weight: 600;
}

.block-ol, .block-ul {
    list-style-position: outside;
    padding-bottom: 16px;
}

.post-title {
    font-family: fkDisplay;
    font-weight: 400;
    font-size: 42px;
    line-height: normal;
    padding-top: var(--space-3);
    padding-bottom: var(--space-4);
}

.heading-2 {
    font-size: 20px;
    font-weight: 400;
    line-height: normal;
    padding-top: var(--space-4);
}

.heading-3 {
    font-size: 19px;
    font-weight: 700;
    line-height: 1.6;
    padding-top: 16px;
    padding-bottom: 16px;
}

.heading-4 {
    font-size: 16px;
    padding-top: 12px;
    padding-bottom: 12px;
    font-weight: 600;
    line-height: 1.6;
}

.page-title {
    grid-column: 3 / span 8;
    grid-row: 1 / span 1;
}

.page-subtitle {
    grid-column: 3 / span 8;
    grid-row: 2 / span 1;
}

#dashboard-title {
    grid-row: 1 / span 1;
}
/* 
#article-date {
    border: 0.5px solid var(--dark-grey);
} */

.titles-links-section {
    grid-column: 3 / span 8;
    grid-row: 3 / span 1;
    margin-top: var(--space-5);
}

#scroll-to-dashboard {
    font-size: var(--font-size-2);
    font-weight: normal;
    border-radius: 5px;
    color: var(--text-black);
    background-color: var(--white);
    padding-top: 4px;
    padding-bottom: 4px;
    padding-left: 5px;
    padding-right: 5px;
}

#scroll-to-dashboard:hover {
    text-decoration: none;
    background-color: var(--blue1);
}

.image-section {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    column-gap: 10px;
    row-gap: 10px;
    align-items: flex-start;
    justify-content: center;
    padding-bottom: var(--space-5);
}

.img-big {
    max-width: 900px;
    border-radius: 10px;
}

.example-section {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    column-gap: 10px;
    row-gap: 10px;
    align-items: flex-start;
    justify-content: center;
    padding-bottom: var(--space-5);
}

.example-box {
    width: fit-content;
    background-color: var(--medium-grey);
    border-radius: 10px;
    padding: 10px 10px 10px;
}

.example-box-header {
    width: fit-content;
    display: flex;
    flex-wrap: wrap;
    column-gap: 5px;
    row-gap: 10px;
    align-items: center;
    justify-content: flex-start;
    /* padding: 5px; */
    margin-bottom: 10px;
}


.example-box-title-header {
    width: fit-content;
    display: flex;
    flex-wrap: nowrap;
    column-gap: 7px;
    row-gap: 10px;
    align-items: start;
    justify-content: flex-start;
    padding: 5px;
    background-color: var(--blue1);
    border-radius: 5px;
    border: 0.5px solid black;
}

.example-box-header-img {
    max-width: 50px;
    border-radius: 3px;
}

.example-box-title {
    font-size: var(--font-size-4);
    font-weight: 600;
    line-height: 1.3em;
    color: #000000;
}

.example-box-service {
    font-size: var(--font-size-1);
    font-weight: 400;
    line-height: 1.3em;
    color: black;
    padding: 3px;
    align-self: baseline;
    background-color: var(--mid-grey);
    border-radius: 3px;
}

.example-box-description {
    font-size: var(--font-size-1);
    font-weight: 500;
    line-height: 1.4em;
    padding-bottom: 10px;
}

.description-wide {
    min-width: 500px;
    max-width: 600px;
}

.description-narrow {
    min-width: 200px;
    max-width: 400px;
}

.example-charts-container {
    display: flex;
    flex-wrap: nowrap;
    column-gap: 10px;
    row-gap: 10px;
    align-items: flex-start;
    width: fit-content;
}

.example-chart-container {
    object-fit: contain;
    border: 0.5px solid var(--text-black);
    border-radius: 5px;
    background-color: var(--medium-grey);
}

.example-chart-title {
    padding-top: 5px;
    padding-bottom: 5px !important;
    padding-left: 5px;
    padding-right: 5px;
}

.example-chart {
    width: 100%;
}

.example-chart-line {
    max-width: 500px;
    min-width: 300px;
}

.example-chart-heatmap {
    width: 250px;
}

.line-chart-img {
    padding: 5px 5px 5px;
    min-height: 150px;
}

.heatmap-img {
    max-width: 200px;
    min-height: 140px;
    background-color: var(--mid-grey);
    border: 1px solid black;
    margin: 5px 5px 5px;
}

@media only screen and (max-width: 899px) {
    .titles-wrapper {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        column-gap: calc(12 / 1680* 100vw);
        grid-column: 1 / span 6;
        position: static;
        margin-top: var(--spacing-6);
    }

    .text-block {
        width: 90vw;
    }

    .post-text {
        font-size: 14px;
        font-weight: 400;
        line-height: 1.6;
        padding-bottom: 14px;
    }

    .callout {
        width: 100%;
    }

    .post-title {
        font-size: 6lvw;
        white-space: normal;
        padding-bottom: var(--space-3);
    }

    .heading-2 {
        font-size: 16px;
        line-height: 1.4;
        padding-top: var(--space-3);
        padding-bottom: var(--space-4);
    }

    .heading-3 {
        font-size: 16px;
        font-weight: 700;
        line-height: 1.6;
        padding-top: 14px;
        padding-bottom: 14px;
    }

    .heading-4 {
        font-size: 14px;
        font-weight: 600;
        line-height: 1.6;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .block-ol, .block-ul {
        list-style-position: inside;
        padding-bottom: 14px;
    }

    .section-title-container {
        grid-column: 1 / span 6;
        grid-row: 1 / span 1;
    }

    #dashboard-title {
        grid-column: 1 / span 6;
        grid-row: 2 / span 1;
        padding-bottom: 0;
    }

    .page-title {
        grid-column: 1 / span 6;
        grid-row: 2 / span 1;
    }
    
    .page-subtitle {
        grid-column: 1 / span 6;
        grid-row: 3 / span 1;
    }

    .titles-links-section {
        grid-column: 1 / span 6;
        grid-row: 4 / span 1;
        margin-top: var(--space-3);
    }
    
    #scroll-to-dashboard {
        font-size: var(--font-size-1);
        font-weight: normal;
        border-radius: 5px;
        color: var(--text-black);
        background-color: var(--medium-grey);
        padding-top: 4px;
        padding-bottom: 4px;
        padding-left: 5px;
        padding-right: 5px;
    }

    .img-big {
        width: 100%;
        min-height: 150px;
    }

    .example-box-title-header {
        column-gap: 7px;
        align-items: center;
    }

    .example-box-header-img {
        max-width: 40px;
        border-radius: 3px;
    }
    
    .example-box-title {
        font-size: var(--font-size-1);
        font-weight: 600;
        line-height: 1.3em;
        color: #000000;
    }

    .example-box-service {
        font-size: var(--font-size-0);
        line-height: 1.2em;
        padding: 2px;
        border-radius: 2px;
    }

    .example-charts-container {
        flex-wrap: wrap;
    }

    .example-box-description {
        width: 100%;
        font-size: var(--font-size-0);
        font-weight: 500;
        line-height: 1.3em;
    }

    .description-wide {
        max-width: none;
        min-width: 0;
    }
    
    .description-narrow {
        max-width: 300px;
        min-width: 0;
    }

    .example-chart-line {
        max-width: none;
        min-width: none;
        width: 100%;
    }

    .heatmap-img {
        max-width: 150px;
    }
}




/* //////////////////// */
/* //////////////////// */
/* SEARCH BOX ///////// */
/* //////////////////// */
/* //////////////////// */

#search-box {
    grid-row: 3 / span 1;
    grid-column: 3 / span 8;
    position: relative;
    padding-bottom: 20px;
}

#search-input {
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    padding: 10px 10px;
    border: 1px solid var(--mid-grey);
    border-radius: 5px;
    background-color: var(--white);
    font-size: var(--font-size-3);
    color: var(--text-black);
    position: relative;
}

#search-input:focus {
    border: 1px solid var(--dark-grey);
    outline: none;
}

#search-input::placeholder {
    color: var(--darker-grey);
    opacity: 1; /* Firefox */
}

#search-results {
    position: absolute;
    z-index: 1000;
    width: 100%;
}

.result-list {
    list-style-type: none;
    margin: 0;
    padding: 0;
    width: 100%;
    border: 1px solid var(--mid-grey);
    border-top: none;
    border-radius: 0 0 5px 5px;
    background-color: var(--white);
}

.result-list-item {
    color: var(--text-black);
    padding: 10px 10px;
    display: flex;
    justify-content: space-between;
    column-gap: 20px;
    width: 100%;
    cursor: pointer;
}

.result-list-item:hover {
    background-color: var(--light-grey);
}

.result-list-item:not(:last-of-type) {
    border-bottom: 1px solid var(--mid-grey);
}

.result-list-item-title {
    font-size: var(--font-size-2);
}

.result-list-item-service {
    font-size: var(--font-size-1);
    height: 15px;
    width: auto;
}




/* //////////////////// */
/* //////////////////// */
/* DASHBOARD ////////// */
/* //////////////////// */
/* //////////////////// */

#results-dashboard {
    grid-row: 4 / span 1;
    grid-column: 1 / span all;
    position: relative;
    width: 100%;
    min-height: 1vh;
}

#loader {
    position: absolute;
    top: 100px;
    left: 50%;
    transform: translate(-50%, 0);
    width: 50px;
    height: 50px;
    border: 6px solid var(--darker-grey);
    border-bottom-color: transparent;
    border-radius: 50%;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
    z-index: 1000;
}

@keyframes rotation {
    0% {
        transform: translate(-50%, 0) rotate(0deg);
    }
    100% {
        transform: translate(-50%, 0) rotate(360deg);
    }
} 

.visible {
    display: block;
}

.hidden {
    display: none;
}

#results-container {
    display: grid;
    grid-auto-columns: 1fr 1fr;
    grid-auto-rows: auto;
    column-gap: 10px;
    row-gap: 10px;
    position: relative;
    align-items: flex-start;
    align-content: flex-start;
    max-width: 1440px;
    margin-bottom: 80px;
}

.blur {
    filter: blur(3px);
}

.results-section {
    background-color: var(--medium-grey);
    border-radius: 10px;
    padding: 15px 20px 10px;
    position: relative;
}

#main-sentence {
    grid-row: 1 / span 1;
    grid-column: 1 / span 2;
    order: 1;
    width: 100%;
    background-color: transparent;
}

#position-ranking {
    grid-row: 2 / span 2;
    grid-column: 1;
}

#position-line-graph {
    grid-row: 4 / span 1;
    grid-column: 1;
}

#position-heatmap {
    grid-row: 2 / span 1;
    grid-column: 2;
}

#images-used {
    grid-row: 3 / span 1;
    grid-column: 2;
}

#row-titles {
    grid-row: 4 / span 1;
    grid-column: 2;
}

#methodology {
    grid-row: 5 / span 1;
    grid-column: 1;
}

#for-more {
    grid-row: 5 / span 1;
    grid-column: 2;
}

.main-sentence-title {
    font-family: fkDisplay;
    font-size: var(--font-size-6);
    line-height: 1.5em;
    color: #000000;
    padding-bottom: 10px;
}

#main-sentence-title-name {
    text-decoration: underline;
}

.main-sentence-sub {
    font-size: var(--font-size-1);
    line-height: 1.3em;
}

.chart-title {
    font-size: var(--font-size-0);
    text-transform: uppercase;
    padding-bottom: 15px;
}

#positions-table-div {
    position: relative;
    width: 100%;
}
.ranking-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse; 
}

.table-fade::after{
    content:'';
    /* display:block; */
    position:absolute;
    bottom:0;
    height:100px;
    width: 100%;
    background: linear-gradient(to bottom, rgba(181,181,181,0) 0%,rgba(181,181,181,1) 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
}

.narrow-col {
    width: 10%;
}

.wide-col {
    width: 40%;
}

.header-elements {
    font-weight: 700;
    text-align: left;
    vertical-align: bottom;
    font-size: var(--font-size-0);
    line-height: 1.2em;
}

.centered-header {
    text-align: center;
}

.table-row {
    display: table-row;
    white-space: nowrap;
    border-top: 1px solid var(--mid-grey);
}

.table-row-highlight {
    background-color: var(--blue1);
}

.row-data {
    font-size: var(--font-size-1);
    line-height: 1.2em;
    display: table-cell;
    padding-top: 5px;
    padding-bottom: 5px;
    width: 100%;
}

.row-data-string::-webkit-scrollbar {
    width: 0;
    height: 0;
}

.row-data-string {
    /* text-overflow: ellipsis; */
    white-space: nowrap;
    overflow-x: scroll;
    overflow-y: hidden;
    scrollbar-width: none;
}

.row-data-int {
    text-align: center;
    width: auto;
}

#appearances-sentence {
    font-size: var(--font-size-2);
    font-weight: 600;
    line-height: 1.3em;
    color: #000000;
    padding-bottom: 15px;
}

.title-name {
    text-decoration: underline;
}

#heatmap-grid {
    display: grid;
    grid-auto-columns: auto 1fr;
    column-gap: 10px;
}

#heatmap-container {
    grid-row: 1 / span 1;
    grid-column: 1 / span 1;
    width: 200px;
    height: 200px;
    background-color: var(--mid-grey);
    border: 1px solid black;
    margin-bottom: 10px;
}

#heatmap-legend {
    grid-row: 1 / span 1;
    grid-column: 2 / span 1;
    font-size: var(--font-size-1);
    font-weight: 500;
    line-height: 1.4em;
    margin-bottom: 10px;
}

#tooltip {
    font-size: var(--font-size-0);
    border: 1px solid #ccc;
    position: absolute;
    padding: 10px;
    background-color: transparent;
    border: 1px solid var(--mid-grey);
    border-radius: 5px;
    display: none;
    pointer-events: none;
    backdrop-filter: blur(2px);
}

.date-tooltip {
    font-weight: 700;
}

.images-container {
    display: flex;
    column-gap: 10px;
    row-gap: 10px;
    flex-wrap: wrap;
}

.image-thumbnail {
    max-height: 50px;
}

#rows-sentence {
    font-size: var(--font-size-2);
    font-weight: 600;
    line-height: 1.3em;
    color: #000000;
    padding-bottom: 25px;
}

#methodology-text {
    font-size: var(--font-size-1);
    font-weight: normal;
    line-height: 1.3em;
}

#for-more-sentence {
    font-size: var(--font-size-2);
    font-weight: 600;
    line-height: 1.3em;
    color: #000000;
    padding-bottom: 25px;
}

.contact-label-text {
    font-size: var(--font-size-1);
    font-weight: normal;
    line-height: 1.3em;
}

#mail-input {
    padding-top: 10px;
    display: flex;
    flex-wrap: wrap;
    column-gap: 5px;
    row-gap: 5px;
}

#emailaddress {
    appearance: none;
    -webkit-appearance: none;
    padding: 5px 5px;
    border: 1px solid var(--mid-grey);
    border-radius: 5px;
    background-color: var(--white);
    font-size: var(--font-size-1);
    color: var(--text-black);
}

#emailaddress:focus {
    border: 1px solid var(--text-black);
    outline: none;
}

.email-submit {
    appearance: none;
    -webkit-appearance: none;
    padding: 5px 5px;
    border: 1px solid var(--medium-grey);
    border-radius: 5px;
    background-color: var(--mid-grey);
    font-size: var(--font-size-1);
    color: var(--text-black);
}

.email-submit:hover {
    background-color: var(--blue1);
    cursor: pointer;
}

.footer {
    display: grid;
    grid-auto-rows: auto;
    grid-row: 2 / span 1;
    align-items: baseline;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-column-gap: calc(12 / 1680* 100vw);
    column-gap: calc(12 / 1680* 100vw);
    grid-column: 1 / span 12;
    margin-top: var(--spacing-4);
    position: relative;
    padding-bottom: var(--space-6);
    padding-top: 0;
}

#arvester-logo-div {
    grid-column: 1 / span 3;
    grid-row: 1;
}

#footer-logo {
    font-family: fkDisplay;
    font-weight: 400;
    font-size: clamp(24px, 5cqw, 28px);
    padding-top: var(--qwsize4);
    padding-bottom: var(--qwsize7);
    color: var(--darker-grey);
    text-decoration: none !important;
}

#admin-info {
    grid-column: 1 / span 3;
    grid-row: 2;
    font-size: var(--qwsize5);
    color: var(--darker-grey);
}

#footer-sentence {
    grid-column: 4 / span 5;
    grid-row: 1 / span 2;
    font-size: var(--qwsize7);
    font-weight: 400;
    line-height: 1.5;
    color: var(--darker-grey);
    padding-top: 0;
}

#contact-address {
    grid-column: 11 / span 2;
    grid-row: 2 / span 1;
    font-size: var(--qwsize7);
    font-weight: 400;
    line-height: 1.5;
    color: var(--darker-grey);
    padding-top: 0;
}

@media only screen and (max-width: 899px) {
    #search-box {
        grid-row: 3 / span 1;
        grid-column: 1 / span all;
        padding-bottom: 10px;
    }

    .result-list-item-title {
        font-size: var(--font-size-1);
        line-height: 1.3em;
    }
    
    .result-list-item-service {
        font-size: var(--font-size-1);
        line-height: 1.8em;
        height: 15px;
        width: auto;
    }

    #results-container {
        grid-area: 2 / 1 / span 1 / span 6;
        position: static;
    }

    .results-section {
        width: 100%;
        padding: 15px 10px 10px;
    }

    #main-sentence {
        grid-row: 1 / span 1;
        grid-column: 1 / span all;
        padding: 15px 10px 10px;
    }
    
    #position-ranking {
        grid-row: 2 / span 1;
        grid-column: 1 / span all;
    }
    
    #position-line-graph {
        grid-row: 4 / span 1;
        grid-column: 1 / span all;
    }
    
    #position-heatmap {
        grid-row: 3 / span 1;
        grid-column: 1 / span all;
    }
    
    #images-used {
        grid-row: 5 / span 1;
        grid-column: 1 / span all;
    }
    
    #row-titles {
        grid-row: 6 / span 1;
        grid-column: 1 / span all;
    }
    
    #methodology {
        grid-row: 7 / span 1;
        grid-column: 1 / span all;
    }

    #for-more {
        grid-row: 8 / span 1;
        grid-column: 1 / span all;
    }

    .main-sentence-title {
        font-family: fkDisplay;
        font-size: var(--font-size-4);
        line-height: 1.3em;
        color: #000000;
        padding-bottom: 10px;
    }

    .header-elements {
        font-size: 9px;
        line-height: 1.2em;
    }

    .row-data {
        font-size: var(--font-size-0);
        line-height: 1.2em;
    }

    .narrow-col {
        width: 10%;
    }
    
    .wide-col {
        width: 30%;
    }

    #heatmap-container {
        width: 150px;
        height: 150px;
    }
    
    #heatmap-legend {
        font-size: var(--font-size-0);
        font-weight: 500;
        line-height: 1.3em;
        margin-bottom: 10px;
    }

    .footer {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        column-gap: calc(12 / 1680* 100vw);
        margin-top: var(--spacing-6);
        position: static;
        padding-top: 0;
    }

    #arvester-logo-div {
        grid-column: 1 / span all;
        grid-row: 3;
        padding-top: var(--space-5);
    }

    #admin-info {
        grid-column: 1 / span all;
        grid-row: 4;
    }
    
    #footer-sentence {
        grid-column: 1 / span all;
        grid-row: 2;
        font-size: var(--qwsize7);
        font-weight: 400;
        line-height: 1.5;
        color: var(--darker-grey);
        padding-top: 0;
    }

    #contact-address {
        grid-column: 1 / span all;
        grid-row: 1;
        font-size: var(--qwsize7);
        font-weight: 400;
        line-height: 1.5;
        color: var(--darker-grey);
        padding-bottom: var(--space-4);
        padding-top: 0;
    }

    .row-data-nb {
        font-size: 9px;
    }
}