﻿.detail-page-content {
    font-family: Georgia, "Times New Roman";
}

.detail-page-content h1,
.detail-page-content h2,
.detail-page-content h3,
.detail-page-content h4,
.detail-page-content h5,
.detail-page-content h6,
.detail-page-content .block-title,
.detail-page-content .hero-text h1,
.detail-page-content .group-title,
.detail-page-content .pedi-breadcrumb-bar,
.detail-page-content .topic-headings,
.detail-page-content .meta-item,
.detail-page-content .share-pill,
.detail-page-content .font-controls,
.detail-page-content .pedi-comment-form h4,
.detail-page-content .pedi-tags a,
.detail-page-content .premium-meta-bar {
    font-family: "Segoe UI", Arial, sans-serif;
}

.detail-page-content {
    color: #334155;
}

/* Pedi detail hero compact redesign */
.detail-page-content .pedi-detail-hero {
    background:
        radial-gradient(circle at top left, rgba(138, 92, 246, 0.28), transparent 34%),
        radial-gradient(circle at right center, rgba(236, 72, 153, 0.14), transparent 28%),
        linear-gradient(135deg, #4a2ab9 0%, #3f37b3 44%, #3235a5 100%) !important;
    border-radius: 26px !important;
    padding: 34px 34px 30px !important;
    margin-bottom: 22px !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    box-shadow: 0 22px 44px rgba(49, 27, 146, 0.20) !important;
}

.detail-page-content .hero-bg-overlay {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.05), transparent 40%),
        url('https://www.transparenttextures.com/patterns/cubes.png');
    opacity: 0.08;
}

.detail-page-content .hero-content-inner {
    display: grid !important;
    grid-template-columns: minmax(0, 1.9fr) minmax(280px, 332px) !important;
    align-items: start !important;
    gap: 20px !important;
}

.detail-page-content .hero-text {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
}

.detail-page-content .hero-text > h1,
.detail-page-content .hero-text > .latin-name {
    flex: 0 0 auto;
}

.detail-page-content .hero-text > .hero-stats-new,
.detail-page-content .hero-text > .hero-image-mobile {
    flex: 0 0 auto;
}

.detail-page-content .hero-text h1 {
    font-size: clamp(2.55rem, 3.8vw, 3.75rem) !important;
    line-height: 0.92 !important;
    letter-spacing: -0.06em !important;
    color: #fff9f1 !important;
    text-shadow: 0 8px 18px rgba(18, 10, 67, 0.18) !important;
    max-width: none !important;
    margin-bottom: 0 !important;
    white-space: nowrap !important;
    text-wrap: nowrap !important;
}

.detail-page-content .latin-name {
    margin-top: -4px;
    font-size: 1.02rem;
    line-height: 1.4;
    color: rgba(255, 244, 238, 0.92);
    font-style: italic;
    font-family: Georgia, "Times New Roman", serif;
    max-width: 44ch;
}

.detail-page-content .hero-stats-new {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
    margin-top: 4px !important;
}

.detail-page-content .hero-stats-new .stat-pill {
    min-height: 0;
    padding: 14px 18px 13px;
    border-radius: 17px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.06) 100%);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.11),
        0 10px 24px rgba(25, 14, 82, 0.12);
    backdrop-filter: blur(12px);
}

.detail-page-content .hero-stats-new .stat-pill:hover {
    transform: translateY(-2px);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.10) 100%);
}

.detail-page-content .hero-stats-new .s-label {
    margin-bottom: 10px;
    font-size: 0.75rem;
    line-height: 1.2;
    letter-spacing: 0.05em;
    color: #efe7ff;
    text-align: center;
}

.detail-page-content .hero-stats-new .s-value {
    font-size: 0.9rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.97);
    -webkit-line-clamp: 4;
    text-align: left;
}

.detail-page-content .hero-image-new,
.detail-page-content .hero-image-mobile {
    align-items: center !important;
    justify-content: center !important;
}

