/* Public article page — external so View Source stays readable */

.art-shell {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem 2rem 5rem;
}

.art-grid {
  display: grid;
  grid-template-columns: minmax(0,1fr) 280px;
  gap: 4rem;
  /* Both columns same height so sidebar sticky has room to float */
  align-items: stretch;
}

.art-grid > article {
  min-width: 0;
}

.art-crumb {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  color: var(--text-main);
  margin-bottom: 1.75rem;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  max-width: 100%;
}

.art-crumb::-webkit-scrollbar {
  display: none;
}

.art-crumb a {
  color: var(--text-main);
  transition: color .15s;
  white-space: nowrap;
  flex-shrink: 0;
}

.art-crumb a:hover {
  color: var(--text-heading);
}

.art-crumb-sep {
  flex-shrink: 0;
  opacity: .45;
  width: 12px;
  height: 12px;
}

.art-crumb-current {
  color: var(--text-heading);
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
  max-width: 12rem;
  overflow: hidden;
  text-overflow: ellipsis;
}

.art-cat {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
}

.art-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(1.65rem,3vw,2.35rem);
  color: var(--text-heading);
  letter-spacing: -0.015em;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.art-meta-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.art-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  font-size: 0.78rem;
  color: var(--text-main);
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.art-meta-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.art-cover {
  position: relative;
  width: 100%;
  border-radius: 1rem;
  overflow: hidden;
  margin-bottom: 2.5rem;
  aspect-ratio: 16/9;
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
}

.art-cover::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg,rgba(255,255,255,.12) 8%,rgba(255,255,255,.62) 18%,rgba(255,255,255,.12) 33%);
  background-size: 200% 100%;
  animation: artShimmer 1.15s linear infinite;
  opacity: .78;
  pointer-events: none;
}

.art-cover.is-loaded::before {
  opacity: 0;
  animation: none;
  transition: opacity .25s ease;
}

.art-cover img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@keyframes artShimmer {
  to {
    background-position-x: -200%;

  }
}

@media(prefers-reduced-motion:reduce) {
  .art-cover::before {
    animation: none;

  }
}

.prose {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-main);
}

.prose h1,.prose h2,.prose h3,.prose h4 {
  font-family: var(--font-heading);
  color: var(--text-heading);
  margin: 1.75em 0 0.6em;
  line-height: 1.2;
}

