@import url("https://use.typekit.net/pnq5gyb.css");

:root {
  --brand-white: #ffffff;
  --brand-charcoal: #1c1c1c;
  --brand-orange: #ff8754;
  --brand-light-orange: #fbf5f0;
  --brand-pink: #c2447a;
  --brand-blue: #4d45ff;
  --brand-light-grey: #a5a5a5;
  --brand-peach: #f0dccd;
  --brand-green: #039961;

  --surface-1: var(--brand-light-orange);
  --surface-card: #ffffff;
  --surface-chart: #f2ebe5;
  --text-primary: var(--brand-charcoal);
  --text-secondary: #52514e;
  --text-muted: var(--brand-light-grey);
  --grid-line: #e5ddd3;
  --series-1: var(--brand-blue);
  --series-2: var(--brand-green);
  --series-3: var(--brand-orange);
  --series-4: #008300;
  --series-5: var(--brand-pink);
  --series-6: #e34948;
  --series-7: var(--brand-light-blue, #b4d8f4);
}
#hero-value, #hero-value-2 {
  font-size: 2.6rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.1;
  margin-top: 8px;
}
.left-top p, .left-bottom p {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-top: 6px;
}

.right-top, .right-bottom {
  padding: 16px 20px;
}

.chart-title {
  display: inline-block;
  font-family: "effra", sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: normal;
  padding: 7px 16px;
  border-radius: 20px;
  margin: 0 0 4px 0;
}
.chart-title.neutral {
  background-color: var(--surface-1);
  color: var(--text-secondary);
}
.chart-title.accent-blue {
  background-color: rgba(77, 69, 255, 0.12);
  color: var(--brand-blue);
}
.chart-title.accent-violet {
  background-color: rgba(194, 68, 122, 0.12);
  color: var(--brand-pink);
}
.full-width {
  background-color: transparent;
  border-radius: 10px;
  padding: 16px 20px;
  margin-top: 10px;
}
.jobs-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 20px;
  margin-top: 8px;
  align-items: start;
}
@media (max-width: 860px) {
  .jobs-layout {
    grid-template-columns: 1fr;
  }
}
#jobs-table-container, #table-container {
  overflow-x: auto;
}

.flourish-chart-wrap {
  width: 100%;
}

.flourish-live-chart {
  width: 100%;
  min-height: 400px;
}

.flourish-credit {
  display: none !important;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  margin-top: 8px;
}
.data-table th {
  text-align: left;
  color: var(--text-muted);
  font-weight: 400;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 4px 8px;
  border-bottom: 1px solid var(--grid-line);
}
.data-table td {
  padding: 6px 8px;
  color: var(--text-primary);
  border-bottom: 1px solid var(--grid-line);
}
.data-table td.num {
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.data-table .swatch {
  width: 9px;
  height: 9px;
  border-radius: 2px;
  display: inline-block;
  margin-right: 6px;
}


body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-family: "effra", sans-serif;
    font-weight: 400;
    font-style: normal;
    
}


#main-code {
    background-color: var(--surface-1);
   width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  min-width: 0;
}

.main-content {
    background-color: var(--surface-1);
    overflow-x: hidden;
    
}

.cell-body{
    height:auto!important;
}
td.td {
    height: auto!important;
}
h2 {
    font-size: 3.25rem;
    margin-bottom: 0px;
    margin-top: 0px;
}

h3 {
    font-family: "effra", sans-serif;
    font-size: 1.6em;
    line-height: 0;

    font-weight: 400;
    margin-bottom: 0px;
}


p {
    font-family: "Roboto", sans-serif;
    font-size: 1.5em;
    line-height: 1.6;
    margin-top: 12px;
    margin-bottom: 0px;
}





section.title {
    align-items: center;
    text-align: center;
    display: grid;
    padding: 2%;
    background-color: var(--surface-1);
    border-radius: 10px 10px 0px 0px;
    gap: 10px;
    justify-content: left;
    margin: 0 auto;
    font-size: 2.25rem;
    padding-left: 30px;

}

.wrapper__90 {
    max-width: 90%;
    margin: 0 auto;
    justify-content: center;
    text-align: center;
    display: flex;
}

.wrapper__100 h1 {
    align-items: center;
}

.wrapper__100 img {
    width: 100%;
    margin: 0 auto;
    object-fit: cover;
    overflow: hidden;
    height: 600px;
}

.wrapper__100 {
    width: 100%;
    height: 100%;
    max-width: 100%;
}

.wrapper__90 .wrapper__grid {
    display: flex;
    grid-template-columns: repeat(3, 1fr);
    justify-content: center;
    padding: 20px;


}

.wrapper__90 .wrapper__grid div {
    color: #fff;
    padding: 30px;
    text-align: center;
    border: 1px solid #E7E7E7;
    border-radius: 20px;
    font-family: 'DM Sans', sans-serif;

}

