/* Editorial styles adapted from the blog and show-post bundles in archive snapshot. */

:where(.juman-import) .blog-section {
  padding-block: 3.5rem 5rem;
  background: var(--color-surface-warm);
}

:where(.juman-import) .blog-card-modern {
  background: var(--color-surface);
  border-radius: 20px;
  border: 1px solid color-mix(in srgb, var(--color-text) 8%, transparent);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  height: 100%;
  display: flex;
  flex-direction: column;
}

:where(.juman-import) .blog-card-modern:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-primary);
  border-color: color-mix(in srgb, var(--color-primary) 30.1961%, transparent);
}

:where(.juman-import) .blog-card-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--color-text);
}

:where(.juman-import) .blog-card-img-wrap :is(img, .juman-branded-image) {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

:where(.juman-import) .blog-card-modern:hover .blog-card-img-wrap :is(img, .juman-branded-image) {
  transform: scale(1.06);
}

:where(.juman-import) .blog-card-img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    transparent 55%,
    color-mix(in srgb, var(--color-text) 42%, transparent)
  );
  opacity: 0.35;
  transition: opacity 0.35s ease;
}

:where(.juman-import) .blog-card-modern:hover .blog-card-img-wrap::after {
  opacity: 0.5;
}

:where(.juman-import) .blog-card-category-badge {
  position: absolute;
  top: 14px;
  inset-inline-start: 14px;
  z-index: 2;
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--color-primary-dark) 94%, transparent),
    color-mix(in srgb, var(--color-primary) 90%, transparent)
  );
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--color-text-on-primary);
  font-size: 0.75rem;
  font-weight: 600;
  padding-block: 5px;
  padding-inline: 12px;
  border-radius: 50px;
  border: 1px solid color-mix(in srgb, var(--color-text-on-primary) 28%, transparent);
  text-decoration: none;
  box-shadow: 0 6px 18px color-mix(in srgb, var(--color-primary-dark) 35%, transparent);
  transition: all 0.25s ease;
}

:where(.juman-import) .blog-card-category-badge:is(:hover, :focus-visible) {
  background: var(--color-primary-ink);
  color: var(--color-text-on-primary);
  border-color: var(--color-primary-ink);
}

:where(.juman-import) .blog-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

:where(.juman-import) .blog-card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.78rem;
  color: var(--color-text-muted);
  margin-bottom: 0.85rem;
}

:where(.juman-import) .blog-card-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

:where(.juman-import) .blog-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 0.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

:where(.juman-import) .blog-card-title a {
  color: var(--color-text);
  text-decoration: none;
  transition: color 0.25s ease;
}

:where(.juman-import) .blog-card-modern:hover .blog-card-title a {
  color: var(--color-primary);
}

:where(.juman-import) .blog-card-excerpt {
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--color-text-muted);
  margin-bottom: 1.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

:where(.juman-import) .blog-card-footer {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid color-mix(in srgb, var(--color-text) 6%, transparent);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

:where(.juman-import) .blog-read-link {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.25s ease;
}

:where(.juman-import) .blog-read-link:hover {
  color: var(--color-primary-dark);
  transform: translate(4px);
}

:where(.juman-import) .blog-card-read-btn {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: all 0.25s ease;
}

:where(.juman-import) .blog-card-read-btn::after {
  content: '→';
  font-size: 1rem;
  line-height: 1;
  transition: transform 0.25s ease;
}

:where([dir='rtl']) :where(.juman-import) .blog-card-read-btn::after {
  content: '←';
}

:where(.juman-import) .blog-card-modern:hover .blog-card-read-btn {
  color: var(--color-primary-dark);
}

:where(.juman-import) .blog-card-modern:hover .blog-card-read-btn::after {
  transform: translateX(4px);
}

:where([dir='rtl']) :where(.juman-import) .blog-card-modern:hover .blog-card-read-btn::after {
  transform: translateX(-4px);
}

:where(.juman-import) .blog-list-section-title {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 800;
  color: var(--color-text);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid color-mix(in srgb, var(--color-primary) 22%, transparent);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

:where(.juman-import) .blog-list-section-title::before {
  content: '';
  width: 4px;
  height: 1.35em;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--color-primary), var(--color-primary-dark));
}

:where([dir='rtl']) :where(.juman-import) .blog-read-link:hover {
  transform: translate(-4px);
}