.prose h2 {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.prose h3 {
  font-size: 1.2rem;
  font-weight: 700;
}

.prose h4 {
  font-size: 1rem;
  font-weight: 700;
}

.prose p {
  margin-bottom: 1.25em;
}

.prose ul,.prose ol {
  padding-left: 1.75rem;
  margin-bottom: 1.25em;
}

.prose li {
  margin-bottom: 0.4em;
}

.prose strong {
  font-weight: 700;
  color: var(--text-heading);
}

.prose em {
  font-style: italic;
}

.prose mark {
  background: linear-gradient(120deg,rgba(245,158,11,.14),rgba(245,158,11,.07));
  color: inherit;
  padding: .04em .16em;
  margin: 0 -.02em;
  border-radius: .2em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  font-weight: inherit;
  box-shadow: inset 0 -.05em 0 rgba(245,158,11,.16);
}

.prose code {
  font-family: monospace;
  font-size: 0.875em;
  background: var(--bg-card);
  padding: 0.2em 0.45em;
  border-radius: 0.3rem;
  color: var(--text-heading);
}

.prose pre {
  background: #1c1917;
  color: #e5e7eb;
  padding: 1.25rem 1.5rem;
  border-radius: 0.875rem;
  overflow-x: auto;
  margin-bottom: 1.5em;
  max-width: 100%;
}

.prose pre code {
  background: none;
  padding: 0;
  color: inherit;
  font-size: 0.875rem;
}

.prose blockquote {
  border-left: 4px solid var(--primary);
  padding: 0.75rem 1.25rem;
  background: var(--bg-card);
  border-radius: 0 0.5rem 0.5rem 0;
  margin: 1.5em 0;
  font-style: italic;
}

.prose blockquote p {
  margin-bottom: 0;
}

.prose a {
  color: var(--primary-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.prose a:hover {
  color: var(--text-heading);
}

.prose hr {
  border: none;
  border-top: 1px solid var(--border-color);
  margin: 2.5em 0;
}

/* Body images: full content width, natural aspect (no letterbox / crop box). */
.prose-img {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 1.5em 0;
  border-radius: 0.75rem;
  overflow: hidden;
  background: transparent;
  position: relative;
  line-height: 0;
}

.prose-img img {
  position: static;
  inset: auto;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0;
  border-radius: 0.75rem;
  display: block;
  object-fit: unset;
  object-position: center;
  background: transparent;
  vertical-align: middle;
}

.prose img {
  max-width: 100%;
  width: 100%;
  height: auto;
  border-radius: 0.75rem;
  margin: 1.5em 0;
  display: block;
  background: transparent;
}

.prose p > img,
.prose p > .prose-img {
  margin-top: 0.25em;
  margin-bottom: 0.25em;
}

.prose p:has(> img:only-child),
.prose p:has(> .prose-img:only-child) {
  margin-bottom: 1.25em;
}

.prose table {
  display: block;
  overflow-x: auto;
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5em;
  font-size: 0.9rem;
}

.prose th {
  background: var(--bg-card);
  font-weight: 700;
  color: var(--text-heading);
  padding: 0.6rem 0.875rem;
  text-align: left;
  border-bottom: 2px solid var(--border-color);
}

.prose td {
  padding: 0.6rem 0.875rem;
  border-bottom: 1px solid var(--border-color);
}

.page-wrapper:has(.art-shell) {
  overflow: visible;
}

article {
  min-width: 0;
}

.art-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  /* Must stretch with the article column — sticky needs a tall containing block */
  align-self: stretch;
  width: 100%;
  min-height: 100%;
}

/* Related / Recent first (scroll away normally) */
.art-sidebar-static {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  flex-shrink: 0;
}

/* TOC + CTAs stick after Related/Recent — same floating behavior as before */
.art-sticky-rail {
  position: sticky;
  top: 5rem;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-height: calc(100vh - 6rem);
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  /* Stay near top of remaining sidebar space while article scrolls */
  align-self: stretch;
  scrollbar-width: thin;
  scrollbar-color: rgba(0,0,0,0.12) transparent;
}

.art-sticky-rail::-webkit-scrollbar {
  width: 5px;
}
.art-sticky-rail::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.14);
  border-radius: 999px;
}

.art-sidebar-card {
  background: var(--bg-card);
  border-radius: 1rem;
  padding: 1.25rem;
  flex-shrink: 0;
}

.art-sidebar-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--text-heading);
  margin-bottom: 0.875rem;
}

.art-related-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border-color);
  text-decoration: none;
}

.art-related-item:last-child {
  border-bottom: none;
}

.art-related-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-heading);
  line-height: 1.3;
  transition: color .15s;
}

.art-related-item:hover .art-related-title {
  color: var(--primary-dark);
}

.art-related-meta {
  font-size: 0.7rem;
  color: var(--text-main);
}

.art-share {
  display: flex;
  gap: .35rem;
  flex-wrap: wrap;
  align-items: center;
}

.art-share-label {
  font-size: .72rem;
  font-weight: 600;
  color: var(--text-main);
  margin-right: .2rem;
}

.art-share-btn {
  display: inline-grid;
  place-items: center;
  width: 2.05rem;
  height: 2.05rem;
  border-radius: 999px;
  text-decoration: none;
  color: #fff;
  border: none;
  cursor: pointer;
  transition: transform .15s,opacity .15s;
  flex-shrink: 0;
  font-family: inherit;
  padding: 0;
}

.art-share-btn:hover {
  opacity: .88;
  transform: translateY(-1px);
}

.art-share-btn svg {
  width: .82rem;
  height: .82rem;
}

.art-share-btn.is-copy {
  background: var(--bg-card);
  color: var(--text-heading);
  border: 1px solid var(--border-color);
}

.art-share-btn.is-x,.art-share-btn.is-threads {
  background: #111;
}

.art-share-btn.is-facebook {
  background: #1877f2;
}

