/*
 * PecoChat®︎（ペコチャット）記事詳細フォーマット
 * 読み込み順：article-base.css → article-detail.css
 *
 * .article-detail を付けた記事だけに適用するオプトイン方式です。
 * 基準記事の表示を直接変更せず、各記事担当が同じ契約で読み込める
 * 共通の上書きレイヤーとして管理します。
 */

.article-detail {
    --article-ink: #17213f;
    --article-ink-soft: #26324d;
    --article-body: #5f6675;
    --article-muted: #64748b;
    --article-teal: #0f766e;
    --article-teal-soft: #eef7f4;
    --article-line: #d9dee7;
    --article-line-soft: #e6e9ee;
    --article-panel: #f7f8fa;
    --article-page-width: 1040px;
    --article-column-width: 800px;
    --article-gutter: 7.75rem;
    --article-font-stack:
        "Noto Sans JP", -apple-system, BlinkMacSystemFont,
        "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;

    font-family: var(--article-font-stack);
    letter-spacing: normal;
}

body.article-detail-body {
    background: #f9f9f9;
}

.article-detail a {
    text-underline-offset: 0.18em;
}

.article-detail img {
    max-width: 100%;
    height: auto;
}

/* Breadcrumb and page frame */
.article-detail .article-context {
    height: 88px;
    padding-top: 20px;
    background: #f9f9f9;
}

.article-detail .article-breadcrumb {
    display: flex;
    align-items: center;
    box-sizing: border-box;
    max-width: 1360px;
    min-height: 24px;
    gap: 0.8rem;
    margin: 0 auto;
    padding-inline: 50px;
    color: var(--article-muted);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.75;
}

.article-detail .article-breadcrumb a,
.article-detail .article-breadcrumb span {
    display: inline-flex;
    align-items: center;
}

.article-detail .article-breadcrumb a {
    text-decoration: none;
}

.article-detail .article-breadcrumb .breadcrumb-home {
    width: 20px;
    height: 20px;
    color: var(--article-ink);
}

.article-detail .article-breadcrumb .breadcrumb-home svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.article-detail .article-breadcrumb .breadcrumb-separator {
    color: #94a3b8;
    font-size: 17px;
    line-height: 1;
}

.article-detail .article-breadcrumb .breadcrumb-category {
    color: var(--article-ink);
    font-weight: 700;
}

.article-detail .article-breadcrumb .breadcrumb-title {
    min-width: 0;
    color: var(--article-muted);
    overflow-wrap: anywhere;
}

.article-detail .article-page {
    width: 100%;
    max-width: var(--article-page-width);
    margin: 0 auto;
    background: #fff;
}

/* Hero, metadata, author and lead */
.article-detail .hero {
    position: relative;
    padding: 80px 0 4rem !important;
    background: #fff !important;
    background-image: none !important;
    background-attachment: scroll !important;
    color: var(--article-ink) !important;
}

.article-detail .hero-inner {
    max-width: none !important;
    padding-inline: var(--article-gutter) !important;
}

.article-detail .hero-label {
    margin-bottom: 1.75rem !important;
    padding-left: 0 !important;
    border-left: 0 !important;
    color: var(--article-teal) !important;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.article-detail .hero-title-group {
    max-width: var(--article-column-width);
    margin: 0 0 1.5rem !important;
    color: var(--article-ink) !important;
    font-size: 2.25rem !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
    letter-spacing: 0 !important;
}

.article-detail .hero-title-main,
.article-detail .hero-title-sub {
    display: block !important;
    color: var(--article-ink) !important;
    font: inherit !important;
    line-height: inherit !important;
}

.article-detail .hero-desc {
    max-width: var(--article-column-width);
    margin: 0 0 2rem !important;
    color: var(--article-body) !important;
    font-size: 1rem !important;
    line-height: 1.9 !important;
    text-align: left !important;
}

.article-detail .article-meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 1.6rem;
    max-width: var(--article-column-width);
    margin: 1.75rem 0 0;
    color: var(--article-muted);
    font-size: 14px;
    line-height: 1.75;
}