.detail-page-content .hero-image-new {
    display: flex !important;
    padding-top: 0 !important;
    align-self: start !important;
    margin-top: 118px !important;
}

.detail-page-content .hero-image-mobile {
    display: none !important;
}

.detail-page-content .img-frame {
    width: min(100%, 320px) !important;
    aspect-ratio: 1 / 1 !important;
    padding: 16px !important;
    border-radius: 30px !important;
    background:
        radial-gradient(circle at center, rgba(142, 92, 246, 0.22), rgba(255, 255, 255, 0.04) 65%),
        rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 20px 40px rgba(25, 14, 82, 0.18) !important;
}

.detail-page-content .img-frame::before {
    content: "";
    position: absolute;
    inset: 18px;
    border-radius: 50%;
    background:
        radial-gradient(circle, transparent 52%, rgba(106, 13, 173, 0.9) 53%, rgba(106, 13, 173, 0.9) 56%, transparent 57%),
        radial-gradient(circle, transparent 69%, rgba(145, 29, 225, 0.78) 70%, rgba(145, 29, 225, 0.78) 73%, transparent 74%);
    opacity: 0.9;
    pointer-events: none;
}

.detail-page-content .img-frame::after {
    inset: -10px;
    border: 2px dashed rgba(255, 255, 255, 0.18);
    border-radius: 36px;
}

.detail-page-content .img-frame img {
    position: relative !important;
    z-index: 1 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    filter: drop-shadow(0 18px 24px rgba(10, 5, 36, 0.36)) !important;
    transform: scale(1.02) !important;
}

.detail-page-content .premium-meta-bar {
    border-radius: 18px;
    padding: 18px 24px;
    margin-bottom: 24px;
}

.pedi-article-content {
    --pedi-font-size: 17;
    --pedi-heading-scale: 1;
    --pedi-line-height: 1.82;
}

.pedi-article-content p,
.pedi-article-content li {
    font-size: calc(var(--pedi-font-size) * 1px);
    line-height: var(--pedi-line-height);
    letter-spacing: 0.01em;
    color: #334155;
    padding-left: 0;
}

.pedi-article-content p {
    margin-bottom: 1rem;
}

.pedi-article-content h2,
.pedi-article-content h3 {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    color: #0f172a;
    line-height: 1.2;
    letter-spacing: -0.02em;
    text-wrap: balance;
}

