/* CUSTOM FONTS ---------------------------------------------- */


@font-face {
  font-family: "Besley-Pro";
  src: url('https://bear-images.sfo2.cdn.digitaloceanspaces.com/onlinegoddess/besley-1.ttf') format('truetype');
}
@font-face {
  font-family: "Besley-Pro";
  src: url('https://bear-images.sfo2.cdn.digitaloceanspaces.com/onlinegoddess/besley-italic.ttf') format('truetype');
       font-style: italic;
}

/* COMMENTS ACCORDION ---------------------------------------------- */

.accordion {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: auto;
    box-sizing: border-box;
}
.accordion .a-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding-bottom: 5px;
}
.accordion .a-container .a-btn {
    margin: 0;
    position: relative;
    padding: 15px 15px;
    color: var(--txt);
    font-weight: 450;
    display: block;
    font-weight: 500;
    background-color: var(--surface);
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    border-radius: 5px;
}
.accordion .a-container .a-btn span {
    display: block;
    position: absolute;
    height: 14px;
    width: 14px;
    right: 20px;
    top: 18px;
    pointer-events: none;
}
.accordion .a-container .a-btn span:after {
    content: '';
    width: 14px;
    height: 3px;
    border-radius: 2px;
    background-color: #8a79c5;
    position: absolute;
    top: 6px;
}
.accordion .a-container .a-btn span:before {
    content: '';
    width: 14px;
    height: 3px;
    border-radius: 2px;
    background-color: #8a79c5;
    position: absolute;
    top: 6px;
    transform: rotate(90deg);
    transition: all 0.3s ease-in-out;
}
.accordion .a-container .a-panel {
    width: 100%;
    color: var(--txt);
    transition: all 0.2s ease-in-out;
    opacity: 0;
    height: auto;
    max-height: 0;
    overflow: hidden;
    padding: 0px 10px;
}
.accordion .a-container.active .a-btn {
    color: var(--muted);
}
.accordion .a-container.active .a-btn span::before {
    transform: rotate(0deg);
}
.accordion .a-container.active .a-panel {
    padding: 15px 10px 10px 10px;
    opacity: 1;
      max-height: 100%;
}

/* PRINT STYLES ---------------------------------------------- */



@media print {
body {
background: #fff;
color: #000;
font-family: "Besley-Pro", serif;
}

header,
nav,
footer,
.upvote-button {
display: none;
}

a {
color: #000;
text-decoration: underline;
}

a:visited {
color: #000;
}

a[href^="http"]::after {
content: " (" attr(href) ")";
font-size: 0.9em;
}

h1, h2, h3, h4 {
page-break-after: avoid;
}

blockquote,
pre,
img {
page-break-inside: avoid;
}
}

/* graph */

.simple-bar-chart{
  --line-count: 10;
  --line-color: currentcolor;
  --line-opacity: 0.1;
  --item-gap: 2%;
  --item-default-color: #8a79c5;
  
  height: 10rem;
  display: grid;
  grid-auto-flow: column;
  gap: var(--item-gap);
  align-items: end;
  padding-inline: var(--item-gap);
  --padding-block: 1.5rem; /*space for labels*/
  padding-block: var(--padding-block);
  position: relative;
  isolation: isolate;
}

.simple-bar-chart::after{
  content: "";
  position: absolute;
  inset: var(--padding-block) 0;
  z-index: -1;
  --line-width: 1px;
  --line-spacing: calc(100% / var(--line-count));
  background-image: repeating-linear-gradient(to top, transparent 0 calc(var(--line-spacing) - var(--line-width)), var(--line-color) 0 var(--line-spacing));
  box-shadow: 0 var(--line-width) 0 var(--line-color);
  opacity: var(--line-opacity);
}
.simple-bar-chart > .item{
  height: calc(1% * var(--val));
  background-color: var(--clr, var(--item-default-color));
  position: relative;
  animation: item-height 1s ease forwards
}
@keyframes item-height { from { height: 0 } }


@media (max-width: 600px) {

.simple-bar-chart > .item > * { position: absolute; text-align: centre; font-size: 0.6rem; }
.simple-bar-chart > .item > .label { inset: 100% 0 auto 0 }
.simple-bar-chart > .item > .value { inset: auto 0 100% 0 }
  
}
  
  
@media (min-width: 600px) {
  
.simple-bar-chart > .item > * { position: absolute; text-align: center }
.simple-bar-chart > .item > .label { inset: 100% 0 auto 0 }
.simple-bar-chart > .item > .value { inset: auto 0 100% 0 }
  
  }