.home .post-list .entry-content > h2.entry-title {
  margin: 0.5em 0 0.3em;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
  color: #444;
  font-size: 1.3em;
  line-height: 1.4em;
}

.home .post-list .entry-content > h2.entry-title::before,
.home .post-list .entry-content > h2.entry-title::after {
  display: none !important;
  content: none !important;
  border: 0 !important;
}

.jtx-toc {
  margin: 1.4rem 0 2rem;
  border: 1px solid rgba(42, 31, 23, 0.14);
  border-radius: 12px;
  background: #faf7f3;
}

.jtx-toc summary,
.jtx-products summary,
.jtx-footer-details summary {
  position: relative;
  padding: 0.9rem 2.5rem 0.9rem 1rem;
  color: #292421;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.jtx-toc summary::-webkit-details-marker,
.jtx-products summary::-webkit-details-marker,
.jtx-footer-details summary::-webkit-details-marker {
  display: none;
}

.jtx-toc summary::after,
.jtx-products summary::after,
.jtx-footer-details summary::after {
  position: absolute;
  top: 50%;
  right: 1rem;
  content: "+";
  transform: translateY(-50%);
  color: #d91d2b;
  font-size: 1.25rem;
}

.jtx-toc details[open] summary::after,
.jtx-products[open] summary::after,
.jtx-footer-details[open] summary::after {
  content: "−";
}

.jtx-toc ol {
  margin: 0;
  padding: 0 1.2rem 1rem 2.4rem;
}

.jtx-toc li {
  margin: 0.45rem 0;
  line-height: 1.65;
}

.jtx-toc a {
  color: #5b514a;
  text-decoration: none;
}

.jtx-toc a:hover {
  color: #d91d2b;
  text-decoration: underline;
}

.jtx-related {
  margin-top: 2.2rem;
  padding-top: 1.1rem;
  border-top: 2px solid #d91d2b;
}

.jtx-related__heading {
  margin-bottom: 0.8rem;
}

.jtx-related__heading p {
  margin: 0;
  color: #d91d2b;
  font-family: "Ubuntu Condensed", sans-serif;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.jtx-related__heading h2 {
  margin: 0.15rem 0 0;
  padding: 0;
  border: 0;
  background: none;
  color: #292421;
  font-size: 1.35rem;
}

.jtx-lite-youtube {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 8px;
  background: #111;
}

.jtx-lite-youtube button {
  position: relative;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: #111;
  color: #fff;
  cursor: pointer;
}

.jtx-lite-youtube img,
.jtx-lite-youtube iframe {
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}

.jtx-lite-youtube button > span {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 58px;
  height: 42px;
  place-items: center;
  transform: translate(-50%, -50%);
  border-radius: 10px;
  background: rgba(217, 29, 43, 0.95);
  font-size: 1.15rem;
}

.jtx-lite-youtube button > strong {
  position: absolute;
  right: 0.7rem;
  bottom: 0.6rem;
  padding: 0.25rem 0.45rem;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.75);
  font-size: 0.72rem;
}

.jtx-products {
  margin: 1rem 0;
  overflow: hidden;
  border: 1px solid rgba(42, 31, 23, 0.14);
  border-radius: 10px;
  background: #fff;
}

.jtx-products__body {
  padding: 0 0.75rem 0.8rem;
}

.jtx-products__body .widget {
  margin: 0.65rem 0;
}

.jtx-products__store {
  display: block;
  padding: 0.65rem;
  border-radius: 7px;
  background: #f6f1eb;
  color: #d91d2b;
  font-size: 0.82rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.jtx-toc a:focus-visible,
.jtx-lite-youtube button:focus-visible,
.jtx-products summary:focus-visible,
.jtx-footer-details summary:focus-visible {
  outline: 3px solid #1473e6;
  outline-offset: 3px;
}

@media (max-width: 767px) {
  #custom_header .wrap {
    padding-top: 1.15em !important;
    padding-bottom: 1.15em !important;
  }

  #custom_header .header-eyecatch img {
    max-width: 52% !important;
  }

  #custom_header .en {
    font-size: 1.55em !important;
    line-height: 1.25;
  }

  #custom_header .btn-wrap {
    margin-top: 0.8em !important;
    margin-bottom: 0.8em !important;
  }

  .jtx-footer-details {
    margin-bottom: 0.7rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
  }

  .jtx-footer-details summary {
    color: inherit;
  }

  .jtx-footer-details .widget {
    margin-top: 0;
    padding: 0 1rem 0.8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .jtx-toc *,
  .jtx-related *,
  .jtx-lite-youtube * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

/* Search-first gateway on the home page. */
.jtx-search-gateway {
  box-sizing: border-box;
  margin: 0 0 1.4rem;
  padding: clamp(1.15rem, 3vw, 1.8rem);
  border: 1px solid #e3d9cf;
  border-radius: 14px;
  background: linear-gradient(145deg, #fff, #fbf8f3);
  box-shadow: 0 5px 18px rgba(48, 34, 24, 0.08);
  color: #292421;
}

.jtx-search-gateway *,
.jtx-article-paths *,
.jtx-mobile-nav * {
  box-sizing: border-box;
}

.jtx-search-gateway__eyebrow,
.jtx-article-paths__eyebrow,
.jtx-sidebar-explore > p {
  margin: 0 0 0.25rem;
  color: #c9232d;
  font-family: "Ubuntu Condensed", sans-serif;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.jtx-search-gateway h2,
.jtx-search-gateway__copy h2,
.jtx-article-paths h2,
.jtx-sidebar-explore h2 {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  color: #292421;
  line-height: 1.4;
}

.jtx-search-gateway h2::before,
.jtx-search-gateway h2::after,
.jtx-article-paths h2::before,
.jtx-article-paths h2::after,
.jtx-sidebar-explore h2::before,
.jtx-sidebar-explore h2::after {
  display: none !important;
  content: none !important;
}

.jtx-search-gateway__copy > p:last-child {
  margin: 0.45rem 0 1rem;
  color: #6f665f;
}

.jtx-search-gateway__form > label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.84rem;
  font-weight: 700;
}

.jtx-search-gateway__form > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.55rem;
}

.jtx-search-gateway__form input {
  width: 100%;
  min-height: 48px;
  margin: 0;
  padding: 0.7rem 0.9rem;
  border: 1px solid #d8cec4;
  border-radius: 9px;
  background: #fff;
  color: #292421;
  font: inherit;
}

.jtx-search-gateway__form button {
  min-height: 48px;
  padding: 0.7rem 1.15rem;
  border: 1px solid #c9232d;
  border-radius: 9px;
  background: #c9232d;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.jtx-search-gateway__suggestions,
.jtx-search-gateway__routes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.75rem;
}

.jtx-search-gateway__suggestions a,
.jtx-search-gateway__routes a {
  padding: 0.38rem 0.7rem;
  border: 1px solid #e7c5c8;
  border-radius: 999px;
  background: #fff4f4;
  color: #9f1821;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
}

.jtx-search-gateway__routes {
  padding-top: 0.65rem;
  border-top: 1px solid #ece3db;
}

/* Simplified primary navigation while retaining the original links as a no-JS fallback. */
.jtx-nav-enhanced .jtx-nav-original {
  display: none !important;
}

#g_nav > .searchform {
  display: none !important;
}