:where(.juman-import) .btn-blog-share {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--color-text) 10%, transparent);
  background: var(--color-surface-warm);
  color: var(--color-text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: all 0.2s ease;
  cursor: pointer;
}

:where(.juman-import) .btn-blog-share:hover {
  background: var(--color-primary);
  color: var(--color-text-on-primary);
  border-color: var(--color-primary);
  transform: scale(1.08);
}

:where(.juman-import) .blog-sidebar-card {
  background: var(--color-surface);
  border-radius: 20px;
  border: 1px solid color-mix(in srgb, var(--color-text) 8%, transparent);
  box-shadow: var(--shadow-soft);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

:where(.juman-import) .blog-sidebar-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.65rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

:where(.juman-import) .blog-sidebar-title:after {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  bottom: 0;
  width: 32px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-light));
  border-radius: 3px;
}

:where(.juman-import) .sidebar-category-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

:where(.juman-import) .sidebar-category-list li {
  margin-bottom: 0.4rem;
}

:where(.juman-import) .sidebar-category-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 0.85rem;
  border-radius: 12px;
  color: var(--color-text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}

:where(.juman-import) .sidebar-category-link:hover {
  background: color-mix(in srgb, var(--color-primary) 7.8431%, transparent);
  color: var(--color-primary);
  transform: translate(3px);
}

:where([dir='rtl']) :where(.juman-import) .sidebar-category-link:hover {
  transform: translate(-3px);
}

:where(.juman-import) .sidebar-category-link.active {
  background: var(--color-primary);
  color: var(--color-text-on-primary) !important;
  font-weight: 600;
}

:where(.juman-import) .sidebar-count-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding-block: 2px;
  padding-inline: 8px;
  border-radius: 50px;
  background: color-mix(in srgb, var(--color-primary) 10.1961%, transparent);
  color: var(--color-primary);
  transition: all 0.2s ease;
}

:where(.juman-import) .sidebar-category-link.active .sidebar-count-badge {
  background: color-mix(in srgb, var(--color-surface) 25.098%, transparent);
  color: var(--color-text-on-primary);
}

:where(.juman-import) .sidebar-tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

:where(.juman-import) .sidebar-tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.78rem;
  font-weight: 500;
  padding-block: 5px;
  padding-inline: 11px;
  border-radius: 50px;
  background: var(--color-surface-alt);
  color: var(--color-text-muted);
  text-decoration: none;
  border: 1px solid color-mix(in srgb, var(--color-text) 5%, transparent);
  transition: all 0.2s ease;
}

:where(.juman-import) .sidebar-tag-pill:hover {
  background: var(--color-primary);
  color: var(--color-text-on-primary);
  border-color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px var(--color-primary-glow);
}

:where(.juman-import) .sidebar-tag-pill.active {
  background: var(--color-primary);
  color: var(--color-text-on-primary);
  border-color: var(--color-primary);
  font-weight: 600;
}

html[data-theme='dark'] :where(.juman-import) .sidebar-cta-box,
html:not([data-theme='light']):has(.juman-import) .sidebar-cta-box {
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
  border-radius: 20px;
  padding: 1.75rem 1.5rem;
  color: var(--color-text-on-primary);
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 30px color-mix(in srgb, var(--color-primary-dark) 28%, transparent);
}

html[data-theme='dark'] :where(.juman-import) .sidebar-cta-box :is(.text-white, .text-white-50, h5, p),
html:not([data-theme='light']):has(.juman-import) .sidebar-cta-box :is(.text-white, .text-white-50, h5, p) {
  color: var(--color-text-on-primary);
}

html[data-theme='dark'] :where(.juman-import) .sidebar-cta-box .text-white-50,
html:not([data-theme='light']):has(.juman-import) .sidebar-cta-box .text-white-50 {
  color: color-mix(in srgb, var(--color-text-on-primary) 82%, transparent);
}

html[data-theme='dark'] :where(.juman-import) .sidebar-cta-box .btn,
html:not([data-theme='light']):has(.juman-import) .sidebar-cta-box .btn {
  color: var(--color-primary-ink);
  background: var(--color-surface);
  border: 0;
  box-shadow: 0 4px 14px color-mix(in srgb, var(--color-text) 12%, transparent);
  font-weight: 700;
}

html[data-theme='dark'] :where(.juman-import) .sidebar-cta-box .btn:is(:hover, :focus-visible),
html:not([data-theme='light']):has(.juman-import) .sidebar-cta-box .btn:is(:hover, :focus-visible) {
  color: var(--color-text-on-primary);
  background: var(--color-primary-ink);
}