.article-detail .article-meta-line span + span {
    padding-left: 1.6rem;
    border-left: 1px solid var(--article-line);
}

.article-detail .article-author {
    display: flex;
    align-items: center;
    gap: 1.15rem;
    max-width: var(--article-column-width);
    margin-top: 1.75rem;
    color: var(--article-ink);
}

.article-detail .article-author-avatar {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    border-radius: 50%;
    object-fit: cover;
}

.article-detail .article-author-name {
    display: block;
    color: var(--article-ink);
    font-size: 18px;
    font-weight: 400;
    line-height: 1.75;
}

.article-detail .article-author-company {
    display: block;
    margin-top: 0.15rem;
    color: var(--article-muted);
    font-size: 14px;
    line-height: 1.75;
}

.article-detail .article-lead {
    max-width: var(--article-column-width);
    margin: 2rem 0 0;
    color: var(--article-body);
    font-size: 18px;
    line-height: 1.7;
    text-align: left;
}

.article-detail .article-image-slot,
.article-detail .article-lead-image {
    display: block;
    width: 100%;
    max-width: var(--article-column-width);
    aspect-ratio: 1.91 / 1;
    margin: 3rem 0 0;
    border: 1px solid var(--article-line);
    background: #fafafa;
    overflow: hidden;
}

.article-detail .article-image-slot > img,
.article-detail .article-lead-image > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.article-detail .article-lead-image {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    color: #a3acba;
    font-size: 0.88rem;
    line-height: 1.7;
    text-align: center;
}

/* Single-column article body and table of contents */
.article-detail .content-wrapper {
    display: block !important;
    width: 100%;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 var(--article-gutter) !important;
    background: transparent;
}

.article-detail .article-main {
    width: 100%;
    max-width: var(--article-column-width);
    margin: 0 auto;
    padding: 4.5rem 0 110px !important;
    border-right: 0 !important;
}

.article-detail .article-main [id] {
    scroll-margin-top: calc(var(--header-height) + 40px);
}

.article-detail .article-main p,
.article-detail .article-main li {
    color: var(--article-body);
    font-size: 18px;
    line-height: 1.7;
}

.article-detail .article-main p {
    margin-bottom: 1.75rem;
    text-align: left;
}

.article-detail .article-main li {
    overflow-wrap: anywhere;
}

.article-detail .article-main h2,
.article-detail .article-main h3 {
    color: var(--article-ink);
    letter-spacing: normal;
    overflow-wrap: anywhere;
}

.article-detail .article-main h2 {
    display: block;
    margin: 6rem 0 2rem;
    padding: 0;
    border: 0;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.75;
}

.article-detail .article-main h2::before {
    display: none !important;
}

.article-detail .article-main h3 {
    display: block;
    margin: 3.75rem 0 1.25rem;
    padding: 0;
    border: 0;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.75;
}

.article-detail .article-main strong {
    color: var(--article-ink);
    background: none !important;
    font-weight: 700;
}

.article-detail
    .article-main
    a:not(.cta-btn):not(.trial-offer-btn):not(.related-card):not(
        .article-cta-primary
    ):not(.article-cta-secondary):not(.cta-link) {
    color: var(--article-teal);
    text-decoration: underline;
}

.article-detail .article-main a:focus-visible,
.article-detail .related-card:focus-visible,
.article-detail button:focus-visible {
    outline: 3px solid var(--article-teal);
    outline-offset: 3px;
}

.article-detail .article-toc {
    margin: 0 0 5.5rem;
    padding: 2.5rem;
    background: #f9f9f9;
}

.article-detail .article-toc-title {
    display: block;
    margin-bottom: 1rem;
    color: var(--article-ink);
    font-size: 22px;
    font-weight: 500;
    line-height: 1.75;
}

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

.article-detail .article-toc .toc-list li {
    margin: 0;
    border-bottom: 1px solid var(--article-line);
}

.article-detail .article-toc .toc-list li:last-child {
    border-bottom: 0;
}

