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

#page {
  display: flex;
  flex-direction: column;
  clear: both;
  position: relative;
}

@media(min-width:1281px) {
  #page {
    max-width: 1280px;
    margin: auto;
  }
}

#page-content {
  position: relative;
}

@media(min-width:1000px) {
  #page-body {
    display: flex;
    justify-content: space-between;
  }

  #page-content {
    width: 66.184%;
  }

  #page-content:only-child {
    width: 100%;
  }

  #page-filter {
    order: -1;
    margin-right: 1.25%;
    width: 32.54%;
  }
}

#after-top {
  margin: 1.406% 1.406% 0;
  padding: 30px;
  background: #fff;
  display: flex;
  justify-content: stretch;
}

.after-top-block:first-child {
  flex-grow: 1;
}

.after-top-block:not(:first-child) {
  margin-left: 1.406%;
}

@media(orientation:portrait) {
  .after-top-block+.after-top-block {
    display: none;
  }
}

#page-main {
  background: #fff;
}

@media(min-width:651px) {
  #page-main {
    padding: 30px;
  }

  .main__inner-wide {
    margin: 0 -30px;
  }
}

@media print,(min-width:1000px) {
  #page-sidebar {
    margin-left: 1.25%;
    width: 32.54%;
  }
}

@media(min-width:1000px) {
  #page-collapsible {
    order: -1;
    margin-right: 1.25%;
    width: 32.54%;
    background: #fff;
    transition: width .25s,margin-right .25s;
    box-sizing: border-box;
  }

  :checked+#page-collapsible {
    width: 0;
    transition: width .25s .25s,margin-right .25s .25s;
    margin-right: 0;
  }

  #page-collapsible-inner {
    padding: 0 1em;
    opacity: 1;
    transition: opacity .25s .25s;
  }

  :checked+#page-collapsible>#page-collapsible-inner {
    opacity: 0;
    transition: opacity .25s;
  }
}

@media(min-width:651px)and (max-width:999px) {
  #page-collapsible {
    width: 50vw;
  }
}

#page-collapser--uncollapse {
  font-size: 24px;
  color: #a1a1a7;
  user-select: none;
  cursor: pointer;
  position: absolute;
  top: .4em;
  left: .9em;
  transition: opacity .25s;
}

#page-collapser--collapse {
  line-height: 1em;
  padding: .9rem;
  border-bottom: 1px solid #ebebeb;
  font-size: 24px;
  color: #a1a1a7;
  user-select: none;
  cursor: pointer;
  display: block;
}

@media not print {
  #page-body {
    margin: 0 1.406%;
  }

  #page-main {
    margin: 15px 0;
  }

  #breadcrumb {
    background: #fff;
  }
}

#head-top {
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

@media(max-width:650px) {
  #page-main {
    padding: 25px;
  }

  .main__inner-wide {
    margin: 0 -25px;
  }

  #page-collapsible {
    width: 90vw;
  }

  #head-top {
    padding: 0 16px 15px;
  }
}

@media(min-width:651px) {
  #head-top {
    padding: 0 48px 15px;
  }

  #head-middle-left {
    flex-grow: 1;
    width: 100%;
  }
}

@media print and (min-width:651px) {
  #head-top {
    padding: 0 30px 15px;
  }
}

@media print and (max-width:650px) {
  #head-top {
    padding: 0 25px 15px;
  }
}

@media not print,(min-width:651px) {
  #head-top-right {
    text-align: right;
  }
}

@media(min-width:1000px) {
  #page-collapser--uncollapse {
    opacity: 0;
  }

  :checked~#page-content>#page-main>#page-collapser--uncollapse {
    opacity: 1;
  }

  #drawer,#head-top-right-narrow {
    display: none;
  }

  #head-before-middle {
    margin: 1em 0;
  }
}

