/* Article page styles */

/* Article body — rich text content */
.article-body {
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    line-height: 1.85;
    color: #4A3930;
}

.article-body h1 {
    font-family: 'Cormorant', Georgia, serif;
    font-size: 36px;
    font-weight: 500;
    color: #1A110D;
    line-height: 1.15;
    margin: 2em 0 0.6em;
}

.article-body h2 {
    font-family: 'Cormorant', Georgia, serif;
    font-size: 30px;
    font-weight: 500;
    color: #1A110D;
    line-height: 1.2;
    margin: 1.8em 0 0.5em;
}

.article-body h3 {
    font-family: 'Cormorant', Georgia, serif;
    font-size: 24px;
    font-weight: 600;
    color: #1A110D;
    line-height: 1.25;
    margin: 1.5em 0 0.5em;
}

.article-body h4 {
    font-size: 18px;
    font-weight: 600;
    color: #1A110D;
    line-height: 1.3;
    margin: 1.4em 0 0.4em;
}

.article-body p {
    margin: 0 0 1.25em;
}

.article-body a {
    color: #6A3B33;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: rgba(106, 59, 51, 0.3);
    transition: text-decoration-color 0.2s ease;
}

.article-body a:hover {
    text-decoration-color: #6A3B33;
}

.article-body img {
    max-width: 100%;
    height: auto;
    margin: 1.5em 0;
    display: block;
}

.article-body blockquote {
    border-left: 3px solid #CC9C8D;
    padding: 0.8em 1.5em;
    margin: 1.5em 0;
    background: #F5EFEA;
    color: #4A3930;
    font-style: italic;
}

.article-body blockquote p:last-child {
    margin-bottom: 0;
}

.article-body ul,
.article-body ol {
    margin: 1em 0 1.5em;
    padding-left: 1.5em;
}

.article-body li {
    margin-bottom: 0.5em;
}

.article-body ul li {
    list-style-type: disc;
}

.article-body ol li {
    list-style-type: decimal;
}

.article-body ul ul li {
    list-style-type: circle;
}

.article-body code {
    background: #F5EFEA;
    padding: 0.15em 0.4em;
    border-radius: 3px;
    font-size: 0.9em;
    color: #6A3B33;
}

.article-body pre {
    background: #1A110D;
    color: #F5EFEA;
    padding: 1.25em 1.5em;
    overflow-x: auto;
    margin: 1.5em 0;
    font-size: 14px;
    line-height: 1.6;
}

.article-body pre code {
    background: none;
    padding: 0;
    color: inherit;
    font-size: inherit;
}

.article-body hr {
    border: none;
    border-top: 1px solid rgba(106, 59, 51, 0.08);
    margin: 2em 0;
}

.article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
    font-size: 14px;
}

.article-body th,
.article-body td {
    border: 1px solid rgba(106, 59, 51, 0.1);
    padding: 0.6em 1em;
    text-align: left;
}

.article-body th {
    background: #F5EFEA;
    font-weight: 600;
    color: #1A110D;
}

.article-body strong {
    font-weight: 600;
    color: #1A110D;
}

.article-body em {
    font-style: italic;
}

/* Fade in animation for article content */
@keyframes articleFadeIn {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.article-fade-in {
    animation: articleFadeIn 0.6s cubic-bezier(.25, 0, .25, 1) forwards;
}

/* Copy link tooltip */
.copy-tooltip {
    position: absolute;
    top: -36px;
    left: 50%;
    transform: translateX(-50%);
    background: #1A110D;
    color: #fff;
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.copy-tooltip.show {
    opacity: 1;
}