.jtx-compact-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  min-height: 48px;
}

.jtx-compact-nav > a,
.jtx-nav-more > summary {
  display: flex;
  min-height: 44px;
  align-items: center;
  padding: 0.55rem 0.75rem;
  color: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  list-style: none;
}

.jtx-nav-more {
  position: relative;
}

.jtx-nav-more > summary::-webkit-details-marker {
  display: none;
}

.jtx-nav-more > summary::after {
  margin-left: 0.35rem;
  content: "▾";
  font-size: 0.75rem;
}

.jtx-nav-more__links {
  position: absolute;
  z-index: 1000;
  top: calc(100% - 2px);
  right: 0;
  display: grid;
  min-width: 220px;
  padding: 0.45rem;
  border: 1px solid #e3d9cf;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(48, 34, 24, 0.16);
}

.jtx-nav-more__links a {
  padding: 0.65rem 0.75rem;
  border-radius: 7px;
  color: #292421;
  text-decoration: none;
}

.jtx-nav-more__links a:hover,
.jtx-compact-nav > a:hover {
  background: #fff4f4;
  color: #9f1821;
}

@media (min-width: 768px) {
  .jtx-compact-nav {
    flex-wrap: nowrap;
    gap: 0.05rem;
  }

  .jtx-compact-nav > a,
  .jtx-nav-more > summary {
    flex: 0 0 auto;
    padding: 0.55rem 0.5rem;
    font-size: 0.875rem;
    line-height: 1.3;
    white-space: nowrap;
    word-break: keep-all;
  }
}

/* Focused discovery/search pages. */
.jtx-focus-hub #sidebar1 {
  display: none !important;
}

.jtx-focus-hub #main {
  float: none !important;
  width: 100% !important;
  max-width: none !important;
}