.art-share-btn.is-linkedin {
  background: #0a66c2;
}

.art-share-btn.is-whatsapp {
  background: #25d366;
}

.art-share-btn.is-telegram {
  background: #229ed9;
}

.art-share-btn.is-reddit {
  background: #ff4500;
}

.art-share-btn.is-copied {
  background: #059669;
  color: #fff;
  border-color: #059669;
}

.art-share--compact {
  gap: .24rem;
}

.art-share--compact .art-share-label {
  font-size: .6rem;
  margin-right: .1rem;
}

.art-share--compact .art-share-btn {
  width: 1.65rem;
  height: 1.65rem;
}

.art-share--compact .art-share-btn svg {
  width: .68rem;
  height: .68rem;
}

@media (max-width:768px) {
  .art-meta-bar {
    align-items: flex-start;

  }
  .art-share--compact {
    width: 100%;

  }
}

.art-inline-link {
  margin: 1rem 0;
  padding: .28rem 0 .28rem .65rem;
  background: transparent;
  border: 0;
  border-left: 2px solid rgba(245,158,11,.4);
  border-radius: 0;
  font-size: .9rem;
  line-height: 1.55;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .25rem .4rem;
  color: var(--text-main);
}

.art-inline-link-badge {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--text-main);
  opacity: .7;
  white-space: nowrap;
}

.art-inline-link-badge::after {
  content: ':';
}

.art-inline-link a {
  font-weight: 600;
  color: var(--primary-dark);
  text-decoration: none;
  border-bottom: 1px solid rgba(217,119,6,.25);
  transition: color .15s,border-color .15s;
}

.art-inline-link a:hover {
  color: var(--text-heading);
  border-bottom-color: rgba(28,25,23,.35);
  text-decoration: none;
}

.art-cta-card {
  background: var(--text-heading);
  border-radius: 1rem;
  padding: 1.5rem;
  color: #fff;
}

.art-cta-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.art-cta-sub {
  font-size: 0.78rem;
  opacity: 0.75;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.art-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.65rem 1rem;
  background: var(--primary);
  color: var(--text-heading);
  border-radius: 0.625rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.875rem;
  text-decoration: none;
  transition: opacity .15s;
}

.art-cta-btn:hover {
  opacity: 0.9;
  color: var(--text-heading);
}

/* Services / Jasa / Layanan — same cream card as TOC / Related */
.art-svc-card {
  background: var(--bg-card);
  border-radius: 1rem;
  padding: 1.25rem;
  flex-shrink: 0;
}

.art-svc-kicker {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-heading);
  margin: 0 0 0.5rem;
  line-height: 1.3;
  letter-spacing: 0;
  text-transform: none;
}

.art-svc-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-heading);
  margin: 0 0 0.4rem;
  line-height: 1.25;
}

.art-svc-sub {
  font-size: 0.78rem;
  color: var(--text-main);
  line-height: 1.5;
  margin: 0 0 0.9rem;
}

.art-svc-actions {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.art-svc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
  min-height: 2.35rem;
  padding: 0.55rem 0.85rem;
  border-radius: 0.625rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.8rem;
  text-decoration: none;
  transition: opacity 0.15s, background 0.15s;
}

/* Match product CTA amber primary + dark hire (no loud green card) */
.art-svc-btn-wa {
  background: var(--primary);
  color: var(--text-heading);
}

.art-svc-btn-wa:hover {
  opacity: 0.9;
  color: var(--text-heading);
}

.art-svc-btn-hire {
  background: var(--text-heading);
  color: #fff;
}

.art-svc-btn-hire:hover {
  opacity: 0.92;
  color: #fff;
}

.art-svc-link {
  display: inline-block;
  margin-top: 0.65rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-main);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}

.art-svc-link:hover {
  color: var(--text-heading);
  border-bottom-color: rgba(28, 25, 23, 0.25);
}

.toc-card--mobile {
  display: none;
  margin: 0 0 1.5rem;
}

