/* font */
@import url("https://use.typekit.net/yoe1pbj.css");
@import url("https://fonts.googleapis.com/icon?family=Material+Icons");

/* Variables */
/* To change a color, update the value here AND the matching constant in src/lib/colors.ts */
:root {
  --primary: rgba(128, 41, 25, 1);
  /* colors.ts → PRIMARY */
  --secondary: rgb(175, 57, 37);
  /* colors.ts → SECONDARY */
  --lightbrown: rgb(205, 172, 165);
  /* colors.ts → LIGHT_BROWN */
  --lightgray: #c3c4ca;
  /* colors.ts → LIGHT_GRAY */
  --spacing: 1rem;
  --textcolor: #212529;
  /* colors.ts → TEXT */
  --border: #e0e0e0;
  /* colors.ts → BORDER */
  --background: #f3f3f3;
  /* colors.ts → BACKGROUND */
  --backgroundwhite: #fbfbfb;
  /* colors.ts → BACKGROUND_WHITE */

  --fontsize-base: 16px;
  --fontsize-small: 14px;
  --fontsize-large: 18px;
}

* {
  -webkit-font-smoothing: antialiased;
}

/* Reset/Base */
* {
  box-sizing: border-box;
}

html {
  overflow: hidden;
}

body {
  font-family: "museo-sans", sans-serif;
  margin: 0;
  padding: 0;
  background: var(--background);
  color: var(--textcolor);
}

#app {
  display: flex;
  flex-direction: column;
  height: 100dvh;
  overflow: hidden;
}

a,
a:visited,
a:focus,
a:active {
  color: var(--primary);
  text-decoration: none;
}

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

/* Shared Typography */

h2 {
  font-size: 1.5rem;
  font-weight: 900;
  text-wrap: balance;
}

h3 {
  font-weight: 500;
}

h5 {
  font-weight: 900;
}

.text_p {
  font-size: 18px;
  max-width: 36rem;
  line-height: 1.3;
}

/* Layout utilities */
.container {
  max-width: 1330px;
  margin: 0 auto;
  padding: 0 var(--spacing) 2.5rem;
}

.row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.col {
  display: flex;
  flex-direction: column;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

.justify-content-center {
  justify-content: center;
}

@media (max-width: 768px) {
  .text_p {
    width: 90vw;
  }
}

@media (min-width: 768px) {
  .row {
    grid-template-columns: repeat(12, 1fr);
  }

  .col-lg-1 {
    grid-column: span 1;
  }

  .col-lg-2 {
    grid-column: span 2;
  }

  .col-lg-3 {
    grid-column: span 3;
  }

  .col-lg-4 {
    grid-column: span 4;
  }

  .col-lg-5 {
    grid-column: span 5;
  }

  .col-lg-6 {
    grid-column: span 6;
  }

  .col-lg-7 {
    grid-column: span 7;
  }

  .col-lg-8 {
    grid-column: span 8;
  }

  .col-lg-9 {
    grid-column: span 9;
  }

  .col-lg-10 {
    grid-column: span 10;
  }

  .col-lg-11 {
    grid-column: span 11;
  }

  .col-lg-12 {
    grid-column: span 12;
  }
}

/* Custom styles */

.main_link_btn {
  background: var(--primary);
  color: var(--backgroundwhite);
  outline: 1px solid var(--backgroundwhite);
  text-align: center;
  padding: 15px;
  position: relative;
  width: 100%;
}

/* Shared chart styles */

.empty {
  margin: 0;
}

.svg-legend {
  display: none;
}

.interactive-svg:focus {
  outline: 2px solid rgba(128, 41, 25, 0.6);
  outline-offset: 2px;
}

.interactive-svg:focus:not(:focus-visible) {
  outline: none;
}

.chart-panel-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
}
