/* Zenthic — single blog post layout (loaded only on single posts). */
body.single-post { background: #fff; }
/* The theme sets overflow-x:hidden on html and body, which turns them into scroll
   containers and stops position:sticky; clip hides overflow the same way without that. */
html:has(body.single-post), body.single-post { overflow-x: clip !important; overflow-y: visible !important; }
body.single-post #zenthic_header .custom_breadcurmb { display: none; }

.ztb {
  --ztb-navy: #081c2c;
  --ztb-ink: #2a3a48;
  --ztb-muted: #6b7783;
  --ztb-line: #ebe4da;
  --ztb-orange: #f8723c;
  --ztb-orange-dark: #e2581f;
  --ztb-card: #ffffff;
  color: var(--ztb-ink);
  font-family: 'SF Pro Display', -apple-system, 'Segoe UI', Inter, sans-serif;
}
.ztb *, .ztb *::before, .ztb *::after { box-sizing: border-box; }
.ztb-wrap { max-width: 1200px; margin: 0 auto; padding: 0 40px; }

/* ── Article header ── */
.ztb-head { padding: 190px 0 0; }
.ztb-head-inner { max-width: 880px; }
.ztb-back { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 500; color: var(--ztb-muted); text-decoration: none; margin-bottom: 28px; transition: color .2s; }
.ztb-back:hover { color: var(--ztb-orange); }
.ztb-back svg { transition: transform .2s; }
.ztb-back:hover svg { transform: translateX(-3px); }
.ztb-cat { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ztb-orange); text-decoration: none; margin-bottom: 14px; }
.ztb-title { font-size: 48px; line-height: 1.15; font-weight: 700; color: var(--ztb-navy); margin: 0 0 18px; letter-spacing: -.02em; }
.ztb-sub { font-size: 20px; line-height: 1.55; color: var(--ztb-muted); margin: 0 0 32px; max-width: 760px; }
.ztb-meta { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; border-top: 1px solid var(--ztb-line); border-bottom: 1px solid var(--ztb-line); }
.ztb-author { display: flex; align-items: center; gap: 12px; }
.ztb-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--ztb-navy); display: grid; place-items: center; flex: none; }
.ztb-avatar img { width: 24px; height: auto; }
.ztb-author-name { font-weight: 600; color: var(--ztb-navy); font-size: 16px; line-height: 1.3; }
.ztb-author-role { font-size: 14px; color: var(--ztb-muted); }
.ztb-dates { font-size: 14px; color: var(--ztb-muted); text-align: right; line-height: 1.5; }
.ztb-dates strong { color: var(--ztb-ink); font-weight: 600; }

.ztb-cover { margin: 36px 0 0; }
.ztb-cover img { display: block; width: 100%; height: auto; border-radius: 20px; box-shadow: 0 20px 50px -24px rgba(8, 28, 44, .35); }

/* ── Body grid: 8 + 4 columns ── */
.ztb-grid { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 64px; padding: 56px 0 96px; align-items: start; }
.ztb-aside { position: sticky; top: 164px; display: flex; flex-direction: column; gap: 16px; max-height: calc(100vh - 184px); }
.ztb-aside > * { flex: none; }
.ztb-aside .ztb-toc { flex: 0 1 auto; min-height: 170px; display: flex; flex-direction: column; }

/* ── Content typography ── */
.ztb-content { font-size: 18px; line-height: 1.75; max-width: 720px; }
.ztb-content > *:first-child { margin-top: 0; }
.ztb-content p { margin: 0 0 1.25em; }
.ztb-content a { color: var(--ztb-orange-dark); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.ztb-content a:hover { color: var(--ztb-navy); }
.ztb-content strong { color: var(--ztb-navy); }
.ztb-content h2 { font-size: 32px; line-height: 1.25; font-weight: 700; color: var(--ztb-navy); margin: 2em 0 .6em; letter-spacing: -.01em; scroll-margin-top: 164px; }
.ztb-content h3 { font-size: 22px; line-height: 1.35; font-weight: 700; color: var(--ztb-navy); margin: 1.6em 0 .5em; scroll-margin-top: 164px; }
.ztb-content h2 strong, .ztb-content h3 strong { font-weight: inherit; }
.ztb-content ul, .ztb-content ol { margin: 0 0 1.4em; padding-left: 1.4em; }
.ztb-content li { margin: 0 0 .55em; padding-left: .2em; }
.ztb-content ul li::marker { color: var(--ztb-orange); }
.ztb-content ol li::marker { color: var(--ztb-orange); font-weight: 700; }
.ztb-content figure { margin: 2em 0; }
.ztb-content .wp-block-image img { display: block; width: 100%; height: auto; border-radius: 16px; }
.ztb-content .wp-block-image a { display: block; border-radius: 16px; transition: transform .25s, box-shadow .25s; }
.ztb-content .wp-block-image a:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -20px rgba(8, 28, 44, .45); }