@media (max-width:768px) {
  .art-grid {
    grid-template-columns: minmax(0,1fr);
    gap: 2rem;

  }
  .art-shell {
    padding: 1.5rem 1.25rem 4rem;

  }
  .art-crumb {
    font-size: 0.68rem;
    gap: 0.22rem;
    margin-bottom: 0.85rem;
    mask-image: linear-gradient(to right,#000 calc(100% - 1.25rem),transparent);
    -webkit-mask-image: linear-gradient(to right,#000 calc(100% - 1.25rem),transparent);

  }
  .art-crumb-sep {
    width: 10px;
    height: 10px;

  }
  .art-crumb-current,.art-crumb-sep-before-current {
    display: none;

  }
  .art-sidebar,.art-sticky-rail,.art-sidebar-static {
    display: contents;

  }
  article,.toc-card,.art-cta-card,.art-svc-card,.art-sidebar-card {
    min-width: 0;

  }
  .toc-card--mobile {
    display: block;

  }
  .toc-card--desktop {
    display: none;

  }
  /* Mobile: services top of rail, then related/recent, product CTA */
  .art-svc-card {
    order: 1;
  }
  .art-sidebar-card {
    order: 2;
  }
  .art-cta-card {
    order: 3;
  }
  .toc-list-scroll {
    max-height: 50vh;

  }
}

.toc-card {
  background: var(--bg-card);
  border-radius: 1rem;
  padding: 1.25rem;
  margin-bottom: 0;
}

.toc-card summary {
  list-style: none;
}

.toc-card summary::-webkit-details-marker {
  display: none;
}

.toc-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--text-heading);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  user-select: none;
}

.toc-card:not([open]) .toc-title {
  margin-bottom: 0;
}

.toc-chevron {
  margin-left: auto;
  flex-shrink: 0;
  transition: transform .25s ease;
}

.toc-card:not([open]) .toc-chevron {
  transform: rotate(-90deg);
}

.toc-list-scroll {
  max-height: min(42vh,calc(100vh - 18rem));
  overflow-y: auto;
  overflow-x: hidden;
  margin-top: 0.25rem;
  padding-right: 0.25rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(0,0,0,0.15) transparent;
}

.toc-list-scroll::-webkit-scrollbar {
  width: 4px;
}

.toc-list-scroll::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.15);
  border-radius: 4px;
}

.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

.toc-item a.active {
  color: var(--text-heading);
  border-left-color: var(--primary);
  font-weight: 600;
}

.toc-item a {
  font-size: 0.8rem;
  color: var(--text-main);
  text-decoration: none;
  display: block;
  padding: 0.2rem 0;
  border-left: 2px solid transparent;
  padding-left: 0.6rem;
  transition: all .15s;
  line-height: 1.4;
}

.toc-item a:hover {
  color: var(--text-heading);
  border-left-color: var(--primary);
}

.toc-item.toc-h2 a {
  padding-left: 0.6rem;
  font-size: 0.8rem;
}

.toc-item.toc-h3 a {
  padding-left: 1.25rem;
  font-size: 0.75rem;
}

.toc-item.toc-h1 a {
  padding-left: 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-heading);
}

.code-block {
  margin: 1.5em 0;
  border-radius: 0.875rem;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.08);
  max-width: 100%;
}

.code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1rem;
  background: #2d2d2d;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.code-lang {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #a1a1aa;
  font-family: monospace;
}

.code-copy {
  font-size: 0.7rem;
  font-weight: 600;
  color: #a1a1aa;
  background: rgba(255,255,255,0.08);
  border: none;
  border-radius: 0.3rem;
  padding: 0.2rem 0.6rem;
  cursor: pointer;
  transition: all .15s;
  font-family: var(--font-sans);
}

.code-copy:hover {
  background: rgba(255,255,255,0.15);
  color: #fff;
}

.code-block pre {
  margin: 0;
  padding: 1.25rem 1.5rem;
  background: #1e1e1e;
  overflow-x: auto;
  border-radius: 0;
}

.prose .code-block pre {
  border-radius: 0;
  background: #1e1e1e;
}

.prose h1 {
  font-size: 1.4rem;
  font-weight: 700;
}

