/* =========================================================
   blog.css — استایل اختصاصی بلاگ
   شهبازیون | SuFramework v3.0
   ========================================================= */

/* ─────────────────────────────────────────────────────────
   Blog Index — صفحهٔ اصلی بلاگ
   ───────────────────────────────────────────────────────── */
.blog-featured {
    padding: 4rem 0 2rem;
    background: var(--c-bg-alt);
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.75rem;
    margin-top: 2.5rem;
}

.featured-card {
    display: flex;
    flex-direction: column;
    background: var(--c-bg);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.featured-card:hover {
    border-color: var(--c-primary-light);
    box-shadow: 0 12px 32px rgba(109, 40, 217, 0.10);
    transform: translateY(-4px);
}

.featured-media {
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-primary-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.featured-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-emoji {
    font-size: 3.5rem;
    line-height: 1;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15));
}

.featured-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1;
}

.featured-badge {
    align-self: flex-start;
    background: var(--c-accent);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    letter-spacing: 0.02em;
}

.featured-body h3 {
    font-size: 1.15rem;
    margin: 0;
    line-height: 1.5;
    color: var(--c-text);
    transition: color 0.2s;
}

.featured-card:hover .featured-body h3 {
    color: var(--c-primary);
}

.featured-body p {
    margin: 0;
    color: var(--c-text-soft);
    font-size: 0.9rem;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ─────────────────────────────────────────────────────────
   Blog Main
   ───────────────────────────────────────────────────────── */
.blog-main {
    padding: 3rem 0 4rem;
}

.blog-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 2rem;
    padding-bottom: 1.75rem;
    border-bottom: 1px solid var(--c-border);
}

.category-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1.1rem;
    background: var(--c-bg-alt);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-full);
    color: var(--c-text-soft);
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.category-chip:hover {
    background: var(--c-bg-soft);
    border-color: var(--c-primary-light);
    color: var(--c-primary);
}

.category-chip.is-active {
    background: var(--c-primary);
    border-color: var(--c-primary);
    color: #fff;
}

.category-count {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.1rem 0.5rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
}

.category-chip:not(.is-active) .category-count {
    background: var(--c-bg-soft);
    color: var(--c-text-muted);
}

/* Toolbar */
.blog-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.blog-count {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--c-text-soft);
}

.blog-search {
    display: flex;
    align-items: center;
    max-width: 320px;
    flex: 1;
    min-width: 220px;
    background: var(--c-bg-alt);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-full);
    overflow: hidden;
    transition: var(--transition);
}

.blog-search:focus-within {
    border-color: var(--c-primary);
    background: var(--c-bg);
    box-shadow: 0 0 0 3px rgba(109, 40, 217, 0.08);
}

.blog-search input {
    flex: 1;
    padding: 0.7rem 1.1rem;
    background: transparent;
    border: none;
    outline: none;
    font-family: inherit;
    font-size: 0.9rem;
    color: var(--c-text);
    min-width: 0;
}

.blog-search input::placeholder {
    color: var(--c-text-muted);
}

.blog-search button {
    padding: 0.7rem 1rem;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    transition: transform 0.2s;
}

.blog-search button:hover {
    transform: scale(1.1);
}

/* ─────────────────────────────────────────────────────────
   Posts Grid
   ───────────────────────────────────────────────────────── */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.75rem;
}

.post-card {
    background: var(--c-bg);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
}

.post-card:hover {
    border-color: var(--c-primary-light);
    box-shadow: 0 12px 32px rgba(109, 40, 217, 0.10);
    transform: translateY(-4px);
}

.post-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.post-media {
    aspect-ratio: 16 / 9;
    background: var(--c-bg-soft);
    overflow: hidden;
}

.post-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.post-card:hover .post-media img {
    transform: scale(1.04);
}

.post-body {
    padding: 1.35rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    flex: 1;
}

.post-title {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.5;
    margin: 0;
    color: var(--c-text);
    transition: color 0.2s;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-card:hover .post-title {
    color: var(--c-primary);
}

.post-excerpt {
    margin: 0;
    color: var(--c-text-soft);
    font-size: 0.9rem;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: auto;
    padding-top: 0.85rem;
    border-top: 1px solid var(--c-border-soft);
    font-size: 0.8rem;
    color: var(--c-text-muted);
}

.post-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.new-badge {
    display: inline-block;
    background: var(--c-accent);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.15rem 0.55rem;
    border-radius: var(--radius-full);
    margin-left: 0.5rem;
    vertical-align: middle;
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.7; }
}

