/* Article pages only. Timer and shared header styles are managed separately. */
.detox-header-article-links {
    display: flex;
    order: 1;
    align-items: center;
    gap: 20px;
    margin-left: auto;
    font-size: 14px;
    font-weight: 700;
    color: #24554b;
}

.detox-header-article-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    white-space: nowrap;
}

.detox-header-article-links a:hover,
.detox-header-article-links a[aria-current="page"] {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.detox-header-article-links .detox-header-timer-link {
    gap: 8px;
    padding: 0 18px;
    border-radius: 24px;
    background: #0f766e;
    color: white;
}

.detox-header--articles .detox-header-auth {
    margin-left: 0;
}

.detox-article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 16px;
    padding: 0;
    list-style: none;
}

.detox-article-tags li {
    padding: 4px 12px;
    border-radius: 20px;
    background: #e7f1ea;
    color: #326454;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.6;
}

@media (max-width: 1100px) {
    .detox-header--articles {
        flex-wrap: wrap;
    }
    .detox-header--articles .detox-header-auth {
        margin-left: auto;
    }
    .detox-header-article-links {
        order: 5;
        flex-basis: 100%;
        justify-content: flex-end;
        gap: 16px;
        margin: 0;
    }
    .detox-article-body .detox-article-shell {
        padding-top: 156px;
    }
    .detox-markdown-body h2 {
        scroll-margin-top: 156px;
    }
}

@media (max-width: 640px) {
    .detox-header-article-links {
        justify-content: space-between;
        gap: 8px;
        font-size: 12px;
    }
    .detox-header-article-links .detox-header-timer-link {
        gap: 4px;
        padding: 0 10px;
    }
}

@media (max-width: 360px) {
    .detox-header--articles .detox-header-home {
        gap: 2px;
    }
    .detox-header--articles .detox-header-name {
        font-size: 11px;
    }
    .detox-header--articles .detox-header-language a {
        padding-inline: 3px;
    }
}

.detox-article-body {
    --article-ink: #26342f;
    --article-muted: #5c6862;
    --article-green: #0f766e;
    --article-line: #e2e8e2;
    --article-soft: #f3f6f2;
    min-height: 100vh;
    background: #fffefa;
    color: var(--article-ink);
}

.detox-article-shell {
    width: min(100% - 48px, 1000px);
    margin: 0 auto;
    padding: 104px 0 64px;
    font-family: "Helvetica Neue", Arial, "Hiragino Sans", "Meiryo", sans-serif;
}

.detox-article-detail-shell {
    max-width: 1160px;
    width: calc(100% - 64px);
}

.detox-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 28px;
    color: var(--article-muted);
    font-size: 13px;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.detox-breadcrumbs a,
.detox-article-back a,
.detox-article-navigation a,
.detox-related-all {
    color: var(--article-green);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.detox-article-layout {
    display: grid;
    grid-template-columns: minmax(0, 760px) minmax(0, 280px);
    justify-content: space-between;
    align-items: start;
    gap: 48px;
}

.detox-article-main,
.detox-article-content {
    min-width: 0;
}

.detox-article-heading {
    margin-bottom: 24px;
}

.detox-article-heading h1 {
    margin: 0;
    color: #1d3028;
    font-size: clamp(1.75rem, 2.7vw, 2.35rem);
    font-weight: 700;
    line-height: 1.5;
    overflow-wrap: break-word;
    word-break: normal;
    word-break: auto-phrase;
    text-wrap: pretty;
}

.detox-article-heading > p {
    margin: 16px 0 0;
    color: var(--article-muted);
    font-size: 1rem;
    line-height: 1.85;
}

.detox-article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin-top: 16px;
    color: var(--article-muted);
    font-size: 0.8125rem;
    line-height: 1.6;
}

.detox-article-hero {
    margin: 0 0 28px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    background: var(--article-soft);
}