.code-block code {
  font-family: 'JetBrains Mono','Fira Code',monospace;
  font-size: 0.85rem;
  line-height: 1.7;
  background: none;
  padding: 0;
  color: #d4d4d4;
}

.hljs {
  color: #d4d4d4;
}

.hljs-keyword,.hljs-selector-tag,.hljs-built_in {
  color: #569cd6;
}

.hljs-string,.hljs-attr {
  color: #ce9178;
}

.hljs-number,.hljs-literal {
  color: #b5cea8;
}

.hljs-comment {
  color: #6a9955;
  font-style: italic;
}

.hljs-function,.hljs-title {
  color: #dcdcaa;
}

.hljs-class,.hljs-type {
  color: #4ec9b0;
}

.hljs-variable,.hljs-name {
  color: #9cdcfe;
}

.hljs-operator,.hljs-punctuation {
  color: #d4d4d4;
}

.hljs-meta,.hljs-tag {
  color: #569cd6;
}

.hljs-attribute {
  color: #9cdcfe;
}

.hljs-symbol,.hljs-bullet {
  color: #b5cea8;
}

.hljs-section {
  color: #dcdcaa;
  font-weight: bold;
}

.hljs-emphasis {
  font-style: italic;
}

.hljs-strong {
  font-weight: bold;
}

/* Interactive markdown checklists — compact, seamless */
.prose ul:has(> .art-check-item),
.prose ol:has(> .art-check-item) {
  list-style: none;
  margin: 1em 0 1.15em;
  padding: 0.15rem 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.prose li.art-check-item {
  position: relative;
  display: block;
  margin: 0;
  padding: 0.48rem 0.15rem 0.48rem 1.85rem;
  list-style: none;
  border: 0;
  border-bottom: 1px solid var(--border-color);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  line-height: 1.5;
  font-size: 0.95em;
  color: var(--text-main);
  transition: background 0.12s ease, color 0.12s ease;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
}

.prose li.art-check-item:last-child {
  border-bottom: 0;
}

.prose li.art-check-item:hover {
  background: rgba(245, 238, 220, 0.35);
}

.prose li.art-check-item:active {
  background: rgba(245, 238, 220, 0.55);
}

.prose li.art-check-item.is-checked {
  color: #78716c;
  background: transparent;
}

.prose li.art-check-item.is-checked {
  text-decoration: line-through;
  text-decoration-color: rgba(120, 113, 108, 0.45);
  text-decoration-thickness: 1px;
}

.prose li.art-check-item.is-checked .art-check {
  text-decoration: none;
}

.prose li.art-check-item > p {
  margin: 0;
  display: inline;
}

.art-check {
  position: absolute;
  left: 0.05rem;
  top: 0.52rem;
  width: 1.05rem;
  height: 1.05rem;
  cursor: pointer;
  text-decoration: none !important;
}

.art-check-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  z-index: 1;
}

.art-check-box {
  display: grid;
  place-items: center;
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 0.28rem;
  border: 1.5px solid rgba(28, 25, 23, 0.2);
  background: transparent;
  box-shadow: none;
  transition: border-color 0.12s ease, background 0.12s ease;
}

.art-check-box::after {
  content: "";
  width: 0.3rem;
  height: 0.52rem;
  border: solid #fff;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg) scale(0);
  opacity: 0;
  margin-top: -0.08rem;
  transition: transform 0.12s ease, opacity 0.12s ease;
}

