body {
    background: #eee6de;
    font: 1rem sans-serif;
    color: black;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
}

main {
    flex: 1 0 auto;
    padding: 2vh 2vw;
}

h1 {
    font-family: "Fraunces", serif;
    font-optical-sizing: auto;
    font-size: 7rem;
    margin: 1rem 0;
    color: #b72424;
}

h2 {
    font-family: "Fraunces", serif;
    font-optical-sizing: auto;
    color: #b72424;
}

h3, h4 {
    font-family: "Fraunces", serif;
    font-optical-sizing: auto;
    color: #4a7ca5;
}

p {
    font-family: "Source Sans 3", sans-serif;
    padding-left: 2vw;
    font-size:13px;
    line-height:1.65;
    font-weight:300;
    margin-bottom:24px
}

a {
    color: #3a6f4c;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

li {
    font-family: "Source Sans 3", sans-serif;
    font-size: 1.05rem;
    line-height: 1.3;
    margin-bottom: 1.5rem;
}

.navbar {
    font-family: "Source Sans 3", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
    color: #3a6f4c;
}

.highlight {
    color: #3a6f4c;
    font-weight: 600;
}

/* Climate Start */
.sidebar{
  border-right:0.5px solid #DDD5C5;
  padding: 0 px 32px 24px 32px;
  display:flex;flex-direction:column;gap:0;
  overflow-y:auto;
}

.toggle-btns{
    display:flex;
    gap:0;
    border:0.5px solid #DDD5C5;
    border-radius:4px;
    overflow:hidden
}

.toggle-btn{
    flex:1;
    padding:7px 10px;
    font-size:12px;
    font-weight:400;
    background:none;
    border:none;
    color:#5A5048;
    cursor:pointer;
}
.toggle-btn.active{
    background:#1C1812;
    color:#FFF;
    font-weight:500
}

.legend-block{
    margin-bottom:22px
}

.leg-bar {
    height: 10px;
    border-radius: 2px;
    flex: 1
}

.leg-ends {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
}

.leg-divider {
    height: 0.5px;
    background: #DDD5C5;
    margin: 20px 0
}

.leg-bubbles {
    display: flex;
    align-items: flex-end;
    gap: 14px
}

.leg-bubble-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    font-size: 10px;
}

.leg-circle {
    border-radius: 50%;
    background: rgba(28, 24, 18, 0.15);
    border: 1.5px solid rgba(28, 24, 18, 0.35)
}

.detail-card{
  margin-top:auto;
  padding:16px;
  background: #F5F1EA;
  border-radius:4px;
  border:0.5px solid #DDD5C5;
  min-height:120px;
  transition:all .2s;
}
.detail-empty {
    font-size: 13px;
    font-style: italic;
    line-height: 1.6
}

.detail-name {
    font-size: 18px;
    color: #5A5048;
    margin-bottom: 4px
}

.detail-div {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 12px
}

.detail-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-bottom: 10px
}

.metric {
    background: white;
    border-radius: 3px;
    padding: 8px 10px;
    border: 0.5px solid #DDD5C5
}

.metric-val {
    font-size: 17px;
    font-weight: 500;
    color: #5A5048;
    line-height: 1
}

.metric-lbl {
    font-size: 10px;
    margin-top: 3px;
    line-height: 1.3
}

.detail-note {
    font-size: 12px;
    line-height: 1.6;
    font-weight: 300
}

.map-area{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
}

#map-svg{
    max-height:90vh;
    width:100%
}

#climateMapTooltip{ 
  position:fixed;
  pointer-events:none;
  opacity:0;
  background:#1C1812;
  color:#F5F1EA;
  border-radius:4px;
  padding:10px 14px;
  font-size:12px;
  line-height:1.65;
  min-width:170px;
  z-index:100;
  transition:opacity .1s;
}

#climateMapTooltip strong{
    font-weight:500;
    font-size:13px;
    display:block;
    margin-bottom:2px
}

.data-note{
  position:absolute;
  bottom:10px;
  right:20px;
  font-size:10px;
  text-align:right;
  line-height:1.6;
  max-width:280px;
}

.district-path{
    cursor:pointer;
    transition:opacity .12s
}

.district-path:hover{
    opacity:0.82
}