.detox-article-hero img,
.detox-article-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detox-markdown-body {
    color: var(--article-ink);
    font-size: 1.0625rem;
    line-height: 1.95;
    overflow-wrap: break-word;
    word-break: normal;
}

/* Low specificity keeps embedded shelves and navigation independent of prose. */
.detox-markdown-body :where(h2, h3, h4) {
    color: #1d3028;
    font-weight: 700;
    line-height: 1.65;
    scroll-margin-top: 104px;
    word-break: auto-phrase;
}

.detox-markdown-body :where(h2) {
    margin: 3rem 0 1rem;
    padding-left: 14px;
    border-left: 3px solid var(--article-green);
    font-size: 1.5rem;
}

.detox-markdown-body :where(h3) {
    margin: 2rem 0 0.75rem;
    font-size: 1.1875rem;
}

.detox-markdown-body :where(h4) {
    margin: 1.5rem 0 0.75rem;
    font-size: 1.0625rem;
}

.detox-markdown-body :where(p, ul, ol, blockquote, pre, table) {
    margin: 1.1rem 0;
}

.detox-markdown-body :where(ul, ol) {
    padding-left: 1.6em;
}

.detox-markdown-body :where(ol) {
    list-style: decimal;
}

.detox-markdown-body :where(ul) {
    list-style: disc;
}

.detox-markdown-body :where(li + li) {
    margin-top: 0.45rem;
}

.detox-markdown-body :where(strong) {
    color: inherit;
    font-weight: 700;
}