html[data-theme='dark'] :where(.juman-import) .sidebar-cta-box:before,
html:not([data-theme='light']):has(.juman-import) .sidebar-cta-box:before {
  content: '';
  position: absolute;
  top: -30px;
  inset-inline-end: -30px;
  width: 100px;
  height: 100px;
  background: radial-gradient(
    circle,
    color-mix(in srgb, var(--color-primary-light) 25%, transparent) 0%,
    transparent 70%
  );
  border-radius: 50%;
}

:where(.juman-import) .blog-card-author-link {
  color: inherit;
  text-decoration: none;
}

:where(.juman-import) .blog-card-author-link:hover {
  color: var(--color-primary);
}

:where(.juman-import) .blog-card-status-badge {
  position: absolute;
  top: 14px;
  inset-inline-end: 14px;
  z-index: 2;
  background: var(--color-warning-bg);
  color: var(--color-text);
  font-size: 0.75rem;
  font-weight: 700;
  padding-block: 5px;
  padding-inline: 12px;
  border-radius: 50px;
  box-shadow: 0 4px 12px color-mix(in srgb, var(--color-text) 25.098%, transparent);
}

:where(.juman-import) .blog-card-featured-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-primary);
  background: color-mix(in srgb, var(--color-primary) 10.1961%, transparent);
  padding-block: 4px;
  padding-inline: 12px;
  border-radius: 50px;
  margin-bottom: 0.85rem;
}

@media (min-width: 768px) {
  :where(.juman-import) .blog-card-featured {
    flex-direction: row;
  }
  :where(.juman-import) .blog-card-featured .blog-card-img-wrap {
    width: 55%;
    aspect-ratio: auto;
    min-height: 320px;
    flex-shrink: 0;
  }
  :where(.juman-import) .blog-card-featured .blog-card-body {
    padding: 2rem;
    justify-content: center;
  }
  :where(.juman-import) .blog-card-featured .blog-card-title {
    font-size: 1.5rem;
  }
}

:where(.juman-import) .blog-search-form {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--color-surface-alt);
  border: 1px solid color-mix(in srgb, var(--color-text) 6%, transparent);
  border-radius: 50px;
  padding-block: 4px;
  padding-inline: 16px 4px;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

:where(.juman-import) .blog-search-form:focus-within {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 14.902%, transparent);
}

:where(.juman-import) .blog-search-form input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 0.88rem;
  color: var(--color-text);
}

:where(.juman-import) .blog-search-form button {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-text-on-primary);
  transition: background 0.2s ease;
}

:where(.juman-import) .blog-search-form button:hover {
  background: var(--color-primary-dark);
}

:where(.juman-import) .blog-category-chips {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  margin-bottom: 1.25rem;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

:where(.juman-import) .blog-category-chips::-webkit-scrollbar {
  display: none;
}

:where(.juman-import) .blog-category-chip {
  flex-shrink: 0;
  font-size: 0.82rem;
  font-weight: 600;
  padding-block: 7px;
  padding-inline: 16px;
  border-radius: 50px;
  background: var(--color-surface);
  color: var(--color-text-muted);
  border: 1px solid color-mix(in srgb, var(--color-text) 10%, transparent);
  text-decoration: none;
  white-space: nowrap;
}

:where(.juman-import) .blog-category-chip:not(.active):is(:hover, :focus-visible) {
  color: var(--color-primary-ink);
  background: color-mix(in srgb, var(--color-primary) 10%, var(--color-surface));
  border-color: color-mix(in srgb, var(--color-primary) 45%, var(--color-border));
}

:where(.juman-import) .blog-category-chip.active {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  border-color: transparent;
  color: var(--color-text-on-primary);
}

:where(.juman-import) .sidebar-article-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

:where(.juman-import) .sidebar-article-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

:where(.juman-import) .sidebar-article-link :is(img, .juman-branded-image) {
  width: 64px;
  height: 48px;
  object-fit: cover;
  border-radius: 10px;
  flex-shrink: 0;
  background: var(--color-text);
}

:where(.juman-import) .sidebar-article-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--color-text);
  transition: color 0.2s ease;
}

:where(.juman-import) .sidebar-article-link:hover .sidebar-article-title {
  color: var(--color-primary);
}