@media(max-width:999px) {
  :checked~#page {
    overflow: hidden;
    position: fixed;
    top: 0;
    bottom: 0;
    max-width: 100%;
  }

  #page-collapsible {
    position: absolute;
    transform: translateX(-100%);
    transition: transform .25s,box-shadow .25s;
    background: #fff;
    left: 0;
    z-index: 1;
  }

  :checked+#page-collapsible {
    box-shadow: 0 0 1em rgba(0,0,0,.5);
    transform: none;
  }

  #page-collapsible-inner {
    padding: 1em;
  }

  #page-collapser--uncollapse {
    opacity: 1;
  }

  :checked~#page-content>#page-main>#page-collapser--uncollapse {
    opacity: 0;
  }

  #head-top-right-narrow {
    text-align: right;
  }

  #head-before-middle,#head-top-right {
    display: none;
  }

  #drawer {
    position: fixed;
    left: 0;
    right: 0;
    height: 100vh;
    background: #fff;
    transform: translateX(100%);
    transition: transform .5s;
    overflow: auto;
    top: 0;
    z-index: 10;
  }

  :checked~#drawer {
    transform: none;
  }
}

@media screen {
  #ribbon {
    clear: both;
    display: flex;
    justify-content: space-between;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  #ribbon::-webkit-scrollbar {
    display: none;
  }
}

@media screen and (min-width:1000px) {
  #ribbon {
    align-items: center;
  }
}

@media (max-width:1280px) {
  #ribbon {
    overflow: auto;
  }
} 

@media screen and (max-width:999px) {
  #ribbon {
    flex-direction: column;
  }
}

@media screen and (min-width:1000px) {
  #ribbon-left {
    width: 100%;
    flex-shrink: 1;
  }

  #ribbon-right {
    width: 39.7658333333%;
  }
}

@media screen and (max-width:999px) {
  #ribbon-right {
    width: 100%;
  }
}

@media screen and (max-width:650px) {
  #ribbon {
    padding: 0 16px;
  }

  #ribbon-left {
    display: none;
  }

  #ribbon-tab {
    padding: 0 16px 0 2em;
  }
}

@media screen and (min-width:651px)and (max-width:999px) {
  #ribbon-tab {
    padding: 0 44px 0 2em;
  }
}

@media screen {
  #ribbon-tab {
    line-height: 20px;
    font-size: 13px;
    font-weight: 500;
    float: right;
    position: relative;
    overflow: hidden;
  }

  #ribbon-tab::before {
    content: "";
    display: block;
    background: currentColor;
    left: 20px;
    right: 0;
    top: 0;
    bottom: 0;
    position: absolute;
  }

  #ribbon-tab::after {
    content: "";
    position: absolute;
    display: block;
    left: 0;
    top: 0;
    border-style: solid;
    border-width: 0 0 20px 20px;
    border-color: transparent transparent currentColor;
  }

  #ribbon-tab-inner {
    color: #919199;
    position: relative;
  }
}

@media print {
  #page {
    display: block;
  }

  #breadcrumb,#head-top-right,#page-sidebar,#ribbon,#ribbon-tab {
    display: none;
  }
}

#curtain-right {
  display: none;
}

@media(min-width:1281px)and (min-width:1650px) {
  #curtain-right {
    display: block;
    position: absolute;
    left: 100%;
    top: 0;
    margin-left: 1.25%;
    width: 160px;
  }
}

@media(min-width:301px) {
  #meta {
    margin: 1em 0;
  }
}

@media(min-width:301px)and (max-width:650px) {
  #meta {
    text-align: center;
  }
}

@media(max-width:300px) {
  #meta {
    display: none;
  }
}

.meta-item {
  display: inline-block;
}

#drawer-opener {
  display: none;
}

@media(max-width:999px) {
  #drawer-top {
    padding: 2.45em 1em;
    position: relative;
    overflow: hidden;
  }

  #drawer-closer {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-35%);
    width: 26px;
    height: 26px;
    padding: 15px 4vw 15px 15px;
  }

  #drawer-closer:after,#drawer-closer:before {
    content: "";
    position: absolute;
    height: 2px;
    width: 35px;
    background: #fff;
  }

  #drawer-closer:before {
    transform: rotate(43deg);
  }

  #drawer-closer:after {
    transform: rotate(-43deg);
  }

  #drawer-bottom,.drawer-part {
    padding: 1em 2em;
  }

  #drawer-bottom a,#drawer-top a {
    color: #fff;
  }

  .drawer-part+.drawer-part {
    border-top: 1px solid #efefef;
  }
}