strong,
b,
th {
    font-weight: 500 !important;
}

.shell {
    width: min(1360px, calc(100vw - 48px));
    margin: 0 auto;
}

.post-layout {
    padding: 36px 0 72px;
}

.toc-panel {
    position: sticky;
    top: 92px;
    align-self: start;
}

.toc-label {
    margin: 0 0 12px;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--text-color);
}

.toc-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.toc-item {
    border-top: 1px solid var(--border-soft);
}

.toc-item:last-child {
    border-bottom: 1px solid var(--border-soft);
}

.toc-item a {
    display: block;
    padding: 10px 0;
    color: var(--secondary-text-color);
    font-size: 1.02rem;
    text-decoration: none;
    transition: color var(--motion-fast) var(--ease-out);
}

.toc-item a:hover {
    color: var(--text-color);
}

.post-page {
    min-width: 0;
    max-width: 1120px;
    margin: 0 auto;
}

.post-section {
    padding: 0 0 40px;
    margin-bottom: 40px;
    border-bottom: 1px solid var(--border-color);
    scroll-margin-top: 92px;
}

.post-section:last-child {
    padding-bottom: 0;
    margin-bottom: 0;
    border-bottom: none;
}

h1 {
    margin: 0 auto 18px;
    width: 100%;
    max-width: none;
    font-size: clamp(2.45rem, 3.6vw, 3.7rem);
    line-height: 1;
    letter-spacing: -0.04em;
    font-weight: 400;
    text-align: center;
}

.article-meta {
    margin: 0 auto 22px;
    color: var(--secondary-text-color);
    text-align: center;
}

.article-authors {
    margin: 0 0 8px;
    font-size: 1.2rem;
}

.article-author-link {
    text-decoration-line: underline;
    text-decoration-color: transparent;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.16em;
    transition:
        color var(--motion-fast) var(--ease-out),
        text-decoration-color var(--motion-fast) var(--ease-out);
}

.article-author-link:hover,
.article-author-link:focus-visible {
    color: var(--text-color);
    text-decoration-color: currentColor;
}

.article-affiliations,
.article-supporting {
    margin: 0;
    font-size: 1.08rem;
    line-height: 1.55;
}

.article-supporting {
    margin-top: 8px;
}

.article-resource-list {
    margin: 6px 0 0;
    font-size: 1.08rem;
    line-height: 1.55;
}

.article-resource-link.is-disabled {
    color: var(--secondary-text-color);
    cursor: default;
    opacity: 0.72;
}

h2.section-title {
    margin: 0 0 18px;
    padding-top: 0;
    border-top: none;
    font-size: 2rem;
    line-height: 1.05;
    letter-spacing: -0.03em;
    font-weight: 500;
    text-align: left;
    color: var(--text-color);
}

h2.section-title.no-divider {
    padding-top: 0;
    border-top: none;
}

.centered-title {
    text-align: center !important;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--accent-color);
    margin: 0 0 20px;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 28px;
    justify-content: center;
}

.tag {
    padding: 7px 14px;
    border: 1px solid var(--border-soft);
    border-radius: 999px;
    background-color: transparent;
    color: var(--secondary-text-color);
    font-size: 1rem;
    font-weight: 500;
}

.hero-figure {
    margin: 28px 0 0;
}

.hero-image {
    display: block;
    width: 80%;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    box-shadow: 0 18px 32px var(--shadow-color);
}

.methodology {
    background-color: var(--surface-color);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-card);
    padding: 28px;
    margin: 30px 0 20px;
    text-align: left;
    color: var(--text-color);
}

.methodology h2 {
    margin-top: 0;
    margin-bottom: 14px;
    color: var(--text-color);
    font-family: var(--font-serif, "Source Serif 4", "Noto Serif KR", Georgia, serif);
    font-size: 1.34rem;
    font-weight: 500;
    text-align: center;
}

.methodology p {
    margin: 0;
    font-size: 1.14rem;
    line-height: 1.9;
}