:where(.juman-import) .sidebar-article-date {
  display: block;
  font-size: 0.72rem;
  color: var(--color-text-muted);
  margin-top: 2px;
}

:where(.juman-import) .blog-rss-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-decoration: none;
}

:where(.juman-import) .blog-rss-link:hover {
  color: var(--color-warning-ink);
}

/* Article detail pages */

:where(.juman-import) .article-main-card {
  background: var(--color-surface);
  border-radius: 24px;
  border: 1px solid color-mix(in srgb, var(--color-text) 8%, transparent);
  box-shadow: var(--shadow-soft);
  padding: 2.75rem 2.5rem;
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  :where(.juman-import) .article-main-card {
    padding: 1.5rem 1.25rem;
    border-radius: 18px;
  }
}

:where(.juman-import) .article-featured-frame {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 16px 40px color-mix(in srgb, var(--color-text) 12.1569%, transparent);
  margin-bottom: 2.5rem;
  position: relative;
  background: var(--color-text);
}

:where(.juman-import) .article-featured-frame :is(img, .juman-branded-image) {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  display: block;
}

:where(.juman-import) .article-body {
  font-size: 1.08rem;
  line-height: 1.95;
  color: var(--color-text-muted);
  word-break: break-word;
}

:where(.juman-import) .article-body p {
  margin-bottom: 1.6rem;
}

:where(.juman-import) .article-body h2 {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--color-text);
  margin-top: 2.75rem;
  margin-bottom: 1.15rem;
  position: relative;
  padding-inline-start: 1rem;
  border-inline-start: 4px solid var(--color-primary);
  line-height: 1.4;
}

:where(.juman-import) .article-body h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-text);
  margin-top: 2.25rem;
  margin-bottom: 0.85rem;
  line-height: 1.45;
}

:where(.juman-import) .article-body h4,
:where(.juman-import) .article-body h5,
:where(.juman-import) .article-body h6 {
  font-weight: 700;
  color: var(--color-text);
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
}

:where(.juman-import) .article-body blockquote {
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--color-primary) 5.098%, transparent),
    color-mix(in srgb, var(--color-primary-light) 5.098%, transparent)
  );
  border-inline-start: 4px solid var(--color-primary);
  padding: 1.5rem 1.75rem;
  border-start-end-radius: 16px;
  border-end-end-radius: 16px;
  margin: 2.25rem 0;
  font-style: italic;
  color: var(--color-text);
  font-size: 1.12rem;
  position: relative;
}

:where(.juman-import) .article-body ul,
:where(.juman-import) .article-body ol {
  padding-inline-start: 1.5rem;
  margin-bottom: 1.75rem;
}

:where(.juman-import) .article-body li {
  margin-bottom: 0.6rem;
  line-height: 1.85;
}

:where(.juman-import) .article-body :is(img, .juman-branded-image) {
  border-radius: 16px;
  box-shadow: 0 10px 25px color-mix(in srgb, var(--color-text) 7.8431%, transparent);
  max-width: 100%;
  height: auto;
  margin: 2rem 0;
  display: block;
}

:where(.juman-import) .article-body pre {
  background: color-mix(in srgb, var(--color-text) 80%, var(--color-primary-dark));
  color: var(--color-bg-dark);
  border-radius: 16px;
  padding: 1.35rem 1.5rem;
  overflow-x: auto;
  margin: 2rem 0;
  font-size: 0.92rem;
  border: 1px solid color-mix(in srgb, var(--color-surface) 10%, transparent);
  direction: ltr;
  text-align: start;
}

:where(.juman-import) .article-body code {
  background: color-mix(in srgb, var(--color-primary) 7.8431%, transparent);
  color: var(--color-primary);
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  font-size: 0.88em;
  font-family: var(--font-mono, monospace);
}

:where(.juman-import) .article-body pre code {
  background: transparent;
  color: inherit;
  padding: 0;
  border-radius: 0;
}

:where(.juman-import) .article-body hr {
  margin: 2.5rem 0;
  border-color: color-mix(in srgb, var(--color-text) 7.8431%, transparent);
}

:where(.juman-import) .article-tags-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding-top: 1.5rem;
  margin-top: 2rem;
  border-top: 1px solid color-mix(in srgb, var(--color-text) 8%, transparent);
}