#mapContainer,
#dataContainer {
    display: none;
    text-align: center;
    margin-top: 0px;
    padding: 20px;
    display: none;
    gap: 10px;
    grid-template-columns: 100%;
}

.source{
    display: flex;
    margin-bottom: 5;
}
.source p{
    font-size:1em;
    text-align: left;
    color: var(--text-muted);
    font-weight: 400;
}


#dataContainer {
    display: grid;

    margin-top: 0px;
    border-radius: 20px;
    gap: 10px;
}

#priceContainer {
    display: none;
    text-align: center;
    margin-top: 20px;
    border-radius: 20px;
    padding: 20px;
}


.graph {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 600px;
    border: none;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

#chart_2 {
    width: 90%;
}


.graph.active {
    opacity: 1;
    pointer-events: auto;
    z-index: 1;
}


.hover-underline-animation {
    display: inline-block;
    position: relative;
}

.hover-underline-animation::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #FF8754;
    transform-origin: bottom right;
    transition: transform 0.25s ease-out;
}

.hover-underline-animation:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}
#loader-wrapper {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: #ffffff;
    display: -webkit-box; 
    display: -ms-flexbox; 
    display: flex;        
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 99999;
}

.loader {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #4D45FF;
    border-radius: 50%;
    -webkit-animation: spin 1s linear infinite;
    animation: spin 1s linear infinite;
}

@-webkit-keyframes spin {
    0% { -webkit-transform: rotate(0deg); }
    100% { -webkit-transform: rotate(360deg); }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.fade-out {
    opacity: 0;
    visibility: hidden; 
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.selected {
    opacity: 1;
    color: #000000;
    border-bottom: 0.2rem solid #FF8754;

}

.selectors {
    padding-top: 20px;
    margin-left: 20px;
}



.wrapper__50 {
    margin: 0 auto;
    width: 100%;
    grid-template-columns: 50% 50%;
    display: grid;
    gap: 20px;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 20px;
    margin-bottom: 20px;

}

.wrapper__50__group {
    margin: 0 auto;
    width: 100%;
    grid-template-columns: 65% 45%;
    display: grid;
    gap: 0px;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 20px;
    margin-bottom: 20px;
    background-color: var(--surface-card);
}


.wrapper__25 {
    margin: 0 auto;
    width: 100%;
    grid-template-columns: 33% 33% 33%;
    display: grid;
    gap: 20px;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 20px;
    margin-bottom: 20px;

}

.wrapper__25__group {
    margin: 0 auto;
    width: 100%;
    grid-template-columns: 33% 33% 33%;
    display: grid;
    gap: 0px;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 20px;
    margin-bottom: 20px;
    background-color: var(--surface-card);
}



.flourish-embed.flourish-table {

    background-color: var(--surface-card);
    border-radius: 10px;
    padding: 10px;

}

.flourish-embed.flourish-chart {

    border-radius: 10px;
    height: 100%;
    padding: 10px;
    width: 100%;
}

.flourish-embed.flourish-scatter {
    border-radius: 10px;
    background-color: var(--surface-card);

    padding: 10px;
}

#chart {
width:100%;
padding-top: 10px;
}

.wrapper__number {
    border-radius: 10px;
    background-color: var(--surface-card);

}

.wrapper__number h2 {
    font-family: "effra", sans-serif;
    font-weight: 600;
}

.wrapper__25_number {
    display: grid;
grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 10px;
    border-radius: 10px;

}

.left-top {
    grid-column: 1;
    grid-row: 1;
    background-color: var(--surface-card);
    border-radius: 10px;
    /* display: flex; */
    align-items: center;
    justify-content: center;
    flex-direction: column;
    min-width: 0;

}

.left-top h3 {

    padding: 5px 10px 5px 10px;
    background-color: #F6F2EE;
    border-radius: 20px;
    font-size: 1.2em;
        font-family: "Roboto", sans-serif;
    line-height: normal;
    width: 80%;
}

.left-bottom {
    grid-column: 2;
    grid-row: 1;
    background-color: var(--surface-card);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    min-width: 0;
}

#chart-2{
    width: 100%;
}
#chart-3{
    width: 100%;
}

.download {
    width: 40px;
    padding-left: 20px
}

.left-bottom p {

    padding:5px;
    font-size: 1em;
    font-style: italic;
    color: #7d7d7d;
        
        line-height: normal;

}

.left-bottom h3 {

  padding: 5px 10px 5px 10px;
    background-color: #F6F2EE;
    border-radius: 20px;
    font-size: 1.2em;
        font-family: "Roboto", sans-serif;
    line-height: normal;
    width: 80%;
}
.right {
    
    border-radius: 10px;
    display: grid;
    grid-template-columns: 1fr 1.4fr;
   
    gap: 10px;

}
.right-top{
        background-color: var(--surface-chart);
         border-radius: 10px;
         min-width: 0;

}