.art-check-input:checked + .art-check-box,
.prose li.art-check-item.is-checked .art-check-box {
  background: var(--text-heading, #1c1917);
  border-color: var(--text-heading, #1c1917);
  box-shadow: none;
}

.art-check-input:checked + .art-check-box::after,
.prose li.art-check-item.is-checked .art-check-box::after {
  opacity: 1;
  transform: rotate(45deg) scale(1);
}

.art-check-input:focus-visible + .art-check-box {
  outline: 2px solid var(--primary-dark, #d97706);
  outline-offset: 2px;
}

.prose li.art-check-item:hover .art-check-box {
  border-color: rgba(28, 25, 23, 0.4);
}

@media (prefers-reduced-motion: reduce) {
  .prose li.art-check-item,
  .art-check-box,
  .art-check-box::after {
    transition: none;
  }
}

.art-section {
  margin-top: 2.75rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.art-section-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--text-heading);
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 0 0 1.15rem;
}

.art-faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.art-faq-item {
  border-bottom: 1px solid var(--border-color);
}

.art-faq-item:last-child {
  border-bottom: 0;
}

.art-faq-item summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: .95rem;
  font-weight: 600;
  color: var(--text-heading);
  line-height: 1.4;
  user-select: none;
}

.art-faq-item summary::-webkit-details-marker {
  display: none;
}

.art-faq-item summary:hover {
  color: var(--primary-dark);
}

.art-faq-icon {
  flex-shrink: 0;
  width: 1.4rem;
  height: 1.4rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--bg-card);
  color: var(--text-main);
  font-size: .95rem;
  line-height: 1;
  transition: transform .2s ease,background .15s,color .15s;
}

.art-faq-item[open] .art-faq-icon {
  background: var(--primary);
  color: var(--text-heading);
  transform: rotate(45deg);
}

.art-faq-a {
  padding: 0 0 1.1rem;
  font-size: .92rem;
  line-height: 1.7;
  color: var(--text-main);
}

.art-faq-a p {
  margin: 0 0 .75em;
}

.art-faq-a p:last-child {
  margin-bottom: 0;
}

.art-faq-a ul,.art-faq-a ol {
  padding-left: 1.4rem;
  margin: 0 0 .75em;
}

.art-conclusion .prose>:first-child {
  margin-top: 0;
}

.mermaid-wrap {
  position: relative;
  margin: 1.75em 0;
  padding: .85rem .9rem 2.5rem;
  border-radius: .75rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  overflow: hidden;
  text-align: center;
}

.mermaid-wrap.is-zoomable {
  user-select: none;
  -webkit-user-select: none;
}

/* No inner scrollbar — height follows diagram at 100% */
.mermaid-stage {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 0;
  box-sizing: border-box;
  cursor: default;
}

.mermaid-wrap.is-zoomed .mermaid-stage {
  cursor: grab;
  touch-action: none;
}

.mermaid-stage.is-panning {
  cursor: grabbing;
}

.mermaid-viewport {
  display: block;
  line-height: 0;
  max-width: 100%;
  margin: 0 auto;
  will-change: transform;
}

.mermaid-wrap.is-zoomed .mermaid-viewport {
  max-width: none;
  margin: 0;
}

.mermaid-wrap .mermaid {
  margin: 0;
  background: transparent;
  text-align: center;
  line-height: 0;
}

.mermaid-wrap svg {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

.mermaid-wrap.is-zoomed svg {
  max-width: none;
  margin: 0;
}

.mermaid-zoom {
  position: absolute;
  right: .55rem;
  bottom: .5rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: .2rem;
  padding: .2rem;
  border-radius: .55rem;
  background: rgba(253, 248, 244, 0.92);
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 14px rgba(28, 25, 23, 0.06);
  backdrop-filter: blur(6px);
}

.mermaid-zoom-btn {
  width: 1.7rem;
  height: 1.7rem;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: .4rem;
  background: transparent;
  color: var(--text-heading);
  cursor: pointer;
  padding: 0;
}

.mermaid-zoom-btn:hover {
  background: rgba(28, 25, 23, 0.06);
}

.mermaid-zoom-btn:active {
  background: rgba(28, 25, 23, 0.1);
}

.mermaid-zoom-btn svg {
  width: .9rem;
  height: .9rem;
  display: block;
}

.mermaid-zoom-pct {
  min-width: 2.4rem;
  padding: 0 .3rem 0 .15rem;
  font-size: .68rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--text-main);
  opacity: .75;
  text-align: center;
}

.mermaid-wrap.is-error {
  border-color: #fecaca;
  background: #fef2f2;
  color: #991b1b;
  font-size: .85rem;
  text-align: left;
  padding: 1rem 1.1rem;
}

.mermaid-wrap.is-error .mermaid-stage,
.mermaid-wrap.is-error .mermaid-zoom {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .mermaid-viewport {
    transition: none;
  }
}
