/* Scoped additions to Aria 1.9.0; keep the upstream stylesheet untouched. */
html.aria-overlay-open { overflow: hidden; }
.aria-icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.aria-icon-button:hover { background: rgba(0, 0, 0, .06); }
.aria-icon-button:focus-visible, #nav-vertical a:focus-visible, #search-text:focus-visible {
  outline: 2px solid #b33251;
  outline-offset: 2px;
}
#nav-btns { display: flex; align-items: center; height: 64px; gap: 2px; }
#nav-btns #nav-menu-btn { display: none; }
#nav-btns .aria-icon-button i, #nav-vertical .aria-icon-button i {
  height: auto;
  line-height: 1;
  margin: 0;
}
#nav-vertical > .close, #search-box > .close { position: absolute; right: 8px; top: 8px; left: auto; }
#nav-vertical .aria-icon-button i, #search-box .close i { font-size: 24px; }
#nav-vertical .nav-vertical-item { padding: 0 16px; margin: 2px 0; }
#nav-vertical .nav-vertical-item > a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 4px 10px;
  box-sizing: border-box;
  font-size: 18px;
  line-height: 1.4;
  white-space: nowrap;
  text-shadow: none;
}
#nav-vertical .nav-vertical-item > a i { flex: 0 0 24px; text-align: center; font-size: 20px; }
#search-box > form { display: flex; align-items: center; gap: 8px; }
#search-box #search-text {
  box-sizing: border-box;
  min-width: 0;
  width: 320px;
  height: 48px;
  padding: 10px 12px;
  font-size: 16px;
  line-height: 1.4;
}
#search-box #search-button { width: 48px; height: 48px; border: 0; }
#search-box #search-button i { font-size: 24px; }
.aria-cover { background: #f0f1f3; }
.aria-cover-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border: 0;
}
.aria-cover.is-fallback { background: #f0f1f3; }
@media (max-width: 960px) {
  #nav-right ul.nav-right-list, #site-avatar { display: none; }
  #nav-menu { display: flex; align-items: center; padding: 0 8px; box-sizing: border-box; }
  #nav-left { min-width: 0; flex: 1 1 auto; }
  #nav-left a { display: flex; min-width: 0; margin: 0; line-height: 1.4; align-items: center; }
  .aria-site-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  #nav-right { flex: 0 0 auto; margin-left: 8px; }
  #nav-btns { margin: 0; }
  #nav-btns #nav-menu-btn { display: inline-flex; }
  #nav-menu.headroom--top { background: rgba(255, 255, 255, .96); }
  #nav-vertical { width: min(300px, calc(100vw - 56px)); background: rgba(250, 250, 250, .98); }
  #nav-vertical #nav-avatar { margin: 48px auto 24px; }
  #nav-vertical #nav-avatar img { width: 80px; height: 80px; }
  #nav-vertical .nav-vertical-sub { margin: 4px 0 8px 34px; }
}
@media (max-width: 799px) {
  #search-box > form { width: calc(100% - 40px); max-width: 420px; min-width: 0; }
  #search-box #search-text { flex: 1 1 auto; width: 100%; }
  #comment-form .h-captcha { display: flex; justify-content: center; }
  #comment-form .h-captcha > iframe { flex: 0 0 auto; }
  #pjax-container.aria-reading #header { height: 176px; min-height: 0; }
  #main article { margin-top: 20px; padding: 18px 16px; border-radius: 8px; }
  .post-title, .card-title { overflow-wrap: anywhere; }
  .post-title { font-size: 22px; line-height: 1.5; margin: 4px auto 14px; }
  .post-meta { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 12px; line-height: 1.6; }
  .post-meta-label { margin: 0; font-size: 13px; }
  .post-content { font-size: 16px; line-height: 1.85; word-break: normal; overflow-wrap: anywhere; }
  .post-content p { padding: 0; text-align: left; line-height: 1.85; margin: 16px 0; }
  .post-content h1, .post-content h2, .post-content h3,
  .post-content h4, .post-content h5, .post-content h6 {
    -webkit-text-stroke: 0;
    text-shadow: none;
    font-weight: 600;
    padding-left: 10px;
    line-height: 1.5;
  }
  .post-content h1, .post-content h2 { font-size: 21px; }
  .post-content h3 { font-size: 18px; }
  .post-content a, .post-title a { text-shadow: none; }
  .post-content blockquote { margin-left: 0; padding: 8px 12px; word-break: normal; }
  .post-content ul, .post-content ol { margin-left: 0; padding-left: 24px; }
  .post-content pre { max-width: 100%; overflow-x: auto; }
  .post-content code { overflow-wrap: normal; word-break: normal; }
  #main .card-thumbnail.aria-cover { height: auto; aspect-ratio: 16 / 9; }
  #main .card-thumbnail.aria-cover > img { position: absolute; inset: 0; }
  #main .card-thumbnail.aria-cover { position: relative; }
}