.quarterly-toggle-row {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.quarterly-toggle-btn {
    font-family: "effra", sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-secondary);
    background-color: var(--surface-card);
    border: 2px solid transparent;
    border-radius: 20px;
    padding: 6px 16px;
    cursor: pointer;
}

.quarterly-toggle-btn.active {
    color: var(--brand-blue);
    border-color: var(--brand-blue);
}

.right-bottom{
        background-color: var(--surface-chart);
         border-radius: 10px;
         min-width: 0;

}
.center {
    gap: 10px;
    background-color: var(--surface-card);
    border-radius: 10px;
}

#controlfilter {
  display: flex;
  flex-wrap: wrap;
  margin: 1rem 2rem;
}
.country-control select{
 

      border-radius: 50px;
  border: 1px solid #4D45FF;
  background: #fff;
  color: var(--muted);
  font-size: clamp(13px, 0.95vw, 15px);
  padding: 0 150px 0 12px;
  appearance: none;
  font-family: "effra", sans-serif;

  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='26' fill='none' viewBox='0 0 24 24'%3E%3Cpath stroke='%234D45FF' stroke-linecap='round' stroke-linejoin='round' stroke-width='2.5' d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-size: 22px;
  background-position: right 10px center;
  background-repeat: no-repeat;

}

#controls{
    display: flex;
    position: relative;
    border-radius: 20px;
    padding-bottom: 20px;
}

.control {
  margin-right: 2.5rem;
}

.control-header {
  margin: 0.5rem 0 0.75rem;
  padding: 0.5rem 0;
  padding-right: 1rem;
  color: #666;
  border-bottom: 1px solid rgb(0 0 0 / 15%);
}

#ySelect {
    width: 250px;
    color:black;
    background-color: rgb(255, 255, 255);
    border: 1px solid rgb(165, 165, 165);
    min-height: 42px;
    border-radius: 0.75rem;
    box-shadow: none;
    box-sizing: border-box;
    padding: 0.25rem;
    outline: 0px !important;
    font-size: 1rem;
    align-items: center;
    font-family: "effra", sans-serif;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' viewBox='0 0 24 24'%0A%3E%3Cpath stroke='%234D45FF' stroke-linecap='round' stroke-linejoin='round' stroke-width='2.5' d='M6 9l6 6 6-6' %3E%3C/path%3E%3C/svg%3E");
    background-size: 24px;
    background-position: right 12px center;
    background-repeat: no-repeat;
    appearance: none;
    text-indent: 10px;


}

#ySelect option {
    margin-left: 10px;
}


.selection {
    -webkit-box-align: center;
    cursor: default;
    display: flex;
    flex-wrap: wrap;
    padding: 10px;
    height: 20px;

}

.selector2 {
    -webkit-box-align: center;
    cursor: default;
    display: flex;
    flex-wrap: wrap;
    padding: 10px;
    display: grid;
    padding-top: 20px;
    margin-left: 20px;

}

#ySelect2 {
    width: 300px;
    background-color: rgb(255, 255, 255);
    border: 1px solid rgb(165, 165, 165);
    min-height: 42px;
    color:black;
    border-radius: 0.75rem;
    box-shadow: none;
    box-sizing: border-box;
    padding: 0.25rem;
    outline: 0px !important;
    font-size: 1rem;
    align-items: center;
    font-family: "effra", sans-serif;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' viewBox='0 0 24 24'%0A%3E%3Cpath stroke='%234D45FF' stroke-linecap='round' stroke-linejoin='round' stroke-width='2.5' d='M6 9l6 6 6-6' %3E%3C/path%3E%3C/svg%3E");
    background-size: 24px;
    background-position: right 12px center;
    background-repeat: no-repeat;
    appearance: none;
    text-indent: 10px;

}



.select__indicators {
    -webkit-box-align: center;
    align-items: center;
    align-self: stretch;
    display: flex;
    flex-shrink: 0;
    box-sizing: border-box;
    color: rgb(77, 69, 255);
}


