#i18n-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 10px;
}

#header-nav,
#header-nav.header-nav-hidden {
  top: 0 !important;
}

#i18n-nav .i18n-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid rgba(255, 82, 82, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--red-0);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(255, 82, 82, 0.1);
}

#i18n-nav .i18n-link.active {
  background: var(--red-1);
  border-color: var(--red-1);
  color: #fff;
}

#i18n-nav .select-selected {
  min-height: 34px;
  padding: 7px 12px;
  gap: 6px;
  border: 1px solid rgba(255, 82, 82, 0.35);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 4px 14px rgba(255, 82, 82, 0.12);
  color: var(--red-0);
  font-weight: 700;
}

#i18n-nav #nav-language-btn {
  padding: 0;
}

#i18n-nav #selected-lang {
  display: inline-block;
  white-space: nowrap;
  font-size: 14px;
  line-height: 1;
}

#i18n-nav .select-items {
  left: auto;
  right: 0;
  min-width: 128px;
}

@media screen and (max-width: 959px) {
  html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }

  body {
    overflow-x: hidden;
  }

  #header {
    min-height: 48vh;
    max-height: 62vh;
  }

  #header img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  #header-title h1 {
    font-size: clamp(2rem, 10vw, 3.4rem);
    line-height: 1.12;
    padding: 0 18px;
    word-break: break-word;
  }

  #subtitle-wrap {
    padding: 0 18px;
  }

  #subtitle {
    font-size: clamp(1rem, 4.6vw, 1.35rem);
    line-height: 1.5;
    word-break: break-word;
  }

  #content {
    width: 100%;
    box-sizing: border-box;
    padding: 0 12px;
    margin-top: 24px;
  }

  #main {
    width: 100%;
    min-width: 0;
  }

  .article,
  .post-wrapper,
  .post-wrap,
  .widget-wrap {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .article-inner {
    padding: 20px 16px;
  }

  .article-entry {
    font-size: 16px;
    line-height: 1.85;
    overflow-wrap: anywhere;
  }

  .article-entry img,
  .article-entry video,
  .article-entry iframe {
    max-width: 100%;
    height: auto;
  }

  .article-entry table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    white-space: nowrap;
  }

  .post-wrap {
    margin-left: 0;
    margin-right: 0;
  }

  .post-cover {
    min-height: 180px;
  }
}

@media screen and (max-width: 479px) {
  #header-nav {
    justify-content: space-between;
    padding: 0 6px;
  }

  #i18n-nav {
    margin-left: 4px;
    gap: 4px;
  }

  #i18n-nav .i18n-link {
    min-height: 30px;
    padding: 0 7px;
    font-size: 11px;
  }

  #i18n-nav .select-selected {
    min-height: 32px;
    padding: 6px 9px;
  }

  #i18n-nav #selected-lang {
    font-size: 12px;
  }

  #header {
    min-height: 44vh;
  }

  #content {
    padding: 0 10px;
  }

  .article-inner {
    padding: 18px 14px;
  }

  .article-entry {
    font-size: 15.5px;
  }
}