.article-detail .article-toc .toc-list a {
    display: flex;
    min-height: 32px;
    align-items: center;
    padding: 0;
    border-left: 0 !important;
    color: var(--article-ink-soft);
    font-size: 16px;
    font-weight: 500;
    line-height: 2;
    text-decoration: none !important;
}

.article-detail .article-toc .toc-list a::before {
    margin-right: 0.65rem;
    color: var(--article-teal);
    content: "—";
}

.article-detail .article-toc .toc-list a:hover,
.article-detail .article-toc .toc-list a:focus-visible,
.article-detail .article-toc .toc-list a.active,
.article-detail .article-toc .toc-list a.is-active,
.article-detail .article-toc .toc-list li.active > a {
    background: transparent !important;
    color: var(--article-teal) !important;
    font-weight: 500 !important;
}

.article-detail .article-toc .toc-sublist {
    margin: -0.2rem 0 0.55rem 1.6rem;
    padding: 0;
    list-style: none;
}

.article-detail .article-toc .toc-sublist li {
    border-bottom: 0;
}

/* Editorial summary, lists and notes */
.article-detail .insight-box {
    margin: 0 0 4rem !important;
    padding: 0 0 2.5rem !important;
    border: 0;
    background: transparent !important;
    background-image: none !important;
    color: var(--article-ink) !important;
}

.article-detail .insight-box::after {
    display: none !important;
}

