
.av-page {
    background: #f8fafc;
    min-height: calc(100vh - 70px);
    padding-bottom: 80px;
}

.av-topbar {
    padding: 24px 20px 0;
    max-width: 1100px;
    margin: 0 auto;
}

.av-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px 8px 12px;
    background: #ffffff;
    border: 1px solid rgba(31, 95, 153, 0.12);
    border-radius: 999px;
    color: #1f5f99;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(13, 40, 70, 0.05);
    transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.av-back svg { width: 16px; height: 16px; }

.av-back:hover {
    background: #1f5f99;
    color: #ffffff;
    transform: translateX(-2px);
    box-shadow: 0 6px 14px rgba(31, 95, 153, 0.3);
}

/* ---------- Article header ---------- */
.av-header {
    max-width: 820px;
    margin: 32px auto 0;
    padding: 0 20px;
    text-align: center;
}

.av-header__category {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(31, 95, 153, 0.08);
    color: #1f5f99;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.av-header__title {
    font-size: 44px;
    line-height: 1.18;
    font-weight: 800;
    color: #0f2747;
    letter-spacing: -0.015em;
    margin: 0 0 16px;
}

.av-header__subtitle {
    font-size: 20px;
    line-height: 1.55;
    color: #475569;
    font-weight: 400;
    margin: 0 0 28px;
}

.av-header__divider {
    width: 56px;
    height: 3px;
    border-radius: 3px;
    margin: 0 auto 28px;
    background: linear-gradient(90deg, #1f5f99 0%, #10b981 100%);
}

/* ---------- Byline (author + meta) ---------- */
.av-byline {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 10px 18px 10px 10px;
    background: #ffffff;
    border-radius: 999px;
    box-shadow: 0 6px 16px rgba(13, 40, 70, 0.06);
    border: 1px solid rgba(31, 95, 153, 0.08);
}

.av-byline__avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1f5f99 0%, #10b981 100%);
    color: #ffffff;
    display: grid;
    place-items: center;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
}

.av-byline__text {
    text-align: left;
    line-height: 1.3;
}

.av-byline__author {
    font-size: 14px;
    font-weight: 700;
    color: #1f3b57;
    margin: 0;
}

.av-byline__meta {
    font-size: 12px;
    color: #64748b;
    margin: 2px 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.av-byline__dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #cbd5e1;
    display: inline-block;
}

/* ---------- Article body ---------- */
.av-article {
    max-width: 760px;
    margin: 48px auto 0;
    padding: 0 20px;
}

.av-article__content {
    background: #ffffff;
    border-radius: 22px;
    padding: 56px clamp(28px, 6vw, 64px) 48px;
    box-shadow: 0 10px 30px rgba(13, 40, 70, 0.07);
    border: 1px solid rgba(31, 95, 153, 0.06);
    position: relative;
    overflow: hidden;
}

.av-article__content::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1f5f99 0%, #10b981 100%);
}

.av-prose {
    font-size: 18px;
    line-height: 1.78;
    color: #2f3e54;
    font-family: "Segoe UI", system-ui, sans-serif;
}

.av-prose,
.av-prose * {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.av-prose p {
    margin: 0 0 1.35em;
    white-space: pre-wrap;
}

.av-prose p:last-child { margin-bottom: 0; }

.av-prose > p:first-of-type::first-letter {
    float: left;
    font-size: 56px;
    font-weight: 800;
    line-height: 0.95;
    color: #1f5f99;
    padding: 6px 12px 0 0;
    margin-top: 4px;
}

.av-footer {
    max-width: 760px;
    margin: 28px auto 0;
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
}

.av-footer__updated {
    font-size: 13px;
    color: #64748b;
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.av-footer__updated svg { width: 14px; height: 14px; color: #94a3b8; }

.av-footer__actions {
    display: flex;
    gap: 10px;
}

.av-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 40px;
    padding: 0 18px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: 1.5px solid;
    background: transparent;
    transition: background 0.18s ease, color 0.18s ease, transform 0.15s ease;
}

.av-btn svg { width: 14px; height: 14px; }

.av-btn--edit {
    color: #1f5f99;
    border-color: #1f5f99;
}
.av-btn--edit:hover {
    background: #1f5f99;
    color: #ffffff;
    transform: translateY(-1px);
}

.av-btn--delete {
    color: #dc2626;
    border-color: #dc2626;
}
.av-btn--delete:hover {
    background: #dc2626;
    color: #ffffff;
    transform: translateY(-1px);
}

.av-cta {
    max-width: 760px;
    margin: 48px auto 0;
    padding: 0 20px;
}

.av-cta__card {
    background: linear-gradient(135deg, #1f5f99 0%, #174b79 100%);
    border-radius: 18px;
    padding: 28px 32px;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    position: relative;
    overflow: hidden;
    box-shadow: 0 14px 32px rgba(31, 95, 153, 0.28);
}

.av-cta__card::after {
    content: "";
    position: absolute;
    top: -40%;
    right: -10%;
    width: 240px;
    height: 240px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.35) 0%, rgba(16, 185, 129, 0) 70%);
    pointer-events: none;
}

.av-cta__title {
    margin: 0 0 4px;
    font-size: 20px;
    font-weight: 700;
}

.av-cta__text {
    margin: 0;
    color: #dbeafe;
    font-size: 14px;
    line-height: 1.55;
}

.av-cta__link {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    background: #ffffff;
    color: #1f5f99;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.av-cta__link:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.18);
    color: #174b79;
}

.av-progress {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 3px;
    background: rgba(31, 95, 153, 0.08);
    z-index: 999;
    pointer-events: none;
}

.av-progress__fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #1f5f99 0%, #10b981 100%);
    transition: width 0.05s linear;
}

@media (max-width: 768px) {
    .av-header__title { font-size: 32px; }
    .av-header__subtitle { font-size: 17px; }
    .av-prose { font-size: 17px; line-height: 1.75; }
    .av-article__content { padding: 36px 22px 32px; border-radius: 18px; }
    .av-prose > p:first-of-type::first-letter {
        font-size: 44px;
        padding: 4px 10px 0 0;
    }
    .av-cta__card {
        padding: 22px;
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
    .av-footer { justify-content: flex-start; }
}

@media (max-width: 480px) {
    .av-header__title { font-size: 26px; }
    .av-byline { flex-wrap: wrap; padding: 8px 14px 8px 8px; }
}

@media (prefers-reduced-motion: reduce) {
    .av-back, .av-btn, .av-cta__link { transition: none; }
    .av-progress__fill { transition: none; }
}