@-webkit-keyframes spin {
    0% {
        -webkit-transform: rotate(0deg);
    }

    100% {
        -webkit-transform: rotate(360deg);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

#chart-container {
    width: 100%;
    max-width: 900px;
    margin: auto;
    height: 400px;
}

svg {
    width: 100%;
    height: 100%;
}


@media (max-width: 600px) {

    .wrapper__100 .wrapper__grid {
        display: flex;
        flex-direction: column;
    }

    .wrapper__50 {
        display: flex;
        flex-direction: column;
    }

    .title h1 {
        font-size: 1.8rem;
    }

    .wrapper__25_number {
grid-template-columns: 1fr;
        display: flex;
        flex-direction: column;
    }

  

    .left-top,
    .left-bottom {
        flex: 1;
    }

    .left-top {
        display: flex;
        padding: 20px
    }

    .left-top h2 {
        font-size: 3rem;
    }

    .left-top h3 {
        margin-bottom: 10px;
        margin: 0px;
        padding: 5px;
        font-size: 1.2rem;
    }

    .left-top p {
        margin-bottom: 10px;
        margin: 0px;
        padding: 5px;
        font-size: 1.2rem;
        line-height:1 ;

    }
    .left-bottom h3{
        padding: 5px;
    }
    .left-bottom p {
       line-height:1 ;
    }

    #ySelect2{
        width: 100%;
    }


    .left-bottom {

        display: flex;
        padding: 20px
    }

    .left-bottom h2 {
        font-size: 3rem;
    }

    

    .left-bottom p {
        margin-bottom: 10px;
        margin: 0px;
        padding: 5px;
        line-height: 1;
font-size: 0.6rem;

    }

    .right {
        width: 100%;
        display: flex;
        flex-direction: column;
    }




    .wrapper__50__group {
        display: flex;
        flex-direction: column;
    }

.flourish-embed.flourish-chart {

    
    width: auto;
}

}



@media (max-width: 500px) {

    section.title {
        padding: 10%;
    }
}
@media (max-width: 400px) {

    section.title {
        padding: 10%;
    }

.flourish-embed iframe {
    width: 1px !important;
    min-width: 100% !important;
    width: 100% !important;
        max-width: 100% !important;
        overflow: hidden;

}


}

/* --- Dashboard-specific layout (mirrors T&E's "Plugged in" EV market watch) --- */

.eyebrow-tick {
    display: block;
    width: 40px;
    height: 6px;
    background-color: var(--brand-pink);
    border-radius: 3px;
    margin-bottom: 16px;
}

.section-header {
    margin-bottom: 10px;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0;
    line-height: 100%;
}

.country-select-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.country-flag {
    width: 48px;
    height: 36px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.country-select {
    font-family: "effra", sans-serif;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 100%;
    border: 2px solid var(--brand-blue);
    border-radius: 20px;
    background-color: var(--surface-card);
    appearance: none;
    cursor: pointer;
    padding: 8px 48px 8px 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='26' fill='none' viewBox='0 0 24 24'%3E%3Cpath stroke='%234D45FF' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-size: 26px;
    background-position: right 12px center;
    background-repeat: no-repeat;
}

.country-select option {
    font-size: 1rem;
    font-weight: 400;
}

.country-select:focus {
    outline: 2px solid var(--brand-blue);
    outline-offset: 4px;
}

.stat-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.stat-box {
    background-color: var(--surface-card);
    border-radius: 10px;
    padding: 16px 20px;
}

.stat-box h4 {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin: 0 0 10px 0;
    font-family: "effra", sans-serif;
}

.stat-line {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.4rem;
    font-weight: 700;
    margin-top: 6px;
}

.stat-line .stat-icon {
    display: inline-flex;
    color: var(--text-secondary);
}

.stat-line .stat-icon svg {
    width: 30px;
    height: 30px;
}

.stat-line .stat-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    min-width: 44px;
}

.stat-line.bev .stat-icon { color: #75A1F4; }
.stat-line.bev .stat-value { color: var(--brand-blue); }
.stat-line.ice .stat-value { color: var(--brand-charcoal); }

.footnote {
    font-size: 0.75rem;
    line-height: 1.5;
    color: var(--text-muted);
    margin-top: 16px;
}

.te-logo {
    height: 48px;
    display: block;
}

.logo-row {
    display: flex;
    justify-content: flex-end;
    margin-top: 12px;
}

.country-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 20px;
    align-items: stretch;
}

.country-main-col {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.country-main-col .right-top {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.country-main-col .flourish-chart-wrap {
    flex: 1;
    min-height: 0;
}

.country-main-col .flourish-chart-wrap .flourish-live-chart {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.historical-col {
    border-left: 1px solid var(--grid-line);
    padding-left: 20px;
}

.historical-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.historical-grid .right-top,
.historical-grid .right-bottom {
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.historical-grid .flourish-chart-wrap {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.historical-grid .flourish-live-chart {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 280px;
}

.flourish-chart-wrap[data-view] .flourish-live-chart {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 220px;
}

@media (max-width: 860px) {
    .country-grid,
    .historical-grid,
    .stat-row {
        grid-template-columns: 1fr;
    }
    .historical-col {
        border-left: none;
        border-top: 1px solid var(--grid-line);
        padding-left: 0;
        padding-top: 20px;
    }
}
