.zp-head { padding: clamp(2.4rem, 5vw, 4rem) 0 0; }
.zp-head__in { display: grid; justify-items: start; }
.zp-head__title { max-width: 22ch; font-family: var(--display); font-weight: 600; font-size: clamp(1.65rem, 3vw, 2.55rem); line-height: 1.1; letter-spacing: -.025em; text-wrap: balance; }
.zp-head__lead:not(.is-set) { display: none; }
.zp-head__lead p { max-width: 44rem; margin-top: .85rem; color: #c3c8d1; font-size: clamp(1rem, 1.15vw, 1.08rem); line-height: 1.6; text-wrap: pretty; }
.zp-head__lead a { color: var(--sky); text-decoration: underline; text-underline-offset: 3px; }
.zp-head__meta { display: flex; flex-wrap: wrap; gap: .25rem 0; margin-top: 1rem; color: var(--muted); font-size: .86rem; font-weight: 700; }
.zp-head__meta span + span::before { content: '·'; margin: 0 .6rem; color: var(--line-2); }

.zp-tabs { display: flex; gap: clamp(1.2rem, 2.4vw, 2.2rem); width: 100%; margin-top: clamp(1.6rem, 3vw, 2.4rem); overflow-x: auto; scrollbar-width: none; scroll-padding-inline: 1rem; -webkit-overflow-scrolling: touch; }
.zp-tabs::-webkit-scrollbar { display: none; }
@media (max-width: 1023px) {
    .zp-tabs { width: calc(100% + 2.5rem); margin-inline: -1.25rem; padding-inline: 1.25rem; scroll-padding-inline: 1.25rem; }
    .zp-tabs::after { content: ''; flex: none; width: 1px; }
}
.zp-tab { position: relative; flex: none; padding: .85rem 0 1rem; color: var(--muted); font-weight: 700; font-size: .95rem; white-space: nowrap; transition: color .2s; }
.zp-tab::after { content: ''; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px; background: var(--cyan); transition: right .3s var(--ease); }
.zp-tab:hover, .zp-tab.is-active { color: var(--text); }
.zp-tab:hover::after, .zp-tab.is-active::after { right: 0; }
.zp-tab:focus-visible { outline-offset: -2px; }

.zp-body { padding: clamp(1.6rem, 4vw, 3.2rem) 0 clamp(3rem, 6vw, 5rem); }
.zp-grid { display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 1024px) {
    .zp-grid.has-toc { grid-template-columns: minmax(13rem, 15rem) minmax(0, 1fr); column-gap: clamp(2.5rem, 5vw, 5.5rem); }
    .zp-grid.has-toc .zp-prose { grid-column: 2; grid-row: 1; }
}

.zp-toc { display: none; }
@media (min-width: 1024px) {
    .zp-toc:not([hidden]) { display: block; position: sticky; top: 100px; grid-column: 1; grid-row: 1; padding-top: .2rem; }
}
.zp-toc__label { margin-bottom: .7rem; color: var(--muted); font-size: .8rem; font-weight: 800; }
.zp-toc__list, .zp-sum__list { margin: 0; padding: 0; list-style: none; }
.zp-toc__list { border-left: 1px solid var(--line-2); }
.zp-toc__link { position: relative; display: block; padding: .5rem 0 .5rem 1rem; color: var(--muted); font-weight: 700; font-size: .92rem; line-height: 1.35; transition: color .2s; }
.zp-toc__list .zp-toc__link::before { content: ''; position: absolute; left: -1px; top: .35rem; bottom: .35rem; width: 2px; background: var(--cyan); transform: scaleY(0); transition: transform .3s var(--ease); }
.zp-toc__link:hover { color: var(--text); }
.zp-toc__link.is-active { color: var(--text); }
@media (pointer: coarse) { .zp-toc__link { padding-block: .65rem; } }
.zp-toc__list .zp-toc__link.is-active::before { transform: none; }

.zp-sum { margin-bottom: 1.6rem; border-block: 1px solid var(--line); }
.zp-sum[hidden] { display: none; }
@media (min-width: 1024px) { .zp-sum { display: none; } }
.zp-sum summary { display: flex; align-items: center; gap: .7rem; min-height: 52px; padding: .6rem 0; font-weight: 800; cursor: pointer; list-style: none; -webkit-tap-highlight-color: transparent; }
.zp-sum summary::-webkit-details-marker { display: none; }
.zp-sum summary::marker { content: ''; }
.zp-sum__count { color: var(--muted); font-size: .86rem; font-weight: 700; }
.zp-sum summary svg { margin-left: auto; color: var(--muted); transform: rotate(90deg); transition: transform .3s var(--ease); }
.zp-sum[open] summary svg { transform: rotate(-90deg); }
.zp-sum__list { padding-bottom: .6rem; }
.zp-sum__list .zp-toc__link { padding-left: 0; }

.z-prose.zp-prose { max-width: 43rem; color: #c9ced7; font-size: 1.0625rem; line-height: 1.7; }
.zp-prose p { margin: 0 0 1.15em; text-wrap: pretty; }
.zp-intro { margin-bottom: 1rem; color: #d7dbe2; font-size: 1.12rem; }
.zp-sec { padding-top: clamp(2.6rem, 4.5vw, 3.6rem); }
.zp-sec:first-child { padding-top: 0; }
.z-prose.zp-prose h2 { margin: 0 0 .85rem; font-family: var(--display); font-weight: 600; font-size: clamp(1.3rem, 1.9vw, 1.6rem); line-height: 1.25; letter-spacing: -.015em; color: var(--text); text-wrap: balance; }
.z-prose.zp-prose h3 { margin: 1.9rem 0 .5rem; font-family: var(--font); font-weight: 800; font-size: 1.1rem; line-height: 1.35; color: var(--text); }
.z-prose.zp-prose h2 + h3 { margin-top: 1rem; }
.z-prose.zp-prose ul, .z-prose.zp-prose ol { margin: 0 0 1.15em; padding-left: 1.3rem; }
.z-prose.zp-prose li { padding-left: .3rem; text-wrap: pretty; }
.z-prose.zp-prose li + li { margin-top: .6rem; }
.z-prose.zp-prose ul > li::marker { content: '–  '; color: var(--cyan); font-weight: 700; }
.z-prose.zp-prose ol > li::marker { color: var(--cyan); font-weight: 800; font-variant-numeric: tabular-nums; }
.z-prose.zp-prose strong { font-weight: 800; color: var(--text); }
.z-prose.zp-prose a { color: var(--sky); text-decoration: underline; text-decoration-thickness: from-font; text-underline-offset: .2em; text-decoration-color: rgba(169, 227, 255, .45); overflow-wrap: break-word; transition: color .2s, text-decoration-color .2s; }
.z-prose.zp-prose a:hover { color: #fff; text-decoration-color: currentColor; }
.zp-prose > .zp-sec > :last-child, .zp-prose > :last-child { margin-bottom: 0; }

.zp-end { position: relative; isolation: isolate; overflow: clip; padding: clamp(2.5rem, 5vw, 4rem) 0; border-top: 1px solid var(--line); background: #0b0c0f; }
.zp-end::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background-image: var(--z-tex); background-size: 640px 640px; background-position: right top; opacity: .16; -webkit-mask-image: linear-gradient(90deg, transparent 15%, #000 80%); mask-image: linear-gradient(90deg, transparent 15%, #000 80%); }
.zp-end__in { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; }
@media (min-width: 1024px) {
    .zp-end__in { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(3rem, 6vw, 6rem); align-items: end; }
}
.zp-end__title { font-family: var(--display); font-weight: 600; font-size: clamp(1.25rem, 2vw, 1.7rem); letter-spacing: -.02em; }
.zp-end__lead { max-width: 36rem; margin-top: .6rem; color: var(--muted); text-wrap: pretty; }
.zp-end__acts { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.4rem; }
.zp-end__acts .z-btn svg { width: 20px; height: 20px; }

.zp-next { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: .3rem 1rem; padding-top: 1.1rem; border-top: 1px solid var(--line-2); }
.zp-next__label { grid-column: 1 / -1; color: var(--muted); font-size: .84rem; font-weight: 800; }
.zp-next__title { font-family: var(--display); font-weight: 600; font-size: clamp(1.1rem, 1.7vw, 1.4rem); letter-spacing: -.02em; line-height: 1.2; }
.zp-next svg { width: 22px; height: 22px; margin-bottom: .2rem; color: var(--cyan); transition: transform .3s var(--ease); }
.zp-next::after { content: ''; position: absolute; left: 0; top: -1px; width: 3.5rem; height: 2px; background: var(--cyan); transform-origin: left; transition: transform .4s var(--ease); }
@media (hover: hover) {
    .zp-next:hover::after { transform: scaleX(3); }
    .zp-next:hover svg { transform: translate3d(5px, 0, 0); }
}

@media (max-width: 639px) {
    .z-prose.zp-prose { font-size: 1rem; }
    .zp-end__acts .z-btn { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
    .zp-tab::after, .zp-toc__list .zp-toc__link::before, .zp-sum summary svg, .zp-next::after { transition-duration: .2s; }
    .zp-next:hover svg { transform: translate3d(2px, 0, 0); }
}