.article-detail .insight-label {
    display: block;
    margin-bottom: 1rem !important;
    color: var(--article-teal) !important;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.article-detail .insight-quote {
    margin: 0 0 1.25rem !important;
    color: var(--article-ink) !important;
    font-size: 1.45rem !important;
    font-weight: 700 !important;
    line-height: 1.65 !important;
}

.article-detail .insight-box p {
    color: var(--article-body) !important;
    font-size: 18px !important;
    line-height: 1.7 !important;
}

.article-detail .article-note {
    margin: 2.5rem 0;
    padding: 1.5rem;
    border: 0 !important;
    border-left: 0 !important;
    background: var(--article-panel) !important;
    color: var(--article-body);
    font-size: 0.95rem;
    line-height: 1.78;
}

.article-detail .article-note strong {
    display: block;
    margin-bottom: 0.55rem;
    color: var(--article-ink);
    font-size: 1.08em;
}

.article-detail .article-note-label {
    display: block;
    margin-bottom: 0.45rem;
    color: var(--article-muted);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.article-detail .article-list,
.article-detail .question-examples,
.article-detail .boundary-detail-list,
.article-detail .usecase-list,
.article-detail .prep-steps,
.article-detail .source-links {
    margin: 1.5rem 0 2.5rem;
    padding-left: 1.5rem;
}

.article-detail .article-list li,
.article-detail .question-examples li,
.article-detail .boundary-detail-list li,
.article-detail .usecase-list li,
.article-detail .prep-steps li {
    margin-bottom: 1rem;
    padding-left: 0.25rem;
}

.article-detail .decision-boundaries {
    margin: 1.25rem 0 0;
    padding: 0;
    border-top: 1px solid #94a3b8;
    list-style: none;
}

.article-detail .decision-boundaries li {
    padding: 1rem 0;
    border-bottom: 1px solid #cbd5e1;
}

.article-detail .decision-boundaries strong {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--article-teal);
}

.article-detail .decision-note {
    margin: 1rem 0 0;
    color: #475569;
}

.article-detail .source-note,
.article-detail .source-publisher {
    color: var(--article-muted);
    font-size: 0.86em;
}

.article-detail .source-publisher {
    margin-left: 0.35rem;
}

.article-detail .visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Tables: subtle separators on desktop; data-label cards on mobile */
.article-detail .article-table-wrap,
.article-detail .comparison-container {
    width: 100%;
    margin: 2.75rem 0 3.5rem;
    overflow-x: visible;
}

.article-detail .decision-table,
.article-detail .comparison-table,
.article-detail .article-table,
.article-detail .method-table,
.article-detail .stack-table {
    width: 100%;
    border: 0;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 0.95rem;
}

.article-detail .decision-table caption,
.article-detail .comparison-table caption,
.article-detail .article-table caption,
.article-detail .method-table caption,
.article-detail .stack-table caption {
    padding: 0 0 0.8rem;
    color: #475569;
    font-size: 0.88rem;
    line-height: 1.6;
    text-align: left;
}

.article-detail .decision-table th,
.article-detail .decision-table td,
.article-detail .comparison-table th,
.article-detail .comparison-table td,
.article-detail .article-table th,
.article-detail .article-table td,
.article-detail .method-table th,
.article-detail .method-table td,
.article-detail .stack-table th,
.article-detail .stack-table td {
    padding: 1rem 0.85rem;
    border: 0;
    border-bottom: 1px solid var(--article-line-soft);
    color: var(--article-body);
    line-height: 1.65;
    text-align: left;
    vertical-align: top;
    overflow-wrap: anywhere;
}

.article-detail .decision-table thead th,
.article-detail .comparison-table thead th,
.article-detail .article-table thead th,
.article-detail .method-table thead th,
.article-detail .stack-table thead th {
    background: #f4f6f8;
    color: var(--article-ink);
    font-size: 0.84rem;
    font-weight: 700;
}

.article-detail .decision-table tbody th,
.article-detail .article-table tbody th {
    color: var(--article-ink);
    font-weight: 700;
}

.article-detail .decision-table-example,
.article-detail .decision-table-logic,
.article-detail .decision-table-method {
    display: block;
    color: var(--article-ink);
    line-height: 1.7;
}

.article-detail .decision-table-example {
    font-weight: 600;
}

.article-detail .decision-table-logic {
    font-weight: 500;
}

.article-detail .decision-table-method {
    color: var(--article-teal);
    font-weight: 700;
}

.article-detail .decision-table-detail {
    display: block;
    margin-top: 0.3rem;
    color: var(--article-muted);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.65;
}

.article-detail .comparison-table .external-col,
.article-detail .comparison-table thead th:last-child {
    background: var(--article-teal-soft);
    color: var(--article-teal);
}

.article-detail .article-table--wide,
.article-detail .comparison-table--wide {
    min-width: 0;
}

.article-detail .choice-example {
    margin: 2.5rem 0 0;
    padding: 2rem 0;
}

.article-detail .choice-example h3 {
    margin: 0 0 0.75rem;
}

.article-detail .choice-example-question {
    margin: 0 0 1.5rem !important;
    color: #475569;
}

.article-detail .choice-example-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
}

.article-detail .choice-example-item {
    padding: 0.25rem 2rem 0.25rem 0;
}

.article-detail .choice-example-item + .choice-example-item {
    padding-right: 0;
    padding-left: 2rem;
    border-left: 1px solid var(--article-line);
}

