.walk-toc {
    margin: 8px 0 8px;
    padding: 14px 16px 12px;
    background: var(--paper-2);
    border: 1px solid var(--line);
}

.walk-toc p {
    margin: 0 0 8px;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 560;
    color: var(--teal);
}

.walk-toc ol {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.walk-toc a {
    font-family: "IBM Plex Mono", ui-monospace, monospace;
    font-size: 13px;
    text-decoration: none;
}

.task h3 {
    font-family: Fraunces, Georgia, serif;
    font-size: 20px;
    font-weight: 620;
    margin: 22px 0 8px;
}

.task h2 {
    font-family: Fraunces, Georgia, serif;
    font-optical-sizing: auto;
    font-size: 26px;
    font-weight: 620;
    letter-spacing: -0.03em;
    margin: 36px 0 10px;
}

.walk-section {
    margin: 28px 0 8px;
}

.walk-copy-head {
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 16px;
    margin: 0 0 10px;
}

.task .walk-copy-head h2,
.task .walk-copy-head h3 {
    margin: 0;
    flex: 1 1 12rem;
}

.copy-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
}

.copy-status:empty {
    display: none;
}

.copy-status {
    font-size: 13px;
    color: var(--ink-soft);
}

.task p {
    max-width: 68ch;
}

.formula {
    margin: 0 0 12px;
    font-family: "IBM Plex Mono", ui-monospace, monospace;
    font-size: 14px;
    color: var(--teal);
}

.table-scroll {
    overflow-x: auto;
    margin: 0 0 18px;
}

.htable {
    width: 100%;
    border-collapse: collapse;
    font-family: "IBM Plex Mono", ui-monospace, monospace;
    font-size: 13px;
}

.htable th,
.htable td {
    border-bottom: 1px solid var(--line);
    padding: 6px 8px;
    text-align: left;
    white-space: nowrap;
}

.htable th {
    color: var(--ink-soft);
    font-weight: 500;
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.htable tr.is-test td {
    background: #f6e7c8;
}

.htable caption {
    caption-side: bottom;
    text-align: left;
    padding-top: 6px;
    font-family: Outfit, "Segoe UI", sans-serif;
    font-size: 13px;
    color: var(--ink-soft);
}

.figure {
    margin: 4px 0 16px;
    max-width: 640px;
}

.figure img {
    display: block;
    width: 100%;
    height: auto;
    background: #fff;
    border: 1px solid var(--line);
}

.figure figcaption {
    margin-top: 6px;
    font-size: 13px;
    color: var(--ink-soft);
    max-width: 68ch;
}

.py-block {
    margin: 6px 0 28px;
}

.py-block h3 {
    margin: 0 0 4px;
    font-size: 28px;
    letter-spacing: -0.03em;
}

.py-grid {
    display: grid;
    grid-template-columns: 1.18fr 0.82fr;
    gap: 16px;
    align-items: start;
}

.py-card {
    min-width: 0;
    padding: 12px 10px 10px;
    background: #f3f4f6;
    border-radius: 16px;
}

.py-card h4 {
    margin: 0 0 6px;
    font-family: Fraunces, Georgia, serif;
    font-size: 20px;
    font-weight: 620;
}

.py-card p {
    margin: 0 0 12px;
    font-size: 14.5px;
    max-width: none;
}

.py-code,
.term-out {
    margin: 0;
    font-family: "IBM Plex Mono", ui-monospace, monospace;
    font-size: 12px;
    line-height: 1.55;
    white-space: pre;
    overflow-x: auto;
}

.py-code {
    padding: 2px 2px 6px;
    color: #24312c;
    background: transparent;
    font-size: 11px;
}

.py-k {
    color: #128f78;
}

.py-c {
    color: #8b938c;
}

.py-s {
    color: #17875a;
}

.terminal {
    min-width: 0;
    padding: 12px;
    background: #1c2333;
    border-radius: 16px;
}

.terminal-bar {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 2px 8px 10px;
}

.dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
}

.dot-r {
    background: #ff5f57;
}

.dot-y {
    background: #febc2e;
}

.dot-g {
    background: #28c840;
}

.terminal-name {
    margin-left: 6px;
    color: #d5dbe6;
    font-size: 13px;
}

.term-out {
    padding: 14px 16px;
    background: #ececec;
    color: #1c1c1c;
    border-radius: 8px;
    font-size: 12.5px;
    line-height: 1.5;
}

.term-muted {
    color: #6b7280;
}

.term-ok {
    color: #14915a;
    font-weight: 500;
}

@media (max-width: 860px) {
    .py-grid {
        grid-template-columns: 1fr;
    }
}