/* ─────────────────────────────────────────────────────────
   Pagination
   ───────────────────────────────────────────────────────── */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 3rem 0 0;
    flex-wrap: wrap;
}

.page-link {
    min-width: 40px;
    height: 40px;
    padding: 0 0.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--c-bg);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    color: var(--c-text-soft);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.page-link:hover {
    border-color: var(--c-primary);
    color: var(--c-primary);
}

.page-link.is-active {
    background: var(--c-primary);
    border-color: var(--c-primary);
    color: #fff;
}

/* ─────────────────────────────────────────────────────────
   Post Show Page
   ───────────────────────────────────────────────────────── */
.post-page {
    padding-bottom: 4rem;
}

.post-hero {
    padding: 3rem 0 2rem;
    background: var(--c-bg-alt);
    border-bottom: 1px solid var(--c-border);
}

.post-category {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.9rem;
    background: var(--c-primary);
    color: #fff;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    margin: 0.75rem 0 1.25rem;
    transition: var(--transition);
}

.post-category:hover {
    background: var(--c-primary-dark);
    color: #fff;
}

.post-page .post-title {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    margin: 0 0 1rem;
    color: var(--c-text);
    display: block;
    -webkit-line-clamp: unset;
}

.post-lead {
    font-size: 1.05rem;
    color: var(--c-text-soft);
    line-height: 1.8;
    margin: 0 0 1.5rem;
    max-width: 720px;
}

.post-cover {
    margin: 2.5rem auto;
    max-width: 900px;
}

.post-cover img {
    width: 100%;
    border-radius: var(--radius-lg);
    display: block;
}

/* Layout: content + share */
.post-layout {
    display: grid;
    grid-template-columns: 1fr 200px;
    gap: 3rem;
    align-items: start;
    max-width: 960px;
}

.post-content {
    font-size: 1.02rem;
    line-height: 1.95;
    color: var(--c-text);
    overflow-wrap: break-word;
}

.post-content h2,
.post-content h3 {
    margin: 2.5rem 0 1rem;
    color: var(--c-text);
    line-height: 1.4;
}

.post-content h2 { font-size: 1.5rem; }
.post-content h3 { font-size: 1.25rem; }

.post-content p {
    margin: 0 0 1.5rem;
    color: var(--c-text-soft);
    text-align: justify;
}

.post-content a {
    color: var(--c-primary);
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

.post-content img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 2rem auto;
    border-radius: var(--radius);
    border: 1px solid var(--c-border);
}

.post-content ul,
.post-content ol {
    padding-right: 1.5rem;
    margin: 0 0 1.5rem;
    color: var(--c-text-soft);
}

.post-content li { margin-bottom: 0.5rem; }

.post-content blockquote {
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    border-right: 4px solid var(--c-primary);
    background: var(--c-bg-alt);
    border-radius: var(--radius);
    color: var(--c-text-soft);
    font-style: italic;
}

.post-content code {
    background: var(--c-bg-soft);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-family: ui-monospace, "SF Mono", Menlo, monospace;
    font-size: 0.92em;
    color: var(--c-primary-dark);
}

.post-content pre {
    background: #1a1f2e;
    color: #e5e7eb;
    padding: 1.25rem;
    border-radius: var(--radius);
    overflow-x: auto;
    margin: 1.5rem 0;
    direction: ltr;
    text-align: left;
}

.post-content pre code {
    background: transparent;
    color: inherit;
    padding: 0;
}

.post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    border-radius: var(--radius);
    overflow: hidden;
    font-size: 0.95rem;
}

.post-content th,
.post-content td {
    padding: 0.85rem 1rem;
    text-align: right;
    border-bottom: 1px solid var(--c-border);
}

.post-content th {
    background: var(--c-bg-soft);
    font-weight: 700;
    color: var(--c-text);
}

/* Share */
.post-share {
    position: sticky;
    top: 100px;
    padding: 1.25rem;
    background: var(--c-bg-alt);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    text-align: center;
}

