/* Scoped layout fixes for Akatsuki's article index and visa detail pages. */
.page-template-page-blog .article.live-writer {
  align-items: stretch;
}

.page-template-page-blog .blog_card {
  height: 100%;
}

.page-template-page-blog .blog_card > a {
  height: 100%;
}

.page-template-page-blog .blog_card .blog_card_txt {
  box-sizing: border-box;
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  padding: 52px 20px 20px;
  padding-top: 52px !important;
}

.page-template-page-blog .blog_card .cate_tag {
  top: 12px;
  left: 12px;
  max-width: calc(100% - 24px);
  overflow: hidden;
  white-space: nowrap !important;
  text-overflow: ellipsis;
}

.page-template-page-blog .blog_card h5,
.page-template-page-blog .blog_card p {
  width: 100%;
  max-width: none;
  overflow-wrap: anywhere;
}

.akatsuki-visa-detail-layout #breadcrumb {
  position: absolute !important;
  top: 0;
  right: 0;
  left: 252px;
  width: auto;
  height: auto;
  min-width: 0;
  padding: 12px clamp(24px, 4vw, 64px) 0;
  align-self: flex-start;
  z-index: 2;
}

.akatsuki-visa-detail-layout #sidebar {
  flex: 0 0 252px;
  width: 252px;
}

.akatsuki-visa-detail-layout article.article {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  max-width: none;
  padding: 58px clamp(24px, 4vw, 64px) 40px;
}

.visa-detail-page {
  --ak-primary: #19448e;
  --ak-heading: #17345f;
  --ak-ink: #2c3948;
  --ak-border: #dce5ef;
  --ak-soft: #f3f7fb;
  width: 100%;
  max-width: 920px;
  margin: 0 auto 36px;
  color: var(--ak-ink);
  font-size: 17px;
  line-height: 1.85;
  overflow-wrap: anywhere;
}

.visa-detail-page,
.visa-detail-page * {
  box-sizing: border-box;
}

.visa-detail-page > .section-inner {
  width: 100%;
  min-width: 0;
}

.visa-detail-page h1 {
  display: block !important;
  margin: 0 0 20px;
  color: var(--ak-heading);
  font-size: clamp(30px, 3.5vw, 42px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: .01em;
  overflow-wrap: anywhere;
}

.visa-detail-page .lede {
  margin: 0 0 30px;
  padding: 18px 20px;
  border-left: 5px solid var(--ak-primary);
  border-radius: 0 12px 12px 0;
  background: linear-gradient(135deg, #eef5fc 0%, #fff 100%);
  color: #34465b;
  font-size: clamp(16px, 1.8vw, 18px);
  box-shadow: 0 4px 16px rgba(25, 68, 142, .05);
}

.visa-detail-page > .section-inner > section {
  margin: 0 0 22px;
  padding: 24px clamp(18px, 3vw, 28px);
  border: 1px solid var(--ak-border);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 6px 22px rgba(25, 68, 142, .06);
}

.visa-detail-page h2 {
  margin: 0 0 16px;
  padding: 0 0 11px;
  border-bottom: 2px solid #e6edf5;
  background: transparent;
  color: var(--ak-heading);
  font-size: clamp(21px, 2.4vw, 27px);
  font-weight: 700;
  line-height: 1.4;
}

.visa-detail-page h2::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 1.05em;
  margin-right: 10px;
  border-radius: 99px;
  background: var(--ak-primary);
  vertical-align: -.08em;
}

.visa-detail-page h3 {
  margin: 22px 0 8px;
  color: #244e80;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.55;
}

.visa-detail-page p {
  margin: 0 0 14px;
}

.visa-detail-page p:last-child {
  margin-bottom: 0;
}

.visa-detail-page ul,
.visa-detail-page ol {
  margin: 10px 0 0;
  padding-left: 1.45em;
}

.visa-detail-page li {
  margin: 0 0 9px;
  padding-left: .2em;
}

.visa-detail-page li:last-child {
  margin-bottom: 0;
}

.visa-detail-page li::marker {
  color: var(--ak-primary);
  font-weight: 700;
}

.visa-detail-page a {
  color: #125b9a;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

.visa-detail-page a:hover,
.visa-detail-page a:focus {
  color: #0d3e70;
}

.visa-detail-page .references {
  background: var(--ak-soft);
}

.visa-detail-page .references ul {
  margin-top: 12px;
  padding: 0;
  list-style: none;
}

.visa-detail-page .references li {
  position: relative;
  margin: 8px 0;
  padding: 0 0 0 22px;
}

.visa-detail-page .references li::before {
  content: "\2197";
  position: absolute;
  left: 0;
  color: var(--ak-primary);
  font-weight: 700;
}

.visa-detail-page .akes-qr-contacts {
  max-width: 100%;
  margin: 30px 0 0;
  overflow: hidden;
  border-radius: 16px;
}

@media (max-width: 834px) {
  .akatsuki-visa-detail-layout #main {
    display: block;
    width: 100%;
  }

  .akatsuki-visa-detail-layout #sidebar {
    display: none !important;
  }

  .akatsuki-visa-detail-layout #breadcrumb {
    position: relative !important;
    inset: auto;
    width: 100%;
    padding: 10px 16px 0;
  }

  .akatsuki-visa-detail-layout article.article {
    display: block;
    width: 100%;
    margin: 0;
    padding: 18px 0 34px;
  }

  .visa-detail-page {
    max-width: none;
    margin-bottom: 24px;
    padding: 0 14px;
    font-size: 15px;
    line-height: 1.8;
  }

  .visa-detail-page h1 {
    margin-bottom: 16px;
    font-size: 27px;
    line-height: 1.35;
  }

  .visa-detail-page .lede {
    margin-bottom: 20px;
    padding: 15px 16px;
    border-left-width: 4px;
  }

  .visa-detail-page > .section-inner > section {
    margin-bottom: 14px;
    padding: 18px 15px;
    border-radius: 12px;
    box-shadow: 0 3px 14px rgba(25, 68, 142, .05);
  }

  .visa-detail-page h2 {
    margin-bottom: 13px;
    padding-bottom: 9px;
    font-size: 20px;
  }

  .visa-detail-page h3 {
    margin-top: 18px;
    font-size: 17px;
  }

  .visa-detail-page ul,
  .visa-detail-page ol {
    padding-left: 1.3em;
  }

  .visa-detail-page .akes-qr-contacts {
    margin-top: 20px;
    border-radius: 12px;
  }
}

@media (max-width: 390px) {
  .visa-detail-page {
    padding-right: 11px;
    padding-left: 11px;
  }

  .visa-detail-page h1 {
    font-size: 25px;
  }

  .visa-detail-page > .section-inner > section {
    padding-right: 13px;
    padding-left: 13px;
  }
}
