:root {
    --md-font-body: 'Lora', Georgia, 'Times New Roman', serif;
    --md-font-ui: 'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif;
    --md-color-text: #242424;
    --md-color-muted: #6b6b6b;
    --md-color-subtle: #b3b3b1;
    --md-color-border: #e5e5e3;
    --md-color-hover: #f2f2f0;
    --md-color-accent: #1a8917;
}

.md-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0;
    z-index: 9999;
    background: var(--md-color-accent);
}

.md-article-wrap {
    color: var(--md-color-text);
    font-family: var(--md-font-body);
}

.md-article-title {
    font-family: var(--md-font-body);
    font-size: clamp(28px, 5vw, 42px);
    line-height: 1.18;
    margin: 0 0 1rem;
}

.md-article-subtitle {
    font-family: var(--md-font-ui);
    font-size: 20px;
    color: var(--md-color-muted);
}

.article-meta-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    border-top: 1px solid var(--md-color-border);
    border-bottom: 1px solid var(--md-color-border);
    padding: 1rem 0;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.meta-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.meta-author-thumb {
    display: inline-flex;
    text-decoration: none;
}

.meta-author-img {
    border-radius: 50%;
    width: 32px;
    height: 32px;
    object-fit: cover;
}

.meta-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.meta-author-name {
    font-family: var(--md-font-ui);
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.meta-author-name a,
.author-name a {
    color: inherit;
    text-decoration: none;
}

.meta-author-name a:hover,
.author-name a:hover {
    text-decoration: underline;
}

.meta-details {
    font-family: var(--md-font-ui);
    font-size: 12px;
    color: var(--md-color-muted);
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.meta-updated,
.meta-read-time,
.meta-views {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.meta-sep {
    color: var(--md-color-subtle);
}

.meta-category-tag {
    background: var(--md-color-hover);
    border: 1px solid var(--md-color-border);
    border-radius: 20px;
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    color: var(--md-color-muted);
}

.badge-verified,
.badge-verified-full {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    background: #e8f5e9;
    color: #2e7d32;
    border-radius: 20px;
    font-weight: 600;
}

.badge-verified {
    font-size: 11px;
    padding: 1px 7px;
}

.badge-verified-full {
    font-size: 12px;
    padding: 3px 10px;
}

.md-featured-image img {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
}

.md-featured-image figcaption {
    font-family: var(--md-font-ui);
    font-size: 12px;
    color: var(--md-color-muted);
    text-align: center;
    margin-top: 8px;
}

.md-article-body {
    font-size: 20px;
    line-height: 1.84;
    word-break: break-word;
}

.md-article-body p {
    margin-bottom: 2em;
}

.md-article-body > p:first-of-type::first-letter {
    font-size: 3.8em;
    font-weight: 700;
    float: left;
    line-height: .8;
    margin: .05em .08em 0 0;
}

.md-reaction-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--md-color-border);
    border-bottom: 1px solid var(--md-color-border);
    padding: 1rem 0;
    margin: 2.5rem 0;
    flex-wrap: wrap;
    gap: 1rem;
}

.md-clap-btn,
.md-share-btn {
    border: 1px solid var(--md-color-border);
    border-radius: 100px;
    background: #fff;
    padding: 6px 14px;
    color: var(--md-color-muted);
    text-decoration: none;
    cursor: pointer;
    font-family: var(--md-font-ui);
}

.md-clap-btn.clapped {
    border-color: var(--md-color-accent);
    color: var(--md-color-accent);
}

.md-share-group {
    display: flex;
    gap: 8px;
}

.md-author-card {
    background: linear-gradient(180deg, #ffffff 0%, #fcfcfc 100%);
    border: 1px solid #e9e9e9;
    box-shadow: 0 8px 28px rgba(16, 24, 40, .06);
}

.md-author-card-head {
    margin-bottom: 1rem;
}

.md-author-kicker {
    display: inline-flex;
    font-family: var(--md-font-ui);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #6d6d6d;
    background: #f5f5f5;
    border: 1px solid #ececec;
    border-radius: 999px;
    padding: 4px 10px;
}

.author-profile-block {
    border-top: 2px solid #eee;
    padding-top: 2rem;
    margin-top: 2rem;
}

.author-card {
    border-radius: 10px;
    padding: 1.5rem;
}

.author-identity {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.author-photo-wrap {
    position: relative;
}

.author-photo {
    border-radius: 50%;
    width: 80px;
    height: 80px;
    object-fit: cover;
}

.author-verified-icon {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 20px;
    height: 20px;
    background: #43a047;
    color: #fff;
    border-radius: 50%;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
}

.author-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.author-label {
    font-family: var(--md-font-ui);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--md-color-muted);
    margin: 0;
}

.author-name {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    font-family: var(--md-font-ui);
}

.author-title {
    font-family: var(--md-font-ui);
    font-size: 13px;
    color: var(--md-color-muted);
    margin: 0;
}

.author-credentials {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

.badge-credential {
    border: 1px solid #dcdcdc;
    border-radius: 20px;
    font-size: 11px;
    padding: 2px 9px;
    color: #4e4e4e;
    background: #fff;
    font-weight: 600;
}

.author-profile-link {
    font-family: var(--md-font-ui);
    font-size: 13px;
    color: var(--md-color-accent);
    text-decoration: none;
    font-weight: 500;
    margin-top: .35rem;
}

.author-profile-link:hover {
    text-decoration: underline;
}

.author-bio {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.author-bio p {
    font-family: var(--md-font-ui);
    font-size: .95rem;
    line-height: 1.8;
    color: #4f4f4f;
    margin-bottom: .75rem;
}

.md-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 2rem 0;
}

.md-tag-item {
    background: var(--md-color-hover);
    border-radius: 100px;
    padding: 6px 16px;
    text-decoration: none;
    font-size: 13px;
    color: var(--md-color-text);
    font-family: var(--md-font-ui);
}

@media (max-width: 767.98px) {
    .md-article-body {
        font-size: 18px;
        line-height: 1.78;
    }

    .article-meta-bar {
        align-items: flex-start;
    }

    .author-identity {
        flex-direction: column;
        align-items: flex-start;
    }

    .author-photo {
        width: 64px;
        height: 64px;
    }
}