.share-label {
    display: block;
    font-size: 0.85rem;
    color: var(--c-text-muted);
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.share-btn {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    background: var(--c-bg);
    border: 1px solid var(--c-border);
    cursor: pointer;
    font-size: 1.1rem;
    text-decoration: none;
    transition: var(--transition);
}

.share-btn:hover {
    transform: translateY(-3px);
    border-color: var(--c-primary);
    box-shadow: 0 6px 16px rgba(109, 40, 217, 0.15);
}

/* ─────────────────────────────────────────────────────────
   Related Posts
   ───────────────────────────────────────────────────────── */
.related-posts {
    padding: 4rem 0;
    background: var(--c-bg-alt);
    border-top: 1px solid var(--c-border);
}

/* ─────────────────────────────────────────────────────────
   Comments
   ───────────────────────────────────────────────────────── */
.comments-section {
    padding: 4rem 0;
    background: var(--c-bg);
    border-top: 1px solid var(--c-border);
}

.comments-head {
    margin-bottom: 2rem;
}

.comments-head h2 {
    font-size: 1.4rem;
    margin: 0;
    color: var(--c-text);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.comments-count {
    color: var(--c-text-muted);
    font-size: 1rem;
    font-weight: 500;
}

.comment-form {
    background: var(--c-bg-alt);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 2.5rem;
    transition: var(--transition);
}

.comment-form:focus-within {
    border-color: var(--c-primary-light);
    background: var(--c-bg);
}

.comment-form-reply-hint {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.6rem 0.9rem;
    background: rgba(109, 40, 217, 0.06);
    border: 1px solid rgba(109, 40, 217, 0.15);
    border-radius: var(--radius);
    margin-bottom: 0.85rem;
    font-size: 0.85rem;
    color: var(--c-primary-dark);
}

.reply-cancel {
    background: transparent;
    border: none;
    color: var(--c-danger);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
}

.comment-form textarea {
    width: 100%;
    min-height: 110px;
    padding: 1rem;
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    background: var(--c-bg);
    font-family: inherit;
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--c-text);
    resize: vertical;
    transition: var(--transition);
}

.comment-form textarea:focus {
    outline: none;
    border-color: var(--c-primary);
    box-shadow: 0 0 0 3px rgba(109, 40, 217, 0.08);
}

.comment-form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 0.85rem;
    flex-wrap: wrap;
}

.comment-char-count {
    font-size: 0.8rem;
    color: var(--c-text-muted);
    font-variant-numeric: tabular-nums;
}

.comment-form-message {
    margin-top: 0.85rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    font-size: 0.9rem;
}

.comment-form-message.is-success {
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.25);
    color: #065f46;
}

.comment-form-message.is-error {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: #991b1b;
}

.comment-login-prompt {
    padding: 1.75rem;
    text-align: center;
    background: var(--c-bg-alt);
    border: 1px dashed var(--c-border);
    border-radius: var(--radius-lg);
    margin-bottom: 2.5rem;
    color: var(--c-text-soft);
}

.comment-login-prompt p { margin: 0 0 1rem; }

/* Comments list */
.comments-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.comments-empty {
    padding: 2rem;
    text-align: center;
    color: var(--c-text-muted);
    background: var(--c-bg-alt);
    border-radius: var(--radius);
    margin: 0;
}

.comment-item {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--c-bg-alt);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    transition: var(--transition);
}

.comment-item:hover {
    border-color: var(--c-border-soft);
}

.comment-item.is-admin {
    background: linear-gradient(135deg, rgba(109, 40, 217, 0.04), rgba(139, 92, 246, 0.02));
    border-color: rgba(109, 40, 217, 0.25);
}

.comment-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--c-primary), var(--c-primary-light));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    flex-shrink: 0;
}

.comment-item.is-admin .comment-avatar {
    background: linear-gradient(135deg, var(--c-accent), var(--c-accent-dark));
}

.comment-body {
    min-width: 0;
}

.comment-head {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-bottom: 0.5rem;
}

.comment-name {
    font-weight: 700;
    color: var(--c-text);
    font-size: 0.95rem;
}

.comment-badge {
    background: var(--c-accent);
    color: #fff;
    font-size: 0.7rem;
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-full);
    font-weight: 700;
}

.comment-time {
    font-size: 0.78rem;
    color: var(--c-text-muted);
}

.comment-text {
    color: var(--c-text-soft);
    font-size: 0.92rem;
    line-height: 1.75;
    margin-bottom: 0.6rem;
    overflow-wrap: break-word;
}

.comment-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.comment-action {
    background: transparent;
    border: none;
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
    color: var(--c-text-muted);
    cursor: pointer;
    border-radius: 6px;
    transition: var(--transition);
    font-family: inherit;
}

.comment-action:hover {
    background: var(--c-bg-soft);
    color: var(--c-primary);
}

.comment-delete:hover {
    color: var(--c-danger);
}