.jtx-focus-hub .jtx-topic-index__grid,
.jtx-focus-hub .jtx-start__grid,
.jtx-focus-hub .jtx-post-finder__grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Article continuation paths and recently viewed items. */
.jtx-article-paths {
  margin: 2.2rem 0 1.5rem;
  padding: 1.15rem;
  border: 1px solid #e3d9cf;
  border-top: 3px solid #c9232d;
  border-radius: 12px;
  background: #fbf8f3;
}

.single-post #main .jtx-article-paths h2 {
  padding: 0.55rem 0.8rem !important;
  border-radius: 6px;
  background: #ce2026 !important;
  color: #fff !important;
  line-height: 1.4;
}

.jtx-article-paths__primary,
.jtx-article-paths__chronology {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  margin-top: 0.9rem;
}

.jtx-article-paths__primary a,
.jtx-article-paths__chronology a {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.85rem;
  border: 1px solid #e3d9cf;
  border-radius: 9px;
  background: #fff;
  color: #292421;
  text-decoration: none;
}

.jtx-article-paths__primary a:hover,
.jtx-article-paths__chronology a:hover {
  border-color: #e7c5c8;
  box-shadow: 0 7px 18px rgba(48, 34, 24, 0.1);
}

.jtx-article-paths__primary span,
.jtx-article-paths__chronology span {
  color: #c9232d;
  font-size: 0.78rem;
  font-weight: 700;
}

.jtx-article-paths__chronology strong {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 0.86rem;
  line-height: 1.55;
}

.jtx-recent {
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid #e3d9cf;
}

.jtx-recent h3 {
  margin: 0 0 0.65rem;
  color: #292421;
  font-size: 1rem;
}

.jtx-recent > div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
}

.jtx-recent a {
  display: grid;
  min-width: 0;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 0.55rem;
  align-items: center;
  padding: 0.45rem;
  border: 1px solid #e3d9cf;
  border-radius: 8px;
  background: #fff;
  color: #292421;
  font-size: 0.78rem;
  line-height: 1.45;
  text-decoration: none;
}

.jtx-recent img {
  width: 64px;
  height: 48px;
  border-radius: 5px;
  object-fit: cover;
}

.jtx-sidebar-duplicate {
  display: none !important;
}

