.calendar {
  margin-bottom: 2*$gutter;

  .co_body {
    max-width: 8*$column_width + 7*$gutter;
    @include flexbox(2);
    @include border-gradient;
    border-width: 3px;
  }

  .calendar__widget {
    background: $bright;
    margin-bottom: 2*$gutter;
  }

  @media screen and (min-width: $break_medium) {
    .calendar__widget,
    .calendar__events {
      width: calc(50% - #{$gutter/2});
    }

    .calendar__widget {
      margin-bottom: 0;
    }
  }

  .monthselection {
    padding: $gutter 0;

    .cal_month {
      display: inline-block;
      font-size: 1.5em;
      font-weight: bold;
      float: right;
      vertical-align: middle;
      width: 50%;
    }

    .cal_prev,
    .cal_next {
      display: inline-block;
      text-indent: -999em;
      overflow: hidden;
      vertical-align: middle;
    }

    .cal_prev {
      @include svg_element('sprites-icon_previous');
    }

    .cal_next {
      @include svg_element('sprites-icon_next');
    }
  }

  .cal_monthview {
    width: 100%;
    table-layout: fixed;

    thead {
      @include background-gradient;
    }

    td,
    th {
      text-align: center;
      line-height: 40px;
      padding: 2px;
    }

    th {
      text-transform: uppercase;
    }

    td {
      border-bottom: 1px solid $text;

      span,
      a {
        display: inline-block;
        width: 40px;
        border-radius: 20px;
      }

      &.today {
        span,
        a {
          background: $grey;
        }
      }

      &.event {
        a {
          position: relative;
          text-decoration: none;

          &:after {
            display: inline-block;
            content: "";
            height: 7px;
            width: 7px;
            border-radius: 5px;
            background: $color-accent;

            position: absolute;
            bottom: 4px;
            left: calc(50% - 3px);
          }

          &:hover,
          &:focus,
          &:active {
            @include background-gradient;
          }
        }
      }
    }
  }

  .eventday {
    .event_date {
      @extend %event_date;
    }

    li {
      display: block;
      padding: $gutter 10px;
    }

    dl {
      padding-top: 10px;
      @include definitionlist;
    }
  }
}