:where(.juman-import) .article-tag-item {
  display: inline-flex;
  align-items: center;
  font-size: 0.82rem;
  font-weight: 500;
  padding-block: 5px;
  padding-inline: 13px;
  border-radius: 50px;
  background: var(--color-surface-alt);
  color: var(--color-text-muted);
  text-decoration: none;
  border: 1px solid color-mix(in srgb, var(--color-text) 6%, transparent);
  transition: all 0.2s ease;
}

:where(.juman-import) .article-tag-item:is(:hover, :focus-visible) {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: var(--color-text-on-primary);
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px var(--color-primary-glow);
}

:where(.juman-import) .article-share-strip {
  background: var(--color-surface-warm);
  border-radius: 16px;
  padding: 1rem 1.25rem;
  border: 1px solid color-mix(in srgb, var(--color-text) 6%, transparent);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

:where(.juman-import) .share-btn-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

:where(.juman-import) .btn-share-social {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-on-primary);
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.25s ease;
}

:where(.juman-import) .btn-share-social:hover {
  transform: translateY(-3px) scale(1.05);
  color: var(--color-text-on-primary);
}

:where(.juman-import) .btn-share-whatsapp {
  background: var(--color-success-ink);
  box-shadow: 0 4px 10px color-mix(in srgb, var(--color-success-ink) 30%, transparent);
}

:where(.juman-import) .btn-share-linkedin {
  background: var(--color-info-ink);
  box-shadow: 0 4px 10px color-mix(in srgb, var(--color-info-ink) 30%, transparent);
}

:where(.juman-import) .btn-share-facebook {
  background: var(--color-info);
  box-shadow: 0 4px 10px color-mix(in srgb, var(--color-info) 30%, transparent);
}

:where(.juman-import) .btn-share-x {
  background: var(--color-inverse);
  box-shadow: 0 4px 10px color-mix(in srgb, var(--color-inverse) 30%, transparent);
}

:where(.juman-import) .btn-share-copy {
  background: var(--color-text-muted);
  box-shadow: 0 4px 10px color-mix(in srgb, var(--color-text-muted) 30.1961%, transparent);
  border: none;
}

:where(.juman-import) .article-author-card {
  background: var(--color-surface);
  border-radius: 20px;
  border: 1px solid color-mix(in srgb, var(--color-text) 8%, transparent);
  box-shadow: var(--shadow-soft);
  padding: 1.75rem 2rem;
  margin-top: 2.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

:where(.juman-import) .author-avatar-img {
  width: 72px;
  height: 72px;
  min-width: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid color-mix(in srgb, var(--color-primary) 15%, transparent);
}

:where(.juman-import) .author-avatar-fallback {
  width: 72px;
  height: 72px;
  min-width: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  color: var(--color-text-on-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
}

:where(.juman-import) .article-cta-card {
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--color-text) 80%, var(--color-primary-dark)),
    color-mix(in srgb, var(--color-text) 80%, var(--color-primary-dark))
  );
  border-radius: 20px;
  padding: 2.25rem 2rem;
  color: var(--color-text-on-primary);
  margin-top: 2.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

:where(.juman-import) .article-body [id^='section-'] {
  scroll-margin-top: 100px;
}

:where(.juman-import) .article-toc {
  background: var(--color-surface);
  border: 1px solid color-mix(in srgb, var(--color-text) 8%, transparent);
  border-radius: 20px;
  padding: 1.25rem 1.5rem;
}

:where(.juman-import) .article-toc-inline {
  background: var(--color-surface-warm);
  margin-bottom: 1.75rem;
}

:where(.juman-import) .article-toc-inline summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--color-text);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
}

:where(.juman-import) .article-toc-inline summary::-webkit-details-marker {
  display: none;
}

:where(.juman-import) .article-toc-inline summary:after {
  content: '+';
  margin-inline-start: auto;
  font-size: 1.2rem;
  color: var(--color-primary);
}

:where(.juman-import) .article-toc-inline[open] summary:after {
  content: '−';
}

:where(.juman-import) .article-toc-inline[open] summary {
  margin-bottom: 0.85rem;
}

:where(.juman-import) .article-toc-sticky {
  position: sticky;
  top: 90px;
  margin-top: 1.5rem;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
  box-shadow: 0 8px 24px color-mix(in srgb, var(--color-text) 3.9216%, transparent);
}

:where(.juman-import) .article-toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

:where(.juman-import) .article-toc-list a {
  display: block;
  padding-block: 0.35rem;
  padding-inline: 0.75rem;
  border-inline-start: 2px solid transparent;
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--color-text-muted);
  text-decoration: none;
  transition:
    color 0.2s ease,
    border-color 0.2s ease;
}

