.hb.hb-article {
    --art-link: #5b12c4;
    --art-line: #e4def7;
}

.hb.hb-article .hb-art-shell {
    max-width: 1128px;
}

.hb.hb-article .hb-hero {
    padding-bottom: clamp(110px, 12vw, 160px);
}

.hb.hb-article .hb-art-trace {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 150px;
    opacity: 0.55;
    pointer-events: none;
}

.hb.hb-article .hb-art-reveal {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: hb-art-draw 2.4s 0.3s ease-out forwards;
}

.hb.hb-article .hb-art-dot {
    transform-box: fill-box;
    transform-origin: center;
    animation: hb-art-pop 0.8s 1.4s var(--hb-spring) both;
}

@keyframes hb-art-draw {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes hb-art-pop {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

.hb.hb-article .hb-art-chip {
    display: inline-block;
    margin: 0 0 20px;
    padding: 6px 16px;
    border-radius: 999px;
    background: #fff;
    color: #4d0fb3;
    font-size: 0.9rem;
    font-weight: 800;
    line-height: 1.4;
}

.hb.hb-article .hb-art-h1 {
    max-width: 21ch;
    font-size: clamp(2.2rem, 4.8vw, 4rem);
    line-height: 1.04;
}

.hb.hb-article .hb-art-shell .article-byline {
    margin: 28px 0 0;
    padding: 0;
    color: var(--hb-soft);
    background: none;
    border: 0;
    animation: hb-rise 0.9s 0.12s var(--hb-spring) both;
}

.hb.hb-article .article-byline p {
    margin: 0;
    padding: 0;
    max-width: none;
    font-size: 1.05rem;
    line-height: 1.5;
    color: var(--hb-ink);
}

.hb.hb-article .article-byline-author {
    font-weight: 700;
}

.hb.hb-article .article-byline a {
    margin: 0;
    color: var(--hb-ink);
    font-weight: 800;
    text-decoration: underline;
    text-decoration-color: var(--hb-violet);
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

.hb.hb-article .article-byline-dates {
    display: block;
    margin-top: 6px;
    text-align: left;
    font-weight: 600;
    color: var(--hb-soft);
}

.hb.hb-article .article-byline-dates span {
    display: inline;
    color: var(--hb-soft);
}

.hb.hb-article .article-byline-dates span + span::before {
    content: '';
    display: inline-block;
    width: 5px;
    height: 5px;
    margin: 0 12px;
    vertical-align: middle;
    border-radius: 50%;
    background: var(--hb-violet);
}

.hb.hb-article .hb-art-main {
    padding-top: clamp(56px, 7vw, 88px);
}

.hb.hb-article .hb-art-short {
    font-size: 1.2rem;
    max-width: 60ch;
    margin-bottom: clamp(40px, 5vw, 64px);
    padding: clamp(24px, 3.4vw, 40px);
    border-radius: 32px;
    background: #fff;
    border: 1px solid var(--art-line);
    box-shadow: var(--hb-card-shadow);
}

.hb.hb-article .hb-art-short-label {
    display: inline-block;
    margin: 0 0 14px;
    padding: 5px 14px;
    border-radius: 999px;
    background: var(--hb-gold);
    color: var(--hb-ink);
    font-size: 0.85rem;
    font-weight: 900;
    letter-spacing: 0.02em;
}

.hb.hb-article .hb-art-short p:not(.hb-art-short-label) {
    margin: 0;
    font-size: clamp(1.3rem, 2.3vw, 1.6rem);
    font-weight: 700;
    line-height: 1.45;
    letter-spacing: -0.015em;
    color: var(--hb-ink);
}

.hb.hb-article .hb-art-short p:not(.hb-art-short-label) + p {
    margin-top: 0.5em;
}

.hb.hb-article .hb-art-short a {
    color: var(--art-link);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.hb.hb-article .hb-art-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    font-size: 1.2rem;
}

.hb.hb-article .hb-art-body {
    grid-column: 1;
    min-width: 0;
    max-width: 58ch;
    font-size: 1.1875rem;
    font-weight: 400;
    line-height: 1.7;
    color: var(--hb-ink);
}

.hb.hb-article .hb-art-body > * {
    margin-top: 0;
    margin-bottom: 0;
}

.hb.hb-article .hb-art-body > * + * {
    margin-top: 1.35em;
}

.hb.hb-article .hb-art-body p {
    max-width: none;
    font-size: inherit;
    line-height: inherit;
    color: var(--hb-ink);
}

.hb.hb-article .hb-art-body p.hb-art-lead {
    font-size: 1.3rem;
    font-weight: 500;
    line-height: 1.6;
}

.hb.hb-article .hb-art-body strong {
    font-weight: 800;
}

.hb.hb-article .hb-art-body h2 {
    position: relative;
    margin-top: 2.6em;
    padding-top: 22px;
    font-size: clamp(1.75rem, 3.2vw, 2.4rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: var(--hb-ink);
    text-wrap: balance;
    scroll-margin-top: calc(var(--hb-nav) + 24px);
}

.hb.hb-article .hb-art-body h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 48px;
    height: 7px;
    border-radius: 7px;
    background: var(--hb-gold);
}

.hb.hb-article .hb-art-body h2 + * {
    margin-top: 0.85em;
}

.hb.hb-article .hb-art-body h3 {
    margin-top: 2.1em;
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.25;
    color: #4d0fb3;
    text-wrap: balance;
}

.hb.hb-article .hb-art-body h3 + * {
    margin-top: 0.7em;
}

.hb.hb-article .hb-art-body a {
    margin: 0;
    color: var(--art-link);
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: var(--hb-violet);
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
    overflow-wrap: anywhere;
}

.hb.hb-article .hb-art-body a:hover {
    background: var(--hb-lav);
}

.hb.hb-article .hb-art-body ul,
.hb.hb-article .hb-art-body ol {
    padding: 0;
    list-style: none;
}

.hb.hb-article .hb-art-body ol {
    counter-reset: art-step;
}

.hb.hb-article .hb-art-body li {
    position: relative;
    margin: 0;
    padding-left: 2.1rem;
}

.hb.hb-article .hb-art-body li + li {
    margin-top: 1rem;
}

.hb.hb-article .hb-art-body ul > li::before {
    content: '';
    position: absolute;
    left: 0.25rem;
    top: 0.62em;
    width: 0.62rem;
    height: 0.62rem;
    border-radius: 50%;
    background: var(--hb-violet);
}

.hb.hb-article .hb-art-body ol > li {
    counter-increment: art-step;
    padding-left: 3rem;
}

.hb.hb-article .hb-art-body ol > li::before {
    content: counter(art-step);
    position: absolute;
    left: 0;
    top: 0.1em;
    display: grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: var(--hb-gold);
    color: var(--hb-ink);
    font-size: 1rem;
    font-weight: 900;
    line-height: 1;
}

.hb.hb-article .hb-art-body blockquote {
    position: relative;
    margin-top: 2.2em;
    margin-bottom: 0.4em;
    margin-left: 0;
    margin-right: 0;
    padding: clamp(24px, 3.4vw, 36px);
    border: 1px solid #d6cdf6;
    border-radius: 28px;
    background: var(--hb-lav);
    color: var(--hb-ink);
    font-size: clamp(1.3rem, 2.4vw, 1.6rem);
    font-weight: 800;
    font-style: normal;
    line-height: 1.38;
    letter-spacing: -0.02em;
    text-wrap: pretty;
}

.hb.hb-article .hb-art-table {
    position: relative;
    margin-top: 1.8em;
    margin-bottom: 0.6em;
    overflow-x: auto;
    border-radius: 24px;
    background: #fff;
    border: 1px solid var(--art-line);
    box-shadow: var(--hb-card-shadow);
    -webkit-overflow-scrolling: touch;
}

.hb.hb-article .hb-art-table:focus-visible {
    outline: 3px solid var(--hb-violet);
    outline-offset: 4px;
}

.hb.hb-article .hb-art-table table {
    width: 100%;
    min-width: 640px;
    margin: 0;
    border-collapse: collapse;
    border-spacing: 0;
    font-size: 1rem;
    line-height: 1.55;
    color: var(--hb-ink);
}

.hb.hb-article .hb-art-table th,
.hb.hb-article .hb-art-table td {
    padding: 16px 20px;
    text-align: left;
    vertical-align: top;
    border: 0;
    border-bottom: 1px solid var(--art-line);
    font-size: 1rem;
    line-height: 1.55;
    color: var(--hb-ink);
    background: none;
}

.hb.hb-article .hb-art-table thead th {
    background: var(--hb-lav);
    color: #2c0a6b;
    font-size: 0.95rem;
    font-weight: 900;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.hb.hb-article .hb-art-table tbody th {
    font-weight: 800;
    min-width: 11rem;
}

.hb.hb-article .hb-art-table tbody td {
    font-weight: 500;
}

.hb.hb-article .hb-art-table tbody tr:last-child th,
.hb.hb-article .hb-art-table tbody tr:last-child td {
    border-bottom: 0;
}

.hb.hb-article .hb-art-table a {
    color: var(--art-link);
    font-weight: 700;
}

.hb.hb-article .hb-toc {
    grid-column: 1;
    grid-row: 1;
    position: static;
    float: none;
    display: block;
    width: auto;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    font-size: 1rem;
}

.hb.hb-article .hb-toc-fold {
    border-radius: 22px;
    background: var(--hb-lav);
    color: var(--hb-ink);
}

.hb.hb-article .hb-toc-fold summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 56px;
    padding: 0 22px;
    list-style: none;
    cursor: pointer;
    font-size: 1.05rem;
    font-weight: 900;
    color: var(--hb-ink);
}

.hb.hb-article .hb-toc-fold summary::-webkit-details-marker {
    display: none;
}

.hb.hb-article .hb-toc-fold summary::after {
    content: '';
    flex: none;
    width: 14px;
    height: 14px;
    background:
        linear-gradient(var(--hb-violet), var(--hb-violet)) center / 100% 3px no-repeat,
        linear-gradient(var(--hb-violet), var(--hb-violet)) center / 3px 100% no-repeat;
    transition: transform 0.3s var(--hb-ease);
}

.hb.hb-article .hb-toc-fold[open] summary::after {
    background: linear-gradient(var(--hb-violet), var(--hb-violet)) center / 100% 3px no-repeat;
}

.hb.hb-article .hb-toc-fold summary:focus-visible {
    outline: 3px solid var(--hb-violet);
    outline-offset: 3px;
    border-radius: 22px;
}

.hb.hb-article .hb-toc-list {
    display: grid;
    gap: 2px;
    padding: 0 12px 14px;
}

.hb.hb-article .hb-toc-list a {
    display: block;
    margin: 0;
    padding: 10px 16px;
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--hb-ink);
    text-decoration: none;
}

.hb.hb-article .hb-toc-list a:hover {
    background: #fff;
}

.hb.hb-article .hb-toc-list a.is-active {
    background: #fff;
    color: var(--hb-ink);
}

.hb.hb-article .hb-art-more .hb-h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

.hb.hb-article .hb-art-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    gap: 20px;
    margin-top: 32px;
}

.hb.hb-article .hb-art-card {
    display: flex;
    align-items: center;
    min-height: 120px;
    margin: 0;
    padding: 24px 28px;
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -0.015em;
    line-height: 1.3;
    text-decoration: none;
    transition: transform 0.4s var(--hb-spring), box-shadow 0.3s ease;
}

.hb.hb-article .hb-art-card:hover {
    transform: translateY(-4px);
}

.hb.hb-article .hb-art-back {
    margin-top: 32px;
}

@media (min-width: 1000px) {
    .hb.hb-article .hb-art-grid {
        grid-template-columns: minmax(0, 58ch) minmax(220px, 280px);
        column-gap: clamp(48px, 6vw, 88px);
        align-items: start;
    }

    .hb.hb-article .hb-art-body {
        grid-column: 1;
        grid-row: 1;
    }

    .hb.hb-article .hb-toc {
        grid-column: 2;
        grid-row: 1;
        width: auto;
        position: sticky;
        top: calc(var(--hb-nav) + 24px);
        max-height: calc(100vh - var(--hb-nav) - 48px);
        overflow-y: auto;
    }

    .hb.hb-article .hb-toc-fold {
        background: none;
        border-radius: 0;
    }

    .hb.hb-article .hb-toc-fold summary {
        min-height: 0;
        padding: 0 16px 12px;
        cursor: default;
        font-size: 0.85rem;
        letter-spacing: 0.04em;
        text-transform: uppercase;
        color: var(--hb-soft);
    }

    .hb.hb-article .hb-toc-fold summary::after {
        display: none;
    }

    .hb.hb-article .hb-toc-list {
        gap: 2px;
        padding: 0;
    }

    .hb.hb-article .hb-toc-list a {
        padding: 9px 16px;
        border-radius: 999px;
        font-size: 0.95rem;
        font-weight: 600;
        color: var(--hb-soft);
    }

    .hb.hb-article .hb-toc-list a:hover {
        background: var(--hb-lav);
        color: var(--hb-ink);
    }

    .hb.hb-article .hb-toc-list a.is-active {
        background: var(--hb-lav);
        color: var(--hb-ink);
        font-weight: 800;
    }
}

@media (max-width: 899px) {
    .hb.hb-article .hb-art-trace {
        height: 110px;
    }

    .hb.hb-article .hb-art-body p.hb-art-lead {
        font-size: 1.25rem;
    }

    .hb.hb-article .hb-art-body h2 {
        margin-top: 2.2em;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hb.hb-article .hb-art-reveal {
        animation: none;
        stroke-dashoffset: 0;
    }

    .hb.hb-article .hb-art-dot {
        animation: none;
    }

    .hb.hb-article .article-byline {
        animation: none;
    }
}
