.blog-auth-state {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    font-size: 0.95rem;
}

.blog-auth-state .auth-label {
    color: #4b5563;
    font-weight: 600;
}

.blog-auth-state .auth-username {
    color: #111827;
    font-weight: 800;
}

.blog-auth-state a,
.blog-auth-state button {
    color: #4f46e5;
    font: inherit;
    font-weight: 700;
    text-decoration: none;
}

.blog-auth-state button {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.subscribe-status,
.comment-status,
.auth-form-status {
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0.75rem 0 0;
    padding: 0.85rem 1rem;
}

form[data-blog-api-placeholder="subscribe"] {
    display: flex;
    align-items: center;   /* Vertically centers all children */
    gap: 0.75rem;
}

form[data-blog-api-placeholder="subscribe"] label {
    white-space: nowrap;
}

.subscribe-status[hidden],
.comment-status[hidden],
.auth-form-status[hidden] {
    display: none;
}

.subscribe-status.is-success,
.comment-status.is-success,
.auth-form-status.is-success {
    background: #ecfdf5;
    border: 1px solid #6ee7b7;
    color: #065f46;
}

.subscribe-status.is-error,
.comment-status.is-error,
.auth-form-status.is-error {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    color: #991b1b;
}

.comments-section {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    box-sizing: border-box;
    margin-top: 2rem;
    max-width: 100%;
    padding: 1rem 1.25rem;
}

.comments-guest-prompt {
    margin: 0.75rem 0 1rem;
}

.comments-guest-prompt a {
    color: #4f46e5;
    font-weight: 700;
    text-decoration: none;
}

.comment-composer,
.comment-reply-form {
    box-sizing: border-box;
    display: grid;
    gap: 0.75rem;
    margin: 1rem 0;
    max-width: 100%;
    min-width: 0;
    width: 100%;
}

.comment-composer[hidden],
.comment-reply-form[hidden] {
    display: none !important;
}

.comment-composer textarea,
.comment-reply-form textarea {
    border: 1px solid #c7d2fe;
    border-radius: 12px;
    box-sizing: border-box;
    display: block;
    font: inherit;
    max-width: 100%;
    min-height: 110px;
    min-width: 0;
    padding: 0.85rem 1rem;
    resize: vertical;
    width: 100%;
}

.comment-composer button,
.comment-reply-form button,
.comment-item .reply-button {
    background: #6366f1;
    border: none;
    border-radius: 999px;
    box-sizing: border-box;
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-weight: 800;
    justify-self: start;
    max-width: 100%;
    padding: 0.7rem 1.1rem;
}

.comment-item .reply-button {
    background: transparent;
    color: #4f46e5;
    font-size: 0.9rem;
    margin-left: auto;
    padding: 0;
}

.comments-list {
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
    max-width: 100%;
    min-width: 0;
}

.comment-item {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-sizing: border-box;
    max-width: 100%;
    min-width: 0;
    padding: 0.55rem 1rem 0.85rem;
}

.comment-item.is-reply {
    background: #f3f4f6;
    border-color: #e5e7eb;
    border-left: 3px solid #c7d2fe;
    margin-left: 0;
    padding-left: 1rem;
}

.comment-replies {
    display: grid;
    gap: 0.65rem;
    margin-top: 0.65rem;
}

.comment-replies-hidden {
    display: grid;
    gap: 0.65rem;
}

.comment-replies-hidden[hidden] {
    display: none !important;
}

.view-more-replies {
    background: transparent;
    border: none;
    color: #4f46e5;
    cursor: pointer;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    justify-self: start;
    margin-top: 0.15rem;
    padding: 0.25rem 0;
    text-align: left;
}

.view-more-replies:hover {
    text-decoration: underline;
}

.comment-meta {
    align-items: center;
    color: #6b7280;
    display: flex;
    flex-wrap: wrap;
    font-size: 0.85rem;
    gap: 0.35rem;
    margin: 0 0 0.3rem;
}

.comment-author {
    color: #111827;
    font-weight: 800;
}

.comment-body {
    color: #374151;
    line-height: 1.6;
    margin: 0;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
    word-break: break-word;
}

.comments-empty {
    color: #6b7280;
    font-style: italic;
    margin: 0.5rem 0 0;
}

.auth-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(17, 24, 39, 0.08);
    margin: 2rem auto;
    max-width: 480px;
    padding: 2rem 1.5rem;
    box-sizing: border-box;
}

.auth-card form {
    max-width: 100%;
    width: 100%;
}

.auth-card h1 {
    color: #111827;
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.auth-card p {
    color: #4b5563;
    margin-bottom: 1rem;
}

.auth-card label {
    color: #374151;
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.auth-card input {
    border: 1px solid #c7d2fe;
    border-radius: 12px;
    box-sizing: border-box;
    display: block;
    font: inherit;
    margin-bottom: 1rem;
    max-width: 100%;
    padding: 0.8rem 1rem;
    width: 100%;
}

.auth-card button[type="submit"] {
    background: #6366f1;
    border: none;
    border-radius: 999px;
    box-sizing: border-box;
    color: #fff;
    cursor: pointer;
    display: block;
    font: inherit;
    font-weight: 800;
    max-width: 100%;
    padding: 0.85rem 1.25rem;
    width: 100%;
}

.auth-card .auth-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.auth-card .auth-links a {
    color: #4f46e5;
    font-weight: 700;
    text-decoration: none;
}