:where(.juman-import) .article-toc-list .article-toc-level-3 a {
  padding-inline-start: 1.6rem;
  font-size: 0.8rem;
}

:where(.juman-import) .article-toc-list a:hover,
:where(.juman-import) .article-toc-list a.active {
  color: var(--color-primary);
  border-inline-start-color: var(--color-primary);
}

:where(.juman-import) .article-toc-list a.active {
  font-weight: 600;
}

:where(.juman-import) .article-adjacent-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
}

:where(.juman-import) .article-adjacent-link {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.1rem 1.25rem;
  background: var(--color-surface);
  border: 1px solid color-mix(in srgb, var(--color-text) 8%, transparent);
  border-radius: 16px;
  text-decoration: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

:where(.juman-import) .article-adjacent-link:hover {
  border-color: color-mix(in srgb, var(--color-primary) 40%, transparent);
  box-shadow: 0 10px 24px color-mix(in srgb, var(--color-primary) 10.1961%, transparent);
}

:where(.juman-import) .article-adjacent-next {
  text-align: end;
  grid-column: 2;
}

:where(.juman-import) .article-adjacent-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-primary);
}

:where(.juman-import) .article-adjacent-title {
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--color-text);
}

@media (max-width: 575.98px) {
  :where(.juman-import) .article-adjacent-nav {
    grid-template-columns: 1fr;
  }
  :where(.juman-import) .article-adjacent-nav > span:empty {
    display: none;
  }
  :where(.juman-import) .article-adjacent-next {
    grid-column: auto;
  }
}

:where(.juman-import) .article-related {
  margin-top: 2.5rem;
}

:where(.juman-import) .article-related-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--color-surface);
  border: 1px solid color-mix(in srgb, var(--color-text) 8%, transparent);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

:where(.juman-import) .article-related-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-primary);
}

:where(.juman-import) .article-related-card :is(img, .juman-branded-image) {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--color-text);
}

:where(.juman-import) .article-related-body {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1rem 1.1rem 1.2rem;
}

:where(.juman-import) .article-related-category {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--color-primary);
}

:where(.juman-import) .article-related-title {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.5;
  color: var(--color-text);
}

:where(.juman-import) .article-related-date {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

:where(.juman-import) .article-code-block {
  position: relative;
}

.juman-import .article-body .article-code-copy {
  position: absolute;
  top: 8px;
  inset-inline-end: 8px;
  font-size: 0.72rem;
  font-weight: 600;
  padding-block: 3px;
  padding-inline: 10px;
  border-radius: 6px;
  border: 1px solid color-mix(in srgb, var(--color-surface) 25%, transparent);
  background: color-mix(in srgb, var(--color-surface) 12.1569%, transparent);
  color: var(--color-on-inverse);
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.juman-import .article-code-block:hover .article-code-copy,
.juman-import .article-body .article-code-copy:focus-visible {
  opacity: 1;
}

@media (hover: none) {
  .juman-import .article-body .article-code-copy {
    opacity: 1;
  }
}

/* The captured rich text has native lists and first-level indentation, without Quill's editor. */
:where(.juman-import) .article-body ol {
  list-style-type: decimal;
}

:where(.juman-import) .article-body ul {
  list-style-type: disc;
}

:where(.juman-import) .article-body li.ql-indent-1 {
  margin-inline-start: 1.5rem;
}

:where(.juman-import) .article-body pre.article-code-block {
  padding-block-start: 2.75rem;
}

.juman-import progress#reading-progress-bar {
  block-size: 3px;
  direction: ltr;
}

.juman-import #reading-progress-bar::-webkit-progress-value {
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-light));
}

.juman-import #reading-progress-bar::-moz-progress-bar {
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-light));
}

@media (prefers-reduced-motion: reduce) {
  :where(.juman-import)
    :is(
      .blog-card-modern,
      .blog-card-img-wrap :is(img, .juman-branded-image),
      .blog-card-category-badge,
      .blog-card-title a,
      .blog-read-link,
      .btn-blog-share,
      .sidebar-category-link,
      .sidebar-count-badge,
      .sidebar-tag-pill,
      .sidebar-article-title,
      .article-tag-item,
      .btn-share-social,
      .article-toc-list a,
      .article-adjacent-link,
      .article-related-card,
      .article-code-copy
    ) {
    transition: none;
  }
}