.abstract-copy {
    font-family: var(--font-sans, "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);
    line-height: 1.78 !important;
    text-align: left;
}

.demo-section {
    background-color: rgba(255, 255, 255, 0.55);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-card);
    padding: 28px;
    margin: 28px 0 20px;
    min-width: 0;
}

.method-table {
    width: 100%;
    margin: 0 0 28px;
    border: 1px solid var(--border-soft);
    border-collapse: separate;
    border-spacing: 0;
    border-radius: var(--radius-inner);
    overflow: hidden;
    background-color: white;
    font-size: 1.04rem;
    line-height: 1.72;
    table-layout: fixed;
}

.method-table th,
.method-table td {
    padding: 12px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border-soft);
}

.method-table th {
    background-color: var(--surface-soft);
    color: var(--text-color);
    font-weight: 500;
}

.method-table th:first-child,
.method-table td:first-child {
    width: 24%;
}

.method-table th:nth-child(2),
.method-table td:nth-child(2) {
    width: 76%;
}

.method-table td {
    color: var(--secondary-text-color);
}

.method-table td:first-child {
    color: var(--text-color);
}

.method-table tr:last-child th,
.method-table tr:last-child td {
    border-bottom: none;
}

.sample-card-list {
    display: grid;
    gap: 20px;
    min-width: 0;
}

.sample-card {
    background-color: white;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-inner);
    padding: 20px;
    min-width: 0;
}

.sample-card-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.sample-card-header h3 {
    margin: 0;
    width: 100%;
    color: var(--text-color);
    font-size: 1.22rem;
    font-weight: 500;
    text-align: center;
}

.sample-row-scroll {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 6px;
}

.sample-row {
    display: grid;
    gap: 14px;
    width: max-content;
}

.sample-row.cols-5 {
    grid-template-columns: repeat(5, minmax(255px, 1fr));
}

.sample-item {
    width: 255px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.audio-player {
    width: 100%;
    margin-bottom: 12px;
}

.spectrogram-preview {
    display: block;
    width: 100%;
    height: auto;
    margin: 0 0 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: #111;
}

.sample-label {
    margin: 0;
    width: 100%;
    color: var(--secondary-text-color);
    font-size: 0.98rem;
    line-height: 1.55;
    text-align: center;
}

.sample-label strong {
    color: var(--text-color);
    font-weight: 500;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0 20px;
}

.comparison-table th,
.comparison-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--border-soft);
}

.comparison-table th {
    background-color: var(--surface-color);
}

.results {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 30px 0 20px;
}

.result-card {
    background-color: white;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-inner);
    padding: 20px;
    text-align: center;
}

.result-number {
    font-size: 2rem;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 20px;
}

.result-label {
    font-size: 0.9rem;
    color: var(--secondary-text-color);
    letter-spacing: 0.04em;
}

@media (max-width: 1024px) {
    .post-layout {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 36px 0 56px;
    }

    .toc-panel {
        position: static;
        background-color: rgba(255, 255, 255, 0.6);
        border: 1px solid var(--border-soft);
        border-radius: var(--radius-card);
        padding: 18px;
    }

    .toc-list {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0 16px;
    }

    .demo-section {
        padding: 28px 20px;
    }

    .sample-row.cols-5 {
        grid-template-columns: repeat(5, minmax(240px, 1fr));
    }

    .sample-item {
        width: 240px;
    }
}

@media (max-width: 768px) {
    .shell {
        width: min(100vw - 32px, 1360px);
    }

    .results {
        grid-template-columns: 1fr;
    }

    .demo-section {
        padding: 18px;
    }

    .method-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .method-table th,
    .method-table td {
        padding: 8px 12px;
    }

    .sample-card {
        padding: 16px;
    }

    .sample-row.cols-5 {
        grid-template-columns: repeat(5, minmax(225px, 1fr));
    }

    .sample-item {
        width: 225px;
    }
}

@media (max-width: 560px) {
    .toc-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2.2rem;
    }

    h2.section-title {
        font-size: 1.55rem;
    }
}