.article-detail .choice-example-label {
    display: block;
    margin-bottom: 0.6rem;
    color: var(--article-teal);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

/* Images and restrained placeholders */
.article-detail .article-visual-slot {
    display: block;
    width: 100%;
    margin: 2rem 0 2.5rem;
}

.article-detail .article-visual-frame {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 1px solid var(--article-line);
    background: #fafafa;
    overflow: hidden;
}

.article-detail .article-visual-frame > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-detail .image-slot-guide {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100%;
    padding: 1.25rem;
    color: #a3acba;
    font-size: 0.88rem;
    font-weight: 500;
    line-height: 1.7;
    text-align: center;
    letter-spacing: 0.02em;
    pointer-events: none;
}


/* CTA: product / pricing first, consultation as a secondary action */
.article-detail .article-cta-inline {
    margin: 2.5rem 0 3.5rem;
    padding: 1.4rem 0;
    border: 0 !important;
    box-shadow: none !important;
}

.article-detail .article-cta-inline p {
    margin: 0 0 1rem;
}

.article-detail .article-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.article-detail .article-cta-actions a {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1.1rem;
    border: 1px solid var(--article-teal);
    border-radius: 4px;
    text-decoration: none !important;
}

.article-detail .article-cta-actions a.article-cta-primary {
    border-color: var(--article-teal);
    background: var(--article-teal);
    color: #fff;
    font-weight: 700;
}

.article-detail .article-cta-actions a.article-cta-secondary {
    border-color: #94a3b8;
    background: transparent;
    color: #475569;
}

.article-detail .article-cta-actions a:hover {
    opacity: 0.88;
}

/* FAQ and official information */
.article-detail .faq-block,
.article-detail .faq-item {
    margin: 0;
    padding: 0;
    border: 0;
}

.article-detail .faq-block + .faq-block,
.article-detail .faq-item + .faq-item {
    margin-top: 2.25rem;
    padding-top: 2rem;
    border-top: 1px solid var(--article-line-soft);
}

.article-detail .faq-block h3,
.article-detail .faq-question {
    margin: 0 0 0.75rem;
    color: var(--article-ink);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.6;
}

.article-detail .faq-block p,
.article-detail .faq-answer {
    margin: 0;
    color: #475569;
}

.article-detail .source-links .source-publisher {
    margin-left: 0.35rem;
}

/* Related articles: editorial links, not dashboard cards */
.article-detail .related-articles {
    width: 100%;
    margin: 0;
    padding: 4.5rem 0 4rem;
    background: #f9f9f9;
}

.article-detail .related-inner {
    width: 100%;
    max-width: var(--article-page-width);
    margin: 0 auto;
    padding-inline: 0;
}

.article-detail .related-inner > h2 {
    display: block;
    margin: 0 0 3.5rem;
    padding: 0;
    border: 0;
    color: var(--article-ink);
    font-size: 28px;
    font-weight: 700;
    line-height: 1.5;
    text-align: center;
}

.article-detail .related-inner > h2::before {
    display: none !important;
}

.article-detail .related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
}

.article-detail .related-card {
    display: block;
    min-width: 0;
    color: var(--article-body);
    text-decoration: none !important;
}

.article-detail .related-card-media {
    display: block;
    width: 100%;
    aspect-ratio: 1.9 / 1;
    margin-bottom: 1rem;
    border: 1px solid var(--article-line);
    background: #fafafa;
    overflow: hidden;
}

.article-detail .related-card-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-detail .related-card-meta {
    display: flex;
    min-height: 1.5rem;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.65rem;
    color: var(--article-muted);
}

.article-detail .related-category,
.article-detail .related-date {
    color: var(--article-muted);
    font-size: 12px;
    line-height: 1.75;
}

.article-detail .related-date {
    white-space: nowrap;
}

.article-detail .related-card h3 {
    margin: 0;
    padding: 0;
    border: 0;
    color: var(--article-ink);
    font-size: 18px;
    font-weight: 500;
    line-height: 1.75;
}

.article-detail .related-card:hover {
    transform: none;
    box-shadow: none;
}

.article-detail .related-card:hover .related-card-media {
    border-color: var(--article-teal);
}

@media (max-width: 1024px) {
    .article-detail {
        --article-gutter: 2rem;
    }

    .article-detail .article-breadcrumb {
        max-width: none;
        padding-inline: 25px;
    }
}

