/* global css file that has styles that apply to all templates that inherit base.html */

@import
url(https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.2.0/css/all.min.css);

/* global variables */
:root {
  --color-quiver-green: #57D7BA;
  --color-quiver-black: #121212;
  --color-border-gray: #2F3F4D;

  --color-quiver-white-light: rgb(251, 253, 254);
  --color-quiver-white: rgb(241, 243, 244);
  --color-quiver-white-2: rgb(231, 233, 234);
  --color-quiver-white-3: rgb(211, 213, 214);
  --color-quiver-white-4: rgb(201, 203, 204);

  --color-quiver-gray: rgb(181, 183, 184);
  --color-quiver-gray-2: rgb(161, 163, 164);
  --color-quiver-gray-3: rgb(151, 153, 154);
  --color-quiver-gray-4: rgb(141, 143, 144);

  --color-mobile-header-button: #222835;
  --color-mobile-header-button-hover: #242936;
  --color-mobile-border: #2f3f4db0;

  /* datasets colors */
  --color-dataset-gov: #f78948;
  --color-dataset-ci: #87CEFA;
  --color-dataset-sec: #B18FCF;
  --color-dataset-esg: #53c7a7;
  
  --color-header-bg: #1f242d;
  --color-graph-bg: #202630;
  --color-error-red: #fe5555; 

  --promo-height: 0px; /* set dynamically */
  --header-height: calc(65px + var(--promo-height));
}

/* global defaults */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  min-height: 100%;
  overflow-x: hidden;
  background-color: var(--color-header-bg);
  background-image: linear-gradient(to bottom, #1f242d, #1f242d, #1a1b1f, #121212);
}

body {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  min-height: 100%;
  color: var(--color-quiver-white);
  font-family: "Figtree", sans-serif;
  font-weight: 400;
  overflow-x: hidden;
  overflow-y: auto;
}

main {
  padding: calc(var(--header-height) + 30px) 30px 0 30px;
  width: 100%;
  max-width: 2000px;
  min-height: 100vh;
  /* background-image: linear-gradient(to bottom, #1f242d, #1f242d, #1a1b1f, #121212); */
}

a {
  text-decoration: none;
}

img, svg {
  display: block;
  max-width: 100%;
}

li {
  list-style-type: none;
}

input, button, textarea, select {
  font: inherit;
}

button, input {
  border: 0;
}

html, body, main, div {
  /* firefox scrollbar styles */
  scrollbar-color: #2b3644 var(--color-quiver-black);
  scrollbar-width: thin;
}

h1, h2, h3,
h4, h5, h6 {
  font-weight: 500;
}

a.skip-to-content {
  position: absolute;
  top: -1000px;
  left: -1000px;
}
a.skip-to-content:focus {
  position: fixed;
  top: calc(var(--header-height) + 1rem);
  left: 2rem;
  z-index: 1000;
  background-color: var(--color-quiver-green);
  color: var(--color-quiver-black);
  padding: .5rem .75rem;
  border-radius: 2px;
} 

::-webkit-scrollbar {
  width: 5px; 
  height: 7px;
}

::-webkit-scrollbar-track {
  background-color: var(--color-quiver-black);
}

::-webkit-scrollbar-thumb {
  background-color: #2b3644;
  border-radius: 50px;
}

/* page title / description */
div.page-title-outer {
  padding: 0 0 30px 10px;
}

div.page-title-outer .page-title {
  padding-bottom: 12px;
  font-weight: 500;
  font-size: clamp(22px, 3vw, 28px);
}

div.page-title-outer .page-title-description {
  width: 100%;
  max-width: 1000px;
  font-size: 18px;
  font-size: clamp(15px, 2vw, 18px);
  font-weight: 300;
  color: rgb(200, 200, 200);
  line-height: 1.5;
}

.page-title-outer a,
.table-outer a {
  color: var(--color-quiver-green);
}

.page-title-outer a:hover {
  text-decoration: underline;
}

.page-title-outer .page-tips {
  display: flex;
  padding: 1rem;
}

.page-title-outer .page-tips > span {
  font-size: clamp(14px, 1.75vw, 17px);
  font-weight: 300;
  color: rgb(180, 180, 180);
}

.page-title-outer .page-tips > span.asterisk {
  display: block;
  font-size: 18px;
  padding-right: 8px;
}

.page-tips i {
  margin: 0 4px;
  font-size: 20px;
}

/* table / graph */
.graph-outer,
.table-outer {
  margin: 1rem 0;
  border: 1px solid var(--color-border-gray);
  border-radius: 8px;
  padding: 2rem;
  background-color: var(--color-graph-bg);
}

.graph-header {
  padding: .5rem 0 .5rem .5rem;
}

.table-header {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: .5rem 0 2.5rem .5rem;
}

.table-header > .table-header-title {
  display: flex;
  align-items: center;
}

.table-header-title > h3 {
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 500;
}