.detox-markdown-body :where(mark) {
    color: inherit;
    font-weight: 700;
    background: linear-gradient(transparent 68%, #ffe28a 68%, #ffe28a 95%, transparent 95%);
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}

.detox-markdown-body :where(a) {
    color: var(--article-green);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.detox-markdown-body :where(blockquote) {
    padding-left: 18px;
    border-left: 2px solid #b6cbbd;
    color: var(--article-muted);
}

.detox-markdown-body :where(code) {
    border-radius: 4px;
    background: var(--article-soft);
    padding: 0.1em 0.3em;
    font-size: 0.9em;
}

.detox-markdown-body :where(pre) {
    overflow-x: auto;
    padding: 16px;
    background: var(--article-soft);
}

.detox-markdown-body :where(pre code) {
    padding: 0;
    background: transparent;
}

.detox-markdown-body :where(img) {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.detox-markdown-body :where(table) {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    border-collapse: collapse;
    font-size: 0.9375rem;
}

.detox-markdown-body :where(th, td) {
    min-width: 9em;
    padding: 12px 14px;
    border: 1px solid var(--article-line);
    text-align: left;
    vertical-align: top;
    white-space: normal;
}

.detox-markdown-body :where(th) {
    background: var(--article-soft);
    font-weight: 700;
}

.detox-article-toc {
    margin: 0 0 30px;
    padding: 22px 24px;
    border-radius: 8px;
    background: var(--article-soft);
    font-size: 0.9375rem;
    line-height: 1.7;
}

.detox-article-toc-title {
    margin: 0 0 12px;
    color: #1d3028;
    font-size: 1rem;
    font-weight: 700;
}

.detox-article-toc ol {
    columns: 2;
    column-gap: 32px;
    margin: 0;
    padding-left: 1.65em;
}

.detox-article-toc li {
    break-inside: avoid;
    margin: 0;
    padding: 5px 0 5px 5px;
}

.detox-article-toc li::marker {
    color: var(--article-green);
    font-variant-numeric: tabular-nums;
}

.detox-article-toc a {
    color: var(--article-ink);
    font-weight: 700;
    text-decoration: none;
}

.detox-article-toc a:hover,
.detox-article-toc a:focus-visible {
    color: var(--article-green);
    text-decoration: underline;
}

.detox-article-sidebar {
    position: sticky;
    top: 104px;
    padding: 22px 20px;
    border: 1px solid var(--article-line);
    border-radius: 8px;
    background: #fff;
}

.detox-article-sidebar h2 {
    margin: 0 0 18px;
    font-size: 1.0625rem;
    font-weight: 700;
}

.detox-related-list {
    margin: 0 0 20px;
    padding: 0;
    list-style: none;
}

.detox-related-list li + li {
    margin-top: 20px;
}

.detox-related-list a {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    color: var(--article-ink);
    font-size: 0.875rem;
    line-height: 1.7;
    text-decoration: none;
}

.detox-related-list a:hover span {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.detox-related-list img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 4px;
}

.detox-related-all {
    font-size: 0.875rem;
}

/* Reuse the existing timer prompts with quieter article-specific styling. */
.detox-inline-promo,
.detox-article-cta {
    margin: 36px 0;
    padding: 24px;
    border: 1px solid var(--article-line);
    border-radius: 8px;
    background: var(--article-soft);
}

.detox-inline-promo h2,
.detox-article-cta h2 {
    margin: 0;
    border: 0;
    padding: 0;
    color: #1d3028;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.6;
}

.detox-inline-promo-description,
.detox-article-cta-copy > p {
    margin: 10px 0 0;
    color: var(--article-muted);
    font-size: 0.9375rem;
    line-height: 1.85;
}

.detox-article-cta ul {
    margin: 12px 0 0;
    padding-left: 1.2em;
    color: var(--article-muted);
    font-size: 0.875rem;
    line-height: 1.8;
    list-style: disc;
}

.detox-inline-promo-button,
.detox-article-cta-button {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    margin-top: 18px;
    padding: 10px 24px;
    border-radius: 8px;
    background: var(--article-green);
    color: #fff;
    font-size: 0.9375rem;
    font-weight: 700;
    line-height: 1.5;
    text-decoration: none;
}

.detox-inline-promo-button:hover,
.detox-article-cta-button:hover {
    background: #0d5f59;
}

.detox-product-shelf {
    min-width: 0;
    margin: 24px 0 32px;
    padding: 18px;
    border: 1px solid var(--article-line);
    border-radius: 8px;
    background: #fafbf8;
}

.detox-product-shelf-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 6px 16px;
    margin-bottom: 16px;
}

.detox-product-shelf-label {
    margin: 0;
    color: var(--article-ink);
    font-size: 1rem;
    font-weight: 700;
}

.detox-product-shelf-notice {
    margin: 0;
    color: var(--article-muted);
    font-size: 0.75rem;
    line-height: 1.7;
}

.detox-product-track {
    display: flex;
    min-width: 0;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 12px;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    scrollbar-color: #92b3a2 transparent;
    scrollbar-width: thin;
}

.detox-product-card {
    display: flex;
    min-width: 0;
    flex: 0 0 216px;
    flex-direction: column;
    scroll-snap-align: start;
    padding: 12px;
    border: 1px solid var(--article-line);
    border-radius: 6px;
    background: #fff;
}

.detox-product-card img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: contain;
    border-radius: 4px;
}

.detox-product-card h3 {
    display: -webkit-box;
    margin: 12px 0 0;
    overflow: hidden;
    color: var(--article-ink);
    font-size: 0.9375rem;
    font-weight: 700;
    line-height: 1.6;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.detox-product-category {
    margin: 6px 0 12px;
    color: var(--article-muted);
    font-size: 0.75rem;
    line-height: 1.5;
}

.detox-product-links {
    display: grid;
    gap: 8px;
    margin-top: auto;
    padding-top: 8px;
}

.detox-product-links a {
    display: flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 8px 10px;
    border: 1px solid #9bbeb1;
    border-radius: 6px;
    color: var(--article-green);
    font-size: 0.8125rem;
    font-weight: 700;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
}

.detox-product-links a:first-child {
    border-color: var(--article-green);
    background: var(--article-green);
    color: #fff;
}

.detox-product-links a:hover {
    background: #edf5ef;
}

.detox-product-links a:first-child:hover {
    background: #0d5f59;
}

.detox-article-list {
    display: grid;
    gap: 28px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.detox-article-card {
    overflow: hidden;
    border: 1px solid var(--article-line);
    border-radius: 8px;
    background: #fff;
}

.detox-article-card-image {
    display: block;
    aspect-ratio: 16 / 9;
    background: var(--article-soft);
}

.detox-article-card-body {
    padding: 20px;
}

.detox-article-card h2 {
    margin: 0;
    font-size: 1.1875rem;
    font-weight: 700;
    line-height: 1.6;
}

.detox-article-card h2 a {
    color: var(--article-ink);
    text-decoration: none;
}

.detox-article-card h2 a:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.detox-article-card p {
    margin: 10px 0 0;
    color: var(--article-muted);
    font-size: 0.9375rem;
    line-height: 1.8;
}

.detox-article-card time {
    display: block;
    margin-top: 14px;
    color: var(--article-muted);
    font-size: 0.8125rem;
}

.detox-pagination {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
    margin-top: 32px;
}

.detox-pagination-pages {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.detox-pagination a,
.detox-pagination-pages span {
    display: inline-flex;
    min-width: 40px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--article-line);
    border-radius: 6px;
    background: #fff;
    color: var(--article-green);
    font-size: 0.875rem;
    text-decoration: none;
}

.detox-pagination-pages span[aria-current="page"],
.detox-pagination a:hover {
    border-color: var(--article-green);
    background: var(--article-green);
    color: #fff;
}

.detox-pagination-prev,
.detox-pagination-next {
    padding: 0 12px;
}

.detox-article-back,
.detox-article-navigation {
    margin: 28px 0 0;
    text-align: center;
}

.detox-article-navigation {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 24px;
    font-size: 0.9375rem;
}

.detox-article-empty {
    color: var(--article-muted);
}

.detox-article-shell a:focus-visible,
.detox-product-track:focus-visible {
    outline: 2px solid var(--article-green);
    outline-offset: 4px;
}

@media (max-width: 1050px) {
    .detox-article-detail-shell {
        max-width: 760px;
        width: calc(100% - 48px);
    }

    .detox-article-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 40px;
    }

    .detox-article-sidebar {
        position: static;
    }

    .detox-related-list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }

    .detox-related-list li + li {
        margin-top: 0;
    }
}

@media (max-width: 640px) {
    .detox-article-shell,
    .detox-article-detail-shell {
        width: calc(100% - 36px);
        padding-top: 96px;
        padding-bottom: 40px;
    }

    .detox-breadcrumbs {
        margin-bottom: 24px;
        font-size: 12px;
    }

    .detox-article-heading h1 {
        font-size: 1.75rem;
    }

    .detox-article-heading > p {
        font-size: 0.9375rem;
    }

    .detox-markdown-body {
        font-size: 1rem;
        line-height: 1.9;
    }

    .detox-markdown-body :where(h2) {
        margin-top: 2.5rem;
        padding-left: 12px;
        font-size: 1.3125rem;
    }

    .detox-markdown-body :where(h3) {
        font-size: 1.125rem;
    }

    .detox-article-toc {
        padding: 20px 18px;
        font-size: 0.875rem;
    }

    .detox-article-toc ol {
        columns: 1;
    }

    .detox-inline-promo,
    .detox-article-cta {
        padding: 20px;
    }

    .detox-article-cta-button,
    .detox-inline-promo-button {
        width: 100%;
    }

    .detox-product-shelf {
        padding: 16px 12px;
    }

    .detox-product-card {
        flex-basis: min(72vw, 216px);
    }

    .detox-article-list,
    .detox-related-list {
        grid-template-columns: minmax(0, 1fr);
    }

    .detox-article-list {
        gap: 24px;
    }

    .detox-pagination {
        gap: 8px;
    }

    .detox-pagination-prev,
    .detox-pagination-next {
        padding: 0 8px;
    }
}