.pedi-article-content h2 {
    font-size: calc(1.85rem * var(--pedi-heading-scale));
    font-weight: 800;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.pedi-article-content h3 {
    font-size: calc(1.38rem * var(--pedi-heading-scale));
    font-weight: 700;
    margin-top: 1.75rem;
    margin-bottom: 0.8rem;
}

.pedi-article-content strong {
    color: #111827;
    font-weight: 700;
}

.pedi-article-content a {
    color: #1d4ed8;
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.14em;
}

.pedi-article-content a:hover {
    color: #1e40af;
}

.pedi-article-content .auto-link {
    color: #1877f2;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid rgba(24, 119, 242, 0.15);
    padding: 0 1px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.pedi-article-content .auto-link:hover {
    color: #0d6efd;
    border-bottom-color: #1877f2;
    background-color: rgba(24, 119, 242, 0.08);
    text-decoration: none;
    border-radius: 4px;
}

.pedi-article-content blockquote {
    margin: 1.5rem 0;
    padding: 1rem 1.25rem;
    border-left: 4px solid #c4b5fd;
    background: #faf7ff;
    border-radius: 0 14px 14px 0;
}

.pedi-article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.pedi-article-content table {
    width: 100%;
    margin: 28px 0;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    border: 1px solid #e7defa;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #fcfaff 100%);
    box-shadow: 0 18px 38px rgba(111, 66, 193, 0.08);
}

.pedi-article-content table thead th,
.pedi-article-content table thead td {
    padding: 15px 18px;
    border: 0;
    border-bottom: 1px solid #ddd0fb;
    background: linear-gradient(135deg, #6f42c1 0%, #8d63d2 55%, #a78bfa 100%);
    color: #fff;
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: 0.84rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-align: left;
    vertical-align: middle;
}

.pedi-article-content table thead th:not(:last-child),
.pedi-article-content table thead td:not(:last-child) {
    box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.16);
}

.pedi-article-content table thead tr:first-child th:first-child,
.pedi-article-content table thead tr:first-child td:first-child {
    border-top-left-radius: 18px;
}

.pedi-article-content table thead tr:first-child th:last-child,
.pedi-article-content table thead tr:first-child td:last-child {
    border-top-right-radius: 18px;
}

.pedi-article-content table tbody th,
.pedi-article-content table tbody td {
    padding: 14px 18px;
    border-bottom: 1px solid #efe8fb;
    color: #3f3a4f;
    font-size: 0.98rem;
    line-height: 1.65;
    background: transparent;
}

.pedi-article-content table tbody tr:nth-child(even) th,
.pedi-article-content table tbody tr:nth-child(even) td {
    background: rgba(111, 66, 193, 0.04);
}

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

.pedi-article-content ul,
.pedi-article-content ol {
    padding-left: 0;
    margin: 1.35rem 0 1.6rem;
    list-style: none;
    counter-reset: pedi-counter;
}

.pedi-article-content ul > li,
.pedi-article-content ol > li {
    position: relative;
    padding-left: 27px;
    margin-bottom: 0.85rem;
    color: #444;
    line-height: var(--pedi-line-height);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.pedi-article-content ol > li {
    padding-left: 48px;
    min-height: 34px;
}

.pedi-article-content ul > li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 10px;
    width: 14px;
    height: 14px;
    background: linear-gradient(135deg, #6c5ce7, #a29bfe);
    border-radius: 6px;
    box-shadow: 0 4px 10px rgba(108, 92, 231, 0.2);
}

.pedi-article-content ol > li::before {
    content: counter(pedi-counter);
    counter-increment: pedi-counter;
    position: absolute;
    left: 0;
    top: 0.18em;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #6c5ce7, #8e44ad);
    color: #fff;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    font-weight: 800;
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.25);
    z-index: 1;
}

.pedi-article-content ol > li > p:first-child,
.pedi-article-content ol > li > strong:first-child,
.pedi-article-content ol > li > em:first-child {
    margin-top: 0;
}

.pedi-article-content li > ul,
.pedi-article-content li > ol {
    margin: 15px 0 10px 10px;
    padding-left: 15px;
    border-left: 2px solid #efebff;
}

.pedi-article-content li > ul > li,
.pedi-article-content li > ol > li {
    padding-left: 20px;
    margin-bottom: 12px;
    font-size: calc((var(--pedi-font-size) - 1) * 1px);
}

.pedi-article-content li > ul > li::before {
    width: 10px;
    height: 10px;
    left: 0;
    top: 10px;
}

.pedi-article-content li > ol > li::before {
    width: 26px;
    height: 26px;
    left: 0;
    top: 0.15em;
    font-size: 0.8rem;
}

.pedi-article-content > ul > li:hover,
.pedi-article-content > ol > li:hover {
    color: #000;
    transform: translateX(4px);
}

.related-pets-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.related-pet-card {
    display: block;
    text-decoration: none;
    color: inherit;
    border: 1px solid #ececf4;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.related-pet-card:hover {
    transform: translateY(-3px);
    border-color: #d9d8ff;
    box-shadow: 0 10px 20px rgba(79, 70, 229, 0.12);
}

.related-pet-card img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    display: block;
}

.related-pet-body {
    padding: 10px;
}

.related-pet-title {
    margin: 0 0 4px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-pet-meta {
    font-size: 0.8rem;
    color: #6b7280;
    line-height: 1.35;
}

.pedi-reply-info {
    display: none;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    background: #f3f0ff;
    padding: 12px 15px;
    border-radius: 10px;
    border: 1px solid #e2d9ff;
}

.pedi-reply-text {
    font-size: 0.95rem;
    color: #6f42c1;
}

.reply-icon {
    vertical-align: middle;
    margin-right: 8px;
}

.comment-cancel-reply-btn {
    background: #ff4757;
    color: #fff;
    border: none;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    cursor: pointer;
    font-weight: 700;
    transition: 0.2s;
}

.form-row-inline {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.form-input-flex {
    flex: 1;
}

.pedi-comment-fix {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: flex-start;
    text-align: left;
    gap: 15px;
}

.pedi-comment-fix .avatar-box {
    flex: 0 0 50px;
    width: 50px;
    max-width: 50px;
}

.pedi-comment-fix .content-box {
    flex: 1;
    text-align: left;
}

.comment-level-0 {
    margin-left: 0;
}

.comment-level-1 {
    margin-left: 40px;
}

.comment-level-2 {
    margin-left: 80px;
}

.comment-pending {
    opacity: 0.7;
    border: 1px dashed #ccc !important;
}

.comment-avatar-img {
    width: 50px;
    height: 50px;
    min-width: 50px;
    object-fit: cover;
    display: block;
}

.comment-author {
    font-size: 1rem;
    text-align: left;
}

.comment-date {
    font-size: 0.85rem;
    display: block;
    text-align: left;
}

.comment-text {
    font-size: 0.95rem;
    line-height: 1.5;
    text-align: left;
}

.comment-reply-link {
    font-size: 0.9rem;
}

.sidebar-thumb-img {
    object-fit: cover;
    max-height: 250px;
}

.toc-level-2 {
    margin-left: 0;
}

.toc-level-3 {
    margin-left: 20px;
}

.sidebar-ad-img {
    width: 100%;
    border-radius: 8px;
}

.mobile-toc-toggle {
    position: fixed;
    bottom: 125px;
    right: 0;
    z-index: 1000;
    background: #6f42c1;
    color: #fff;
    padding: 10px 14px 10px 18px;
    border-radius: 30px 0 0 30px;
    box-shadow: -2px 2px 10px rgba(0, 0, 0, 0.15);
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: transform 0.2s;
}

.mobile-toc-toggle:active {
    transform: translateX(5px);
}

.mobile-toc-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    backdrop-filter: blur(2px);
}

.mobile-toc-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-toc-drawer {
    position: fixed;
    top: 0;
    right: -340px;
    width: 340px;
    height: 100%;
    background: #fff;
    z-index: 1101;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.mobile-toc-drawer.active {
    right: 0;
}

.drawer-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
}

.drawer-title {
    font-weight: 700;
    color: #333;
    font-size: 1.1rem;
    margin: 0;
}

.drawer-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    color: #666;
    cursor: pointer;
    padding: 0 5px;
}

.drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

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

.mobile-toc-list li {
    margin-bottom: 12px;
}

.mobile-toc-list a {
    display: block;
    color: #495057;
    text-decoration: none;
    font-size: 0.95rem;
    line-height: 1.4;
    padding-left: 10px;
    border-left: 3px solid transparent;
    transition: all 0.2s;
}

.mobile-toc-list a:hover,
.mobile-toc-list a.active {
    color: #6f42c1;
    border-left-color: #6f42c1;
    padding-left: 15px;
}

.mobile-toc-list a[data-level="3"] {
    margin-left: 15px;
    font-size: 0.9rem;
    color: #666;
}

@media (max-width: 768px) {
    .detail-page-content .pedi-detail-hero {
        border-radius: 22px !important;
        padding: 22px 16px 18px !important;
    }

    .detail-page-content .hero-content-inner {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .detail-page-content .hero-image-new {
        display: none !important;
        margin-top: 0 !important;
    }

    .detail-page-content .hero-image-mobile {
        display: flex !important;
        width: 100%;
    }

    .detail-page-content .hero-text {
        align-items: flex-start !important;
        gap: 16px !important;
    }

    .detail-page-content .hero-text h1 {
        max-width: none !important;
        font-size: clamp(2.2rem, 9vw, 3rem) !important;
        line-height: 0.95 !important;
        white-space: normal !important;
        text-wrap: balance !important;
    }

    .detail-page-content .latin-name {
        font-size: 1.04rem;
    }

    .detail-page-content .hero-stats-new {
        grid-template-columns: 1fr 1fr !important;
        gap: 12px !important;
    }

    .detail-page-content .hero-stats-new .stat-pill {
        padding: 16px 14px 14px;
    }

    .detail-page-content .hero-stats-new .s-label {
        font-size: 0.78rem;
    }

    .detail-page-content .hero-stats-new .s-value {
        font-size: 0.95rem;
    }

    .detail-page-content .img-frame {
        width: min(100%, 290px) !important;
        border-radius: 28px !important;
    }

    .detail-page-content .rating-bars {
        display: grid;
        gap: 14px;
    }

    .detail-page-content .rating-row {
        display: grid;
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "label label"
            "bar val";
        align-items: center;
        gap: 8px 12px;
        margin-bottom: 0;
        padding: 12px 0;
        border-bottom: 1px solid #eef2f7;
    }

    .detail-page-content .rating-row:last-child {
        border-bottom: 0;
        padding-bottom: 0;
    }

    .detail-page-content .rating-row .label {
        grid-area: label;
        flex: none;
        min-width: 0;
        font-size: 0.98rem;
        font-weight: 700;
        line-height: 1.35;
        color: #1f2937;
    }

    .detail-page-content .rating-row .bar-container {
        grid-area: bar;
        width: 100%;
        height: 12px;
        border-radius: 999px;
        background: #e5e7eb;
        overflow: hidden;
    }

    .detail-page-content .rating-row .bar-fill {
        border-radius: 999px;
    }

    .detail-page-content .rating-row .val {
        grid-area: val;
        width: auto;
        min-width: 40px;
        text-align: right;
        font-size: 0.92rem;
        font-weight: 700;
        color: #374151;
    }

    .premium-meta-bar {
        padding: 16px 14px;
    }

    .premium-meta-bar .meta-row {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 12px !important;
    }

    .premium-meta-bar .meta-info-row {
        width: 100%;
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        gap: 8px !important;
        overflow: hidden;
        min-width: 0;
    }

    .premium-meta-bar .meta-item {
        font-size: 0.78rem;
        display: flex;
        align-items: center;
        gap: 5px;
        white-space: nowrap;
        flex: 0 0 auto;
        min-width: 0;
    }

    .premium-meta-bar .meta-info-row > .meta-item:nth-of-type(1),
    .premium-meta-bar .meta-info-row > .meta-item:nth-of-type(2) {
        flex: 0 0 auto;
    }

    .premium-meta-bar .meta-info-row > .meta-item:last-child {
        flex: 1 1 auto;
        overflow: hidden;
    }

    .premium-meta-bar .meta-info-row > .meta-item:last-child a {
        display: inline-block;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .premium-meta-bar .meta-divider {
        display: block !important;
        flex: 0 0 1px;
        width: 1px;
        height: 14px;
        background: #d7ddea;
    }

    .premium-meta-bar .d-flex.align-items-center.gap-4 {
        width: 100%;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        border-top: 1px solid #f0f0f0;
        padding-top: 12px;
        margin-top: 0;
    }

    .share-pills {
        gap: 8px;
    }

    .share-pill {
        width: 36px;
        height: 36px;
    }

    .related-pets-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .container.page-content.detail-page-content {
        padding-left: 3px !important;
        padding-right: 3px !important;
    }

    .pedi-breadcrumb-bar .container {
        padding-left: 3px !important;
        padding-right: 3px !important;
        display: flex;
        align-items: center;
        flex-wrap: nowrap;
        gap: 0;
        white-space: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .pedi-breadcrumb-bar .container::-webkit-scrollbar {
        display: none;
        width: 0;
        height: 0;
    }

    .pedi-breadcrumb-bar a,
    .pedi-breadcrumb-bar .sep,
    .pedi-breadcrumb-bar .current {
        flex: 0 0 auto;
    }

    .detail-page-content,
    .detail-main,
    .pedi-article-content,
    .pedi-comments-list {
        overflow-x: hidden;
    }

    .pedi-comment-form .form-row {
        flex-wrap: wrap;
        gap: 10px !important;
    }

    .pedi-comment-form .form-row .form-input {
        min-width: 0;
        flex: 1 1 100%;
    }

    .comment-wrapper {
        margin-left: 0 !important;
    }

    .replies-container .comment-wrapper {
        margin-left: 0 !important;
        padding-left: 10px;
        border-left: 2px solid #f1f3f5;
    }

    .pedi-article-content table {
        display: block;
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .pedi-article-content iframe,
    .pedi-article-content video,
    .pedi-article-content embed,
    .pedi-article-content object {
        max-width: 100% !important;
    }
}

@media (max-width: 575px) {
    .detail-page-content .hero-stats-new {
        grid-template-columns: 1fr !important;
    }

    .detail-page-content .img-frame {
        width: min(100%, 260px) !important;
    }
}

@media (min-width: 992px) {
    .mobile-toc-toggle,
    .mobile-toc-overlay,
    .mobile-toc-drawer {
        display: none !important;
    }
}

.marketplace-widget {
    background: linear-gradient(135deg, #fff 0%, #fffbf5 100%);
    border: 1px solid #ffe8cc;
    border-radius: 16px;
}

.text-orange {
    color: #f97316;
}

.btn-orange {
    background-color: #f97316;
    color: #fff;
    border: none;
    transition: all 0.2s ease;
}

.btn-orange:hover {
    background-color: #ea580c;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.2) !important;
}

/* Legacy selectors retained here so the view can stay free of inline CSS. */
.article-body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 1.15rem;
    line-height: 1.85;
    color: #334155;
    letter-spacing: -0.011em;
}

.article-body p {
    margin-bottom: 1.75rem;
}

.article-header h1 {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: #0f172a;
    margin-bottom: 25px;
}

.article-body h2 {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-weight: 800;
    font-size: 1.75rem;
    margin-top: 3.5rem;
    margin-bottom: 1.5rem;
    color: #0f172a;
    letter-spacing: -0.025em;
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 18px;
}

.article-body h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 15%;
    height: 70%;
    width: 6px;
    background: linear-gradient(180deg, #1877f2, #0d6efd);
    border-radius: 4px;
}

.article-body h3 {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-weight: 700;
    font-size: 1.4rem;
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
    color: #1e293b;
    letter-spacing: -0.02em;
}

.article-body ul {
    background: #f8fafc;
    padding: 25px 25px 25px 45px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    margin: 30px 0;
    list-style: none;
}

.article-body ul li {
    margin-bottom: 12px;
    position: relative;
    font-weight: 500;
    color: #475569;
}

.article-body ul li::before {
    content: "\2713";
    position: absolute;
    left: -25px;
    color: #1877f2;
    font-weight: 900;
}

.article-body ul li strong {
    color: #0f172a;
    font-weight: 700;
}

.article-body img {
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    margin: 20px 0;
    transition: transform 0.3s ease;
}

.article-body p > img + noscript + br + strong,
.article-body p > img + br + strong,
.article-body p > strong:first-child:has(img) + br + em {
    display: block;
    text-align: center;
    font-size: 0.95rem;
    color: #64748b;
    font-style: italic;
    margin-top: -10px;
    margin-bottom: 30px;
    font-weight: 500;
}

.article-body strong {
    color: #1a202c;
    font-weight: 700;
}