.ztb-content .wp-block-table { overflow-x: auto; border: 1px solid var(--ztb-line); border-radius: 14px; background: var(--ztb-card); }
.ztb-content table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.ztb-content th, .ztb-content td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--ztb-line); vertical-align: top; }
.ztb-content thead th { background: var(--ztb-navy); color: #fff; font-weight: 600; }
.ztb-content tbody tr:last-child td { border-bottom: 0; }
.ztb-content tbody tr:nth-child(even) td { background: #fbf9f6; }

/* Key takeaways box */
.ztb-content .zt-takeaways { background: #fff4ec; border: 1px solid #fbd9c4; border-left: 4px solid var(--ztb-orange); border-radius: 14px; padding: 26px 30px 10px; margin: 2em 0; }
.ztb-content .zt-takeaways h2 { font-size: 20px; margin: 0 0 .7em; }
.ztb-content .zt-takeaways li { font-size: 17px; }

/* ── Sidebar ── */
.ztb-box { background: var(--ztb-card); border: 1px solid var(--ztb-line); border-radius: 16px; padding: 22px 24px; }
.ztb-box-title { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ztb-navy); margin: 0 0 12px; }
.ztb-toc ol { list-style: none; margin: 0; padding: 0; min-height: 0; overflow-y: auto; scrollbar-width: thin; }
.ztb-toc li { margin: 0; }
.ztb-toc a { display: block; padding: 6px 0 6px 14px; border-left: 2px solid var(--ztb-line); font-size: 14.5px; line-height: 1.4; color: var(--ztb-muted); text-decoration: none; transition: color .2s, border-color .2s; }
.ztb-toc a:hover { color: var(--ztb-navy); }
.ztb-toc a.is-active { color: var(--ztb-navy); font-weight: 600; border-left-color: var(--ztb-orange); }
.ztb-progress { height: 3px; background: var(--ztb-line); border-radius: 3px; margin: 0 0 14px; overflow: hidden; }
.ztb-progress span { display: block; height: 100%; width: 0; background: var(--ztb-orange); transition: width .1s linear; }

.ztb-box.ztb-share { padding-top: 16px; padding-bottom: 16px; }
.ztb-share { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ztb-share .ztb-box-title { margin: 0; }
.ztb-share-links { display: flex; gap: 8px; }
.ztb-share-links a, .ztb-share-links button { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--ztb-line); background: #fff; display: grid; place-items: center; color: var(--ztb-navy); cursor: pointer; transition: background .2s, color .2s, border-color .2s; padding: 0; }
.ztb-share-links a:hover, .ztb-share-links button:hover { background: var(--ztb-navy); color: #fff; border-color: var(--ztb-navy); }
.ztb-share-links svg { width: 16px; height: 16px; }
.ztb-share-links button.is-copied { background: var(--ztb-orange); border-color: var(--ztb-orange); color: #fff; }

.ztb-promo { background: var(--ztb-navy); color: #fff; border-radius: 16px; padding: 22px 24px; position: relative; overflow: hidden; }
.ztb-promo::after { content: ""; position: absolute; right: -60px; top: -60px; width: 180px; height: 180px; border-radius: 50%; background: radial-gradient(circle, rgba(248, 114, 60, .45), transparent 70%); }
.ztb-promo-kicker { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ztb-orange); margin: 0 0 8px; }
.ztb-promo h3 { font-size: 20px; line-height: 1.3; margin: 0 0 10px; color: #fff; font-weight: 700; position: relative; z-index: 1; }
.ztb-promo p { font-size: 15px; line-height: 1.55; color: rgba(255, 255, 255, .78); margin: 0 0 18px; position: relative; z-index: 1; }
.ztb-btn { display: inline-flex; align-items: center; gap: 8px; background: var(--ztb-orange); color: #fff !important; font-weight: 600; font-size: 15px; padding: 12px 20px; border-radius: 999px; text-decoration: none !important; position: relative; z-index: 1; transition: background .2s, transform .2s; }
.ztb-btn:hover { background: var(--ztb-orange-dark); transform: translateY(-1px); }

/* Mobile "On this page" (hidden on desktop) */
.ztb-toc-mobile { display: none; }

/* ── Related posts ── */
.ztb-related { border-top: 1px solid var(--ztb-line); padding: 72px 0 110px; }
.ztb-related-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.ztb-related h2 { font-size: 34px; font-weight: 700; color: var(--ztb-navy); margin: 0; letter-spacing: -.01em; }
.ztb-related-all { color: var(--ztb-orange-dark); font-weight: 600; text-decoration: none; font-size: 15px; white-space: nowrap; }
.ztb-related-all:hover { text-decoration: underline; }
.ztb-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.ztb-card { background: var(--ztb-card); border: 1px solid var(--ztb-line); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: transform .25s, box-shadow .25s, border-color .25s; }
.ztb-card:hover { transform: translateY(-4px); box-shadow: 0 22px 44px -26px rgba(8, 28, 44, .45); border-color: #f3c9b0; }
.ztb-card-img { aspect-ratio: 1200 / 645; background: #efe9e1; overflow: hidden; }
.ztb-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.ztb-card:hover .ztb-card-img img { transform: scale(1.03); }
.ztb-card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.ztb-card-cat { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ztb-orange); margin-bottom: 8px; }
.ztb-card-title { font-size: 19px; line-height: 1.35; font-weight: 700; color: var(--ztb-navy); margin: 0 0 10px; }
.ztb-card-excerpt { font-size: 15px; line-height: 1.55; color: var(--ztb-muted); margin: 0 0 18px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ztb-card-meta { margin-top: auto; display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--ztb-muted); padding-top: 14px; border-top: 1px solid var(--ztb-line); }
.ztb-card-meta .ztb-avatar { width: 28px; height: 28px; }
.ztb-card-meta .ztb-avatar img { width: 15px; }
.ztb-card-meta strong { color: var(--ztb-ink); font-weight: 600; }

/* ── Responsive ── */
@media (max-width: 1100px) {
  .ztb-grid { gap: 40px; }
  .ztb-title { font-size: 42px; }
}
@media (max-width: 900px) {
  .ztb-wrap { padding: 0 20px; }
  .ztb-head { padding-top: 120px; }
  .ztb-title { font-size: 34px; }
  .ztb-sub { font-size: 18px; margin-bottom: 24px; }
  .ztb-meta { flex-wrap: wrap; }
  .ztb-dates { text-align: left; }
  .ztb-cover { margin-top: 24px; }
  .ztb-cover img { border-radius: 14px; }
  .ztb-grid { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 28px 0 56px; }
  .ztb-aside { position: static; margin-top: 40px; max-height: none; }
  .ztb-aside .ztb-toc { display: none; }
  .ztb-toc-mobile { display: block; margin-bottom: 32px; }
  .ztb-toc-mobile summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; }
  .ztb-toc-mobile summary::-webkit-details-marker { display: none; }
  .ztb-toc-mobile summary .ztb-box-title { margin: 0; }
  .ztb-toc-mobile summary svg { transition: transform .2s; }
  .ztb-toc-mobile[open] summary svg { transform: rotate(180deg); }
  .ztb-toc-mobile ol { margin-top: 12px; max-height: none; }
  .ztb-content { font-size: 17px; }
  .ztb-content h2 { font-size: 26px; }
  .ztb-content h3 { font-size: 20px; }
  .ztb-content .zt-takeaways { padding: 20px 20px 6px; }
  .ztb-cards { grid-template-columns: minmax(0, 1fr); }
  .ztb-related { padding: 48px 0 72px; }
  .ztb-related h2 { font-size: 26px; }
}
