@charset "UTF-8";

/* =========================================================
  2col layout
========================================================= */
#wrapper {
  gap: 67px;
}

#content {
  flex-grow: 1;
  max-width: var(--content-width);
}

#links {
  min-width: 240px;
  flex-basis: var(--col2-side-width);
  margin-left: auto;
}
@media only screen and (min-width: 960px) {
  #links {
    max-width: 240px;
  }
}


@media only screen and (max-width: 959px) {
  #content {
    max-width: 100%;
    margin-right: 0;
  }

  #links {
    display: flex;
    flex-wrap: wrap;
    gap: 0 2%;
    flex-basis: 100%;
    margin: 40px 0 0 0;
  }
}

/* =========================================================
  links
========================================================= */
#links .piece:not(#calendar) .pieceHeader h2 {
  position: relative;
  padding: 7px 15px 2px 22px;
  min-height: 40px;
  background-color: var(--main-color-8);
  font-size: 1.125rem;
}

#links .piece:not(#calendar) .pieceHeader h2::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 0;
  width: 8px;
  height: 24px;
  border-left: 8px solid var(--main-color-4);
}

#links .piece:not(#calendar):not(#todaysEvent) .pieceBody {
  border-style: solid;
  border-width: 0 1px 1px;
  border-color: var(--main-color-8);
}

#links .piece {
  margin-bottom: 30px;
}

#links > * {
  flex-basis: 100%;
}

@media only screen and (max-width: 959px) {
  #links > * {
    max-width: 48%;
  }
}

@media only screen and (max-width: 559px) {
  #links > * {
    max-width: unset;
  }
}
