 
.site-head-burger {
  display: none;
}

@media (max-width: 900px) {

   
  .site-head,
  .site-head.is-overlay {
    flex-wrap: wrap;
    row-gap: 14px;
    padding-top: 18px;
    padding-bottom: 18px;
    padding-right: 9px;
  }

   
  .site-head.is-overlay {
    border-bottom: 1px solid transparent;
  }

  .site-head-nav {
    order: 3;
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 12px 20px;
  }

  .site-head-nav-link {
    font-size: 12px;
    --ls: .18em;
    letter-spacing: var(--ls);
  }

   
  html.js .site-head-burger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: var(--r-base);
    background: transparent;
    color: var(--text);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  .site-head.is-overlay .site-head-burger {
    color: #fff;
  }

  .site-head-burger svg {
    width: 22px;
    height: 22px;
  }

  .site-head-burger:focus-visible {
    outline: 1px solid currentColor;
    outline-offset: 6px;
  }

   
  .site-head-burger-close { display: none; }
  .site-head-burger[aria-expanded="true"] .site-head-burger-open { display: none; }
  .site-head-burger[aria-expanded="true"] .site-head-burger-close { display: block; }

   
  html.js .site-head-nav {
    position: fixed;
    inset: 0;
    z-index: 60;
    order: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
     
    justify-content: center;
    justify-content: safe center;
    flex-wrap: nowrap;
    gap: 0;
    width: auto;
    min-width: 0;
    padding: 0 24px;
    overflow-y: auto;
    background: var(--brand);
    visibility: hidden;
    opacity: 0;
    transition: opacity .26s ease, visibility .26s ease;
  }

  html.js .site-head-nav.is-open {
    visibility: visible;
    opacity: 1;
  }

  html.js .site-head-nav-link {
     
    padding: 18px 4px 18px calc(4px + .2em);
    color: rgba(255, 255, 255, .74);
    font-size: 20px;
    --ls: .2em;
    letter-spacing: var(--ls);
    transition: color .2s ease;
    -webkit-tap-highlight-color: transparent;
  }

  html.js .site-head-nav-link:hover,
  html.js .site-head-nav-link.is-active {
    color: #fff;
  }

   
  html.js .site-head-nav-link::after { display: none; }

   
  html.js .site-head .site-head-nav-sub,
  html:not(.js) .site-head .site-head-nav-sub {
    display: none;
  }
  .has-sub .site-head-nav-link::before { display: none; }

   
  html.js .site-head .site-head-nav-caret,
  html:not(.js) .site-head .site-head-nav-caret {
    display: none;
  }
   
  html.js .site-head .has-sub .site-head-nav-link,
  html:not(.js) .site-head .has-sub .site-head-nav-link {
    padding-right: 0;
  }
  html.js .site-head .has-sub .site-head-nav-link::after,
  html:not(.js) .site-head .has-sub .site-head-nav-link::after {
    right: var(--ls);
  }

   
  html.js .site-head.is-nav-open {
    z-index: 70;
    background: transparent;
    border-bottom-color: transparent;
    color: #fff;
  }
  html.js .site-head.is-nav-open .site-head-brand,
  html.js .site-head.is-nav-open .site-head-burger {
    position: relative;
    z-index: 61;
    color: #fff;
  }

   
  html.is-nav-open {
    overflow: hidden;
  }

   
  .home-title {
    font-size: clamp(26px, 7.6vw, 40px);
    letter-spacing: clamp(2px, 1.2vw, 5px);
     
    padding-left: clamp(2px, 1.2vw, 5px);
  }

  .home-sub {
    font-size: 11px;
    letter-spacing: .24em;
    padding-left: .24em;
  }

   
  .home-posts {
     
    top: var(--site-head-h, 92px);
    flex-direction: column;
    overflow: hidden;
  }

   
  .home-stage > .site-head {
    transition: opacity .24s ease,
                transform .38s cubic-bezier(.22, .61, .36, 1),
                background-color .24s ease,
                border-color .24s ease;
  }

  .home-stage[data-slide="1"] > .site-head {
    opacity: 1;
    transform: none;
    pointer-events: auto;
     
    background: var(--card);
    border-bottom: 1px solid var(--line);
    color: var(--text);
  }

   
  .home-stage[data-slide="1"] > .site-head .site-head-brand,
  .home-stage[data-slide="1"] > .site-head .site-head-burger {
    color: var(--text);
  }

  .home-col {
    flex: 1 1 0;
    width: 100%;
    min-height: 0;
    padding: 0 16px 12px;
     
    margin-right: 0;
    margin-bottom: -1px;
    transform: translateX(-100%);
  }

  .home-col:last-child {
    margin-bottom: 0;
  }

  .home-stage[data-slide="1"] .home-col {
    transform: translateX(0);
  }

   
  .home-col-title {
    font-size: 13px;
    min-height: calc(13px * 1.5);
    -webkit-line-clamp: 1;
  }

  .home-col-desc {
    font-size: 11px;
    min-height: calc(11px * 1.7);
    -webkit-line-clamp: 1;
  }

  .home-col-date {
    font-size: 10px;
  }

   
  .home-col-blank {
    align-items: flex-start;
    justify-content: flex-start;
    padding: 14px 16px;
    font-size: 24px;
  }

   
  .home-col:is(:hover, :focus-visible) {
    flex-grow: 1;
  }

  .home-col:hover .home-col-media img {
    transform: none;
  }

   
  .pager-btn { padding: 11px 16px; }
   
  .plain-main .pager { margin-top: 20px; }

   
  .home-copy-link,
  .home-copy-police,
  .home-copy-sep-link,
  .home-copy-sep-police,
  .plain-copy-link,
  .plain-copy-police,
  .plain-copy-sep-link,
  .plain-copy-sep-police {
    display: none;
  }

   
  .article-aside .article-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 26px 0 0;
    padding: 0;
    border: 0;
  }

  .article-aside .article-nav a,
  .article-aside .article-nav > .is-disabled {
    display: inline-flex;
    align-items: center;
     
    padding: 14px 4px;
    border: 0;
    border-radius: 0;
    background: none;
  }

  .article-aside .article-nav > .is-disabled {
    cursor: default;
    opacity: .3;
  }

  .article-aside .article-nav .article-nav-k,
  .article-aside .article-nav .article-nav-t {
    display: none;
  }

  .article-aside .article-nav a::after,
  .article-aside .article-nav > .is-disabled::after {
    content: "";
    flex: none;
    width: 30px;
    height: 12px;
    background: url("/static/img/icon_arrow_r_dark.png") no-repeat center / contain;
  }

   
  .article-aside .article-nav-prev::after {
    transform: scaleX(-1);
  }

   
  .article-aside-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 28px;
    height: 28px;
    margin-left: auto;
    padding: 0;
    border: 0;
    border-radius: var(--r-sm);
    background: transparent;
    color: var(--sub);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  .article-aside-toggle:focus-visible {
    outline: 1px solid var(--brand);
    outline-offset: 2px;
  }

  .article-aside-toggle svg {
    display: block;
    transition: transform .2s ease;
  }

  .article-aside .article-block.is-collapsed .article-related {
    display: none;
  }

  .article-aside .article-block.is-collapsed .article-aside-toggle svg {
    transform: rotate(-90deg);
  }

   
  .toc-rail {
    left: 8px;
    right: 8px;
    bottom: 8px;
    padding: 7px 10px;
  }
  .toc-rail-list { max-height: 52vh; }
  .toc-rail-item a { font-size: 12.5px; }

  .article-body pre {
    margin: 1.1em -6px;
    padding: 12px;
    border-radius: var(--r-base);
    font-size: 12.5px;
  }

   
  .code-block {
    margin: 1.1em -6px;
  }
  .article-body .code-block pre {
    padding: 12px;
  }
  .code-tools {
    position: static;
    justify-content: flex-end;
    padding: 5px 2px 0;
  }

   
  .code-tools .code-lang {
    color: var(--sub);
  }

  .lightbox { padding: 12px; }
  .lightbox-img { max-width: 96vw; max-height: 84vh; }

}

 
@media (max-width: 900px) {
  .page-fx-pane {
    top: auto;
    bottom: auto;
    left: 0;
    right: 0;
    width: auto;
     
    height: 50.5%;
    transform: translateY(-100%);
  }

  .page-fx-pane.is-left {
    top: 0;
  }

  .page-fx-pane.is-right {
    top: auto;
    bottom: 0;
    transform: translateY(100%);
  }

  .page-fx.is-opening .page-fx-pane.is-left {
    animation: fx-open-up .46s cubic-bezier(.22, .61, .36, 1) both;
  }

  .page-fx.is-opening .page-fx-pane.is-right {
    animation: fx-open-down .46s cubic-bezier(.22, .61, .36, 1) both;
  }

   
  .page-fx.is-boot .page-fx-pane.is-left {
    transform: translateY(0);
    animation: fx-open-up .46s cubic-bezier(.22, .61, .36, 1) 1.8s both;
  }

  .page-fx.is-boot .page-fx-pane.is-right {
    transform: translateY(0);
    animation: fx-open-down .46s cubic-bezier(.22, .61, .36, 1) 1.8s both;
  }

  .page-fx.is-closing .page-fx-pane.is-left {
    animation: fx-close-up .34s cubic-bezier(.4, 0, .9, 1) both;
  }

  .page-fx.is-closing .page-fx-pane.is-right {
    animation: fx-close-down .34s cubic-bezier(.4, 0, .9, 1) both;
  }

   
  .page-fx-bar {
    left: 0;
    right: 0;
    top: 50%;
    bottom: auto;
    width: auto;
    height: 2px;
    transform: translateY(-50%);
  }

   
  .page-fx-bar-fill {
    transform: scaleX(var(--fx-p, 0));
  }
}

 
@keyframes fx-open-up {
  from { transform: translateY(0); }
  to   { transform: translateY(-100%); }
}

@keyframes fx-open-down {
  from { transform: translateY(0); }
  to   { transform: translateY(100%); }
}

@keyframes fx-close-up {
  from { transform: translateY(-100%); }
  to   { transform: translateY(0); }
}

@keyframes fx-close-down {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}

 
@media (max-height: 480px) {
  .site-head.is-overlay { padding-top: 12px; padding-bottom: 12px; }
  .home-center { padding-left: 16px; padding-right: 16px; }
  .home-title { font-size: clamp(22px, 4.4vh, 34px); }
  .home-sub { margin-top: 10px; }
  .home-foot { padding-bottom: 12px; }
}