.graph-header h3 {
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 500;
}

.table-header .table-filter-outer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.table-filter-outer > span {
  padding-right: 2rem;
  font-size: 13px;
  color: #BEC0C4;
}

.table-filter-outer .asterisk {
  padding-right: .25rem;
}

.table-filter-inner {
  display: flex;
  align-items: center;
  margin: 0 auto;
  border: 2px solid var(--color-border-gray);
  transition: .2s;
} 

.table-filter-inner > input {
  padding: .5rem .5rem .5rem .5rem;
  background-color: var(--color-graph-bg);
  font-size: 14px;
  outline: none;
  color: #BEC0C4;
}

.table-filter-inner:focus-within {
  border-bottom: 2px solid var(--color-quiver-green);
}

input:focus {
  outline: none;
}

.table-filter-inner > input::placeholder {
  color: #BEC0C4;
  opacity: .75;
}

input:focus::placeholder {
  color: transparent;
}

.table-filter-inner > button {
  background-color: transparent;
}

.table-filter-inner > button > img {
  min-width: 13px;
  width: 13px;
  margin-left: .5rem;
}

.table-outer .table-inner {
  overflow-y: auto;
  max-height: 450px;
  border-bottom: 1px solid var(--color-border-gray);
}

.table-outer table {
  table-layout: fixed;
  min-width: 100%;
  border-spacing: 0px;
}

.table-outer thead th {
  border: 1px solid var(--color-border-gray);
} 

.table-inner tbody tr:nth-child(even) {
  background-color: #293240;
}

.table-outer table tr.sticky-table-headers > th {
  position: sticky;
  top: 0;
  background-color: #293240;
}

.table-outer th,
.table-outer td {
  text-align: left;
}

.table-outer th {
  font-size: 12px;
  font-weight: 500;
  padding: .75rem 1rem;
}

.table-outer td {
  font-size: 12px;
  font-weight: 400;
  padding: .5rem 1rem;
  color: #BEC0C4;
}

span.asterisk {
  color: var(--color-quiver-green);
}

/* flex-classes */
.flex-column {
  display: flex;
  flex-direction: column;
}

/* breaking news */
.breaking-news-outer {
  display: flex;
  flex-direction: column;
  margin: 0 auto;
  padding: calc(var(--header-height)) 0 0 0;
  width: 100%;
  max-width: 100%;
  background-color: #0a0a0a;
}

.breaking-news {
  flex-grow: 1;
  margin: 0 auto;
  padding: 1.15rem 2.125rem;
  width: 100%;
  max-width: 1600px;
}

.breaking-news > div {
  display: flex;
  align-items: center;
  justify-content: center;
}

.breaking-news strong {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: .5rem;
  text-align: center;
  color: var(--color-dataset-most-popular);
  font-size: clamp(13px, 2.25vw, 15px);
  font-weight: 600;
}

.breaking-news a {
  margin-right: .5rem;
  white-space: wrap;
  font-size: 12px;
  font-size: clamp(12px, 2vw, 14px);
  font-weight: 500;
  line-height: 1.5;
  color: white;
}

.breaking-news a.read-more {
  display: inline;
  font-size: clamp(12px, 2vw, 14px);
  text-decoration: none;
  white-space: nowrap;
}

.breaking-news a:hover {
  text-decoration: underline;
}

.breaking-news i {
  margin-right: .5rem;
  border-radius: 50%;
  text-decoration: none !important;
  font-size: 7px;
  color: var(--color-dataset-most-popular);
  animation: pulse 1.5s infinite;
}

.google-news-logo {
  border: 1px solid #4d505a;
  border-radius: 2px;
}

.google-news-logo > img {
  min-width: 130px;
  width: 130px;
  max-width: 130px;
  border-radius: 2px;
}

@media screen and (max-width: 1280px) {
  main {
    padding: calc(var(--header-height) + 20px) 10px 0 10px;
  }
}

@media screen and (max-width: 800px) {
  .hide-on-mobile {
    display: none;
  }

  div.page-title-outer {
    padding: 0 0 10px 10px;
  }

  .page-title-outer .page-tips {
    padding: 1rem 0 0;
  }

  .table-outer {
    padding: .75rem 0;
  }

  .graph-outer {
    padding: .75rem;
  }

  .graph-header {
    padding: .75rem 1.5rem .5rem .75rem;
  }

  .table-header {
    flex-direction: column;
    padding: .75rem 1.5rem 1.5rem 1.5rem;
  }

  .table-filter-outer > span {
    display: none;
  }

  .table-filter-inner {
    margin-top: 1.5rem;
  }
}

@media screen and (min-width: 768px) {
  .breaking-news > div {
    justify-content: flex-start;
  }
  .breaking-news strong {
    text-align: left;
    justify-content: flex-start;
  }
}

#ot-sdk-btn-floating.ot-floating-button {
  display:none !important;
}