.jtx-sidebar-explore {
  margin-bottom: 1.2rem;
  padding: 1rem;
  border: 1px solid #e3d9cf;
  border-radius: 12px;
  background: linear-gradient(145deg, #fff, #fbf8f3);
  box-shadow: 0 5px 18px rgba(48, 34, 24, 0.08);
}

.jtx-sidebar-explore h2 {
  margin-bottom: 0.65rem;
  font-size: 1.15rem;
}

.jtx-sidebar-explore a {
  display: block;
  margin-top: 0.45rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid #e3d9cf;
  border-radius: 7px;
  background: #fff;
  color: #9f1821;
  font-weight: 700;
  text-decoration: none;
}

.jtx-mobile-nav {
  display: none;
}

@keyframes jtx-latest-badge-pop {
  0% {
    opacity: 0;
    transform: scale(0.55);
  }
  65% {
    opacity: 1;
    transform: scale(1.12);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.jtx-chat-fab {
  position: fixed;
  z-index: 9998;
  right: max(18px, env(safe-area-inset-right));
  bottom: 22px;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: #9f1821;
  font-weight: 700;
  text-decoration: none;
  transition: transform 180ms ease;
}

.jtx-chat-fab span {
  padding: 0.65rem 0.85rem;
  border: 1px solid #e7c5c8;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 8px 24px rgba(48, 34, 24, 0.16);
  color: #9f1821;
  font-size: 0.84rem;
  line-height: 1.2;
  white-space: nowrap;
}

.jtx-chat-fab img {
  display: block;
  width: 72px;
  height: 72px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 10px 28px rgba(48, 34, 24, 0.24);
  object-fit: cover;
}

.jtx-chat-fab:hover {
  transform: translateY(-3px);
  color: #7e1219;
}

.jtx-chat-fab:focus-visible {
  outline: 3px solid #1473e6;
  outline-offset: 4px;
  border-radius: 999px;
}

.jtx-search-gateway a:focus-visible,
.jtx-search-gateway input:focus-visible,
.jtx-search-gateway button:focus-visible,
.jtx-compact-nav a:focus-visible,
.jtx-nav-more summary:focus-visible,
.jtx-article-paths a:focus-visible,
.jtx-mobile-nav a:focus-visible,
.jtx-sidebar-explore a:focus-visible {
  outline: 3px solid #1473e6;
  outline-offset: 3px;
}

@media (max-width: 960px) {
  .jtx-focus-hub .jtx-topic-index__grid,
  .jtx-focus-hub .jtx-start__grid,
  .jtx-focus-hub .jtx-post-finder__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  #page-top {
    display: none !important;
  }

  .jtx-has-mobile-nav {
    padding-bottom: calc(68px + env(safe-area-inset-bottom));
  }

  .jtx-mobile-nav {
    position: fixed;
    z-index: 9999;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    padding: 0.35rem max(0.35rem, env(safe-area-inset-right)) calc(0.35rem + env(safe-area-inset-bottom)) max(0.35rem, env(safe-area-inset-left));
    border-top: 1px solid #e3d9cf;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 -8px 24px rgba(48, 34, 24, 0.12);
    backdrop-filter: blur(10px);
  }

  .jtx-mobile-nav a {
    display: flex;
    min-width: 0;
    min-height: 56px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.1rem;
    border-radius: 8px;
    color: #292421;
    text-decoration: none;
  }

  .jtx-mobile-nav a:active {
    background: #fff4f4;
  }

  .jtx-mobile-nav span {
    display: flex;
    width: 24px;
    height: 24px;
    align-items: center;
    justify-content: center;
    color: #c9232d;
    line-height: 1;
  }

  .jtx-mobile-nav .jtx-mobile-nav__icon {
    position: relative;
  }

  .jtx-mobile-nav__latest .jtx-mobile-nav__icon {
    color: #b81722;
  }

  .jtx-mobile-nav .jtx-mobile-nav__badge {
    position: absolute;
    top: -7px;
    right: -13px;
    display: inline-flex;
    width: auto;
    min-width: 18px;
    height: 18px;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    border: 2px solid #fff;
    border-radius: 999px;
    background: #e51f2b;
    box-shadow: 0 2px 6px rgba(116, 9, 17, 0.3);
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.02em;
    pointer-events: none;
  }

  .jtx-mobile-nav .jtx-mobile-nav__badge[hidden] {
    display: none;
  }

  .jtx-mobile-nav__latest.is-unread .jtx-mobile-nav__badge {
    animation: jtx-latest-badge-pop 520ms ease-out both;
  }

  .jtx-mobile-nav svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .jtx-mobile-nav strong {
    overflow: hidden;
    font-size: 0.62rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .jtx-chat-fab {
    right: max(12px, env(safe-area-inset-right));
    bottom: calc(76px + env(safe-area-inset-bottom));
  }

  .jtx-chat-fab span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .jtx-chat-fab img {
    width: 62px;
    height: 62px;
  }

  .jtx-focus-hub .jtx-topic-index__card,
  .jtx-focus-hub .jtx-start__card {
    display: grid;
    min-height: 0;
    grid-template-columns: 64px minmax(0, 1fr);
    grid-template-rows: 1fr;
    align-items: stretch;
    gap: 8px;
    padding: 8px;
  }

  .jtx-focus-hub .jtx-topic-index__media,
  .jtx-focus-hub .jtx-start__media {
    width: 64px;
    height: 64px;
    aspect-ratio: auto;
    border-radius: 8px;
  }

  .jtx-focus-hub .jtx-topic-index__body,
  .jtx-focus-hub .jtx-start__body {
    justify-content: center;
    gap: 0.2rem;
    padding: 0.1rem 0.2rem;
  }

  .jtx-focus-hub .jtx-topic-index__body strong,
  .jtx-focus-hub .jtx-start__card strong {
    font-size: 0.86rem;
    line-height: 1.4;
  }

  .jtx-focus-hub .jtx-topic-index__body > span,
  .jtx-focus-hub .jtx-start__description {
    display: -webkit-box;
    overflow: hidden;
    margin-top: 0;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    color: #64748b;
    font-size: 0.72rem;
    line-height: 1.45;
  }

  .jtx-focus-hub .jtx-topic-index__body em,
  .jtx-focus-hub .jtx-start__card em {
    display: none;
  }

  .jtx-compact-nav {
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    padding: 0.7rem;
  }

  .jtx-compact-nav > a,
  .jtx-nav-more > summary {
    justify-content: flex-start;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  }

  .jtx-nav-more__links {
    position: static;
    min-width: 0;
    border: 0;
    box-shadow: none;
  }

  .jtx-search-gateway__form > div,
  .jtx-article-paths__primary,
  .jtx-article-paths__chronology,
  .jtx-recent > div,
  .jtx-focus-hub .jtx-topic-index__grid,
  .jtx-focus-hub .jtx-start__grid,
  .jtx-focus-hub .jtx-post-finder__grid {
    grid-template-columns: 1fr;
  }

  .jtx-recent a {
    grid-template-columns: 72px minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .jtx-chat-fab,
  .jtx-mobile-nav__latest.is-unread .jtx-mobile-nav__badge {
    animation: none;
    transition: none;
  }
}