@media (max-width: 768px) {
    .article-detail .article-context {
        display: none;
    }

    .article-detail .hero {
        padding: 104px 0 2.5rem !important;
    }

    .article-detail .hero-inner {
        padding-inline: 1.5rem !important;
    }

    .article-detail .hero-label {
        margin-bottom: 1.5rem !important;
    }

    .article-detail .hero-title-group {
        font-size: 24px !important;
        line-height: 1.35 !important;
    }

    .article-detail .hero-desc {
        margin-bottom: 2rem !important;
        font-size: 1rem !important;
    }

    .article-detail .article-meta-line {
        gap: 1rem;
        margin-top: 1.5rem;
        font-size: 12px;
    }

    .article-detail .article-meta-line span + span {
        padding-left: 1rem;
    }

    .article-detail .article-author {
        margin-top: 1.5rem;
    }

    .article-detail .article-author-name {
        font-size: 16px;
    }

    .article-detail .article-author-company {
        font-size: 12px;
    }

    .article-detail .article-lead {
        margin-top: 1.25rem;
        font-size: 16px;
        line-height: 1.75;
    }

    .article-detail .article-image-slot,
    .article-detail .article-lead-image {
        margin-top: 2.5rem;
    }

    .article-detail .content-wrapper {
        padding-inline: 1.5rem !important;
    }

    .article-detail .article-main {
        padding: 48px 0 80px !important;
    }

    .article-detail .article-main p,
    .article-detail .article-main li {
        font-size: 16px;
        line-height: 1.7;
    }

    .article-detail .article-main h2 {
        margin: 5rem 0 1.75rem;
        font-size: 20px;
        line-height: 1.5;
    }

    .article-detail .article-main h3 {
        margin-top: 3rem;
        font-size: 16px;
        line-height: 1.75;
    }

    .article-detail .article-toc {
        margin-bottom: 4.5rem;
        padding: 1.75rem 1.25rem;
    }

    .article-detail .article-toc-title {
        font-size: 18px;
    }

    .article-detail .article-toc .toc-list a {
        min-height: 18px;
        font-size: 12px;
        line-height: 1.5;
    }

    .article-detail .insight-box {
        margin-bottom: 3rem !important;
        padding-bottom: 2rem !important;
    }

    .article-detail .insight-box p {
        font-size: 16px !important;
        line-height: 1.7 !important;
    }

    .article-detail .insight-quote {
        font-size: 1.25rem !important;
        line-height: 1.6 !important;
    }

    .article-detail .article-note {
        margin: 1.75rem 0;
        padding: 1rem;
    }

    .article-detail .article-table-wrap,
    .article-detail .comparison-container {
        margin: 2rem 0 2.5rem;
    }

    .article-detail .decision-table,
    .article-detail .decision-table thead,
    .article-detail .decision-table tbody,
    .article-detail .decision-table tr,
    .article-detail .decision-table th,
    .article-detail .decision-table td,
    .article-detail .comparison-table,
    .article-detail .comparison-table thead,
    .article-detail .comparison-table tbody,
    .article-detail .comparison-table tr,
    .article-detail .comparison-table th,
    .article-detail .comparison-table td,
    .article-detail .article-table,
    .article-detail .article-table thead,
    .article-detail .article-table tbody,
    .article-detail .article-table tr,
    .article-detail .article-table th,
    .article-detail .article-table td,
    .article-detail .method-table,
    .article-detail .method-table thead,
    .article-detail .method-table tbody,
    .article-detail .method-table tr,
    .article-detail .method-table th,
    .article-detail .method-table td,
    .article-detail .stack-table,
    .article-detail .stack-table thead,
    .article-detail .stack-table tbody,
    .article-detail .stack-table tr,
    .article-detail .stack-table th,
    .article-detail .stack-table td,
    .article-detail .article-table--stacked,
    .article-detail .article-table--stacked thead,
    .article-detail .article-table--stacked tbody,
    .article-detail .article-table--stacked tr,
    .article-detail .article-table--stacked th,
    .article-detail .article-table--stacked td {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }

    .article-detail .decision-table thead,
    .article-detail .comparison-table thead,
    .article-detail .article-table thead,
    .article-detail .method-table thead,
    .article-detail .stack-table thead,
    .article-detail .article-table--stacked thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        clip-path: inset(50%);
        white-space: nowrap;
    }

    .article-detail .decision-table tbody,
    .article-detail .comparison-table tbody,
    .article-detail .article-table tbody,
    .article-detail .method-table tbody,
    .article-detail .stack-table tbody,
    .article-detail .article-table--stacked tbody {
        border-top: 1px solid var(--article-line-soft);
    }

    .article-detail .decision-table tbody tr,
    .article-detail .comparison-table tbody tr,
    .article-detail .article-table tbody tr,
    .article-detail .method-table tbody tr,
    .article-detail .stack-table tbody tr,
    .article-detail .article-table--stacked tbody tr {
        padding: 1.25rem 0;
        border-bottom: 1px solid var(--article-line-soft);
    }

    .article-detail .decision-table tbody th,
    .article-detail .decision-table tbody td,
    .article-detail .comparison-table tbody th,
    .article-detail .comparison-table tbody td,
    .article-detail .article-table tbody th,
    .article-detail .article-table tbody td,
    .article-detail .method-table tbody th,
    .article-detail .method-table tbody td,
    .article-detail .stack-table tbody th,
    .article-detail .stack-table tbody td,
    .article-detail .article-table--stacked tbody th,
    .article-detail .article-table--stacked tbody td {
        width: 100% !important;
        padding: 0 !important;
        border: 0;
    }

    .article-detail .decision-table tbody th,
    .article-detail .comparison-table tbody th,
    .article-detail .article-table tbody th,
    .article-detail .method-table tbody th,
    .article-detail .stack-table tbody th,
    .article-detail .article-table--stacked tbody th {
        margin-bottom: 0.8rem;
    }

    .article-detail .decision-table tbody td + td,
    .article-detail .comparison-table tbody td + td,
    .article-detail .article-table tbody td + td,
    .article-detail .method-table tbody td + td,
    .article-detail .stack-table tbody td + td,
    .article-detail .article-table--stacked tbody td + td {
        margin-top: 0.45rem;
    }

    .article-detail .decision-table tbody th::before,
    .article-detail .decision-table tbody td::before,
    .article-detail .comparison-table tbody th::before,
    .article-detail .comparison-table tbody td::before,
    .article-detail .article-table tbody th::before,
    .article-detail .article-table tbody td::before,
    .article-detail .method-table tbody th::before,
    .article-detail .method-table tbody td::before,
    .article-detail .stack-table tbody th::before,
    .article-detail .stack-table tbody td::before,
    .article-detail .article-table--stacked tbody th::before,
    .article-detail .article-table--stacked tbody td::before {
        display: block;
        margin-bottom: 0.15rem;
        color: var(--article-muted);
        content: attr(data-label);
        font-size: 12px;
        font-weight: 700;
    }

    .article-detail .decision-table-detail {
        margin-top: 0.2rem;
        font-size: 12px;
    }

    .article-detail .article-table--wide,
    .article-detail .comparison-table--wide {
        min-width: 0;
    }

    .article-detail .choice-example {
        padding: 1.5rem 0;
    }

    .article-detail .choice-example-grid {
        grid-template-columns: 1fr;
    }

    .article-detail .choice-example-item {
        padding: 0;
    }

    .article-detail .choice-example-item + .choice-example-item {
        margin-top: 1.25rem;
        padding: 1.25rem 0 0;
        border-top: 1px solid var(--article-line);
        border-left: 0;
    }

    .article-detail .article-cta-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .article-detail .article-cta-actions a {
        width: 100%;
    }

    .article-detail .faq-block + .faq-block,
    .article-detail .faq-item + .faq-item {
        margin-top: 1.5rem;
        padding-top: 1.5rem;
    }

    .article-detail .faq-block h3,
    .article-detail .faq-question {
        margin-bottom: 0.65rem;
        font-size: 18px;
    }

    .article-detail .related-articles {
        padding: 3.5rem 0 3rem;
    }

    .article-detail .related-inner {
        padding-inline: 1.5rem;
    }

    .article-detail .related-inner > h2 {
        margin-bottom: 2.5rem;
        font-size: 24px;
    }

    .article-detail .related-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .article-detail .related-category,
    .article-detail .related-date {
        font-size: 10px;
    }

    .article-detail .related-card h3 {
        font-size: 14px;
        line-height: 1.5;
    }
}

@media (prefers-reduced-motion: reduce) {
    .article-detail *,
    .article-detail *::before,
    .article-detail *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