.comment-children {
    grid-column: 1 / -1;
    margin-top: 1rem;
    padding-right: 1rem;
    border-right: 2px solid var(--c-border);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.comment-children .comment-item {
    background: var(--c-bg);
}

/* ─────────────────────────────────────────────────────────
   Search Page
   ───────────────────────────────────────────────────────── */
.page-hero-search {
    padding: 3rem 0;
    background: var(--c-bg-alt);
    border-bottom: 1px solid var(--c-border);
}

.search-form {
    max-width: 600px;
    margin: 1.5rem auto 0;
}

.search-input-wrap {
    display: flex;
    align-items: center;
    background: var(--c-bg);
    border: 2px solid var(--c-border);
    border-radius: var(--radius-full);
    overflow: hidden;
    transition: var(--transition);
}

.search-input-wrap:focus-within {
    border-color: var(--c-primary);
    box-shadow: 0 0 0 4px rgba(109, 40, 217, 0.08);
}

.search-input-wrap input {
    flex: 1;
    padding: 0.9rem 1.35rem;
    border: none;
    outline: none;
    background: transparent;
    font-family: inherit;
    font-size: 1rem;
    color: var(--c-text);
    min-width: 0;
}

.search-input-wrap button {
    padding: 0.9rem 1.5rem;
    background: var(--c-primary);
    color: #fff;
    border: none;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.search-input-wrap button:hover {
    background: var(--c-primary-dark);
}

.search-popular {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.25rem;
    font-size: 0.88rem;
}

.search-popular-label {
    color: var(--c-text-muted);
}

.search-tag {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    background: var(--c-bg);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    color: var(--c-text-soft);
    text-decoration: none;
    transition: var(--transition);
}

.search-tag:hover {
    border-color: var(--c-primary);
    color: var(--c-primary);
}

.search-results-head {
    margin-bottom: 2rem;
}

.search-results-head h2 {
    font-size: 1.15rem;
    color: var(--c-text);
    margin: 0;
    font-weight: 600;
}

.search-results-head h2 em {
    color: var(--c-primary);
    font-style: normal;
    font-weight: 800;
}

.search-hints {
    list-style: none;
    padding: 0;
    margin: 1rem 0 1.5rem;
    text-align: right;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
    color: var(--c-text-soft);
    font-size: 0.9rem;
}

.search-hints li {
    padding: 0.35rem 0;
}

.search-hints li::before {
    content: "•";
    color: var(--c-primary);
    margin-left: 0.5rem;
    font-weight: 700;
}

.empty-state-search {
    text-align: center;
    padding: 3rem 1.5rem;
    background: var(--c-bg-alt);
    border-radius: var(--radius-lg);
    border: 1px dashed var(--c-border);
}

.empty-state-search h2,
.empty-state-search h3 {
    color: var(--c-text);
    margin: 0.5rem 0 0.75rem;
    font-size: 1.25rem;
}

.empty-state-search p {
    color: var(--c-text-soft);
    margin: 0 0 1rem;
}

.empty-state-search .btn {
    margin-top: 0.5rem;
}

/* ─────────────────────────────────────────────────────────
   Responsive
   ───────────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .post-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .post-share {
        position: static;
        text-align: right;
    }

    .share-buttons {
        justify-content: flex-start;
    }

    .share-label {
        text-align: right;
    }
}

@media (max-width: 768px) {
    .blog-featured { padding: 3rem 0 1rem; }
    .blog-main     { padding: 2rem 0 3rem; }

    .posts-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .featured-grid {
        grid-template-columns: 1fr;
    }

    .post-hero { padding: 2rem 0 1.5rem; }

    .post-cover { margin: 1.5rem auto; }

    .comments-section { padding: 2.5rem 0; }

    .comment-item {
        grid-template-columns: 40px 1fr;
        gap: 0.85rem;
        padding: 1rem;
    }

    .comment-avatar {
        width: 40px;
        height: 40px;
        font-size: 1.05rem;
    }

    .blog-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .blog-search {
        max-width: 100%;
    }

    .search-form {
        margin: 1.25rem auto 0;
    }

    .search-input-wrap {
        flex-direction: column;
        border-radius: var(--radius);
    }

    .search-input-wrap input,
    .search-input-wrap button {
        width: 100%;
        border-radius: 0;
    }

    .search-input-wrap button {
        border-radius: 0 0 calc(var(--radius) - 2px) calc(var(--radius) - 2px);
    }

    .search-input-wrap input {
        border-radius: calc(var(--radius) - 2px) calc(var(--radius) - 2px) 0 0;
    }
}

@media (max-width: 480px) {
    .featured-body h3 { font-size: 1.05rem; }
    .post-title       { font-size: 1rem; }
    .post-body        { padding: 1.1rem 1.15rem 1.25rem; }
    .post-content     { font-size: 0.98rem; line-height: 1.85; }
    .post-content h2  { font-size: 1.25rem; }
    .post-content h3  { font-size: 1.1rem; }
}