html, body {
    font-family: "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, sans-serif;
    background-color: hsl(0, 0%, 13%);
    color: rgba(255, 255, 255, 0.886);
}

a, .btn-link {
    color: #006bb7;
}

/* ─── Blog público ───────────────────────────────────────────────────── */
.blog-heading {
    margin-bottom: 1.25rem;
    text-align: center;
}

.blog-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 0 auto 0.5rem;
    max-width: 880px;
}

/* Centra paginador y artículos de detalle bajo el contenedor principal */
.content {
    width: min(100%, 1180px);
    margin: 0 auto;
}

.post {
    max-width: 960px;
    margin: 0 auto;
}

.pager {
    justify-content: center;
}

/* Contenido renderizado del post (HTML sanitizado vía MarkupString, sin
   atributo de CSS isolation → se estiliza globalmente). */
.post-content h2 { font-size: 1.5rem; margin: 1.6rem 0 0.6rem; }
.post-content h3 { font-size: 1.25rem; margin: 1.4rem 0 0.5rem; }
.post-content p { margin: 0 0 1rem; }
.post-content a { color: hsl(200, 78%, 70%); }
.post-content ul,
.post-content ol { margin: 0 0 1rem 1.5rem; }
.post-content img { max-width: 100%; height: auto; border-radius: 6px; }

.post-content blockquote {
    margin: 0 0 1rem;
    padding: 0.5rem 1rem;
    border-left: 3px solid hsl(200, 78%, 59%);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.75);
}

.post-content :not(pre) > code {
    font-family: "Cascadia Code", "Consolas", monospace;
    font-size: 0.875em;
    background: rgba(255, 255, 255, 0.08);
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
    color: hsl(200, 78%, 78%);
}

.post-content pre {
    margin: 0 0 1rem;
    padding: 1rem;
    background: hsl(0, 0%, 11%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    overflow-x: auto;
}

.post-content pre code {
    font-family: "Cascadia Code", "Consolas", monospace;
    font-size: 0.875rem;
    line-height: 1.5;
    background: none;
    padding: 0;
}

/* ─── Menú lateral Manage/Admin (NavigationView) ─────────────────────── */
/* En global porque los <NavLink> renderizan fuera del scope de la razor.css. */
.umanage-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-family: "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, sans-serif;
}

.umanage-nav .umanage-nav__item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px 10px 16px;
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 14px;
    text-decoration: none;
    border: 1px solid transparent;
    transition: background 120ms ease, color 120ms ease, border-color 120ms ease, transform 120ms ease;
}

.umanage-nav .umanage-nav__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    font-size: 16px;
    line-height: 1;
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.55);
    transition: color 120ms ease;
}

.umanage-nav .umanage-nav__item:hover {
    background: linear-gradient(90deg, rgba(72,153,247,0.10), rgba(255,255,255,0.04));
    color: #fff;
    border-color: rgba(255, 255, 255, 0.08);
    text-decoration: none;
    transform: translateX(2px);
}

.umanage-nav .umanage-nav__item:hover .umanage-nav__icon {
    color: hsl(200, 78%, 72%);
}

.umanage-nav .umanage-nav__item.active {
    background: linear-gradient(90deg, rgba(72,153,247,0.22), rgba(72,153,247,0.06));
    color: #fff;
    font-weight: 600;
    border-color: rgba(72, 153, 247, 0.32);
}

.umanage-nav .umanage-nav__item.active .umanage-nav__icon {
    color: hsl(200, 78%, 80%);
}

.umanage-nav .umanage-nav__item.active::before {
    content: "";
    position: absolute;
    left: -1px;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 18px;
    border-radius: 2px;
    background: hsl(200, 78%, 59%);
}

.umanage-nav .umanage-nav__item--admin {
    margin-top: 10px;
    padding-top: 14px;
    border-top: 1px dashed rgba(255, 255, 255, 0.08);
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

/* ─── Encabezados centrados (auth + blog) ────────────────────────────── */
.auth-heading,
.blog-heading {
    text-align: center;
    margin-bottom: 1.5rem;
}

/* ─── Campos multilínea (textarea) estilo WinUI3 ─────────────────────── */
.u-field-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.886);
    margin-bottom: 4px;
}

.u-textarea {
    width: 100%;
    min-height: 96px;
    resize: vertical;
    font-family: "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.886);
    background: rgba(255, 255, 255, 0.042);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-bottom-color: rgba(255, 255, 255, 0.54);
    border-radius: 4px;
    padding: 8px 10px;
    outline: none;
    transition: background 80ms ease, border-color 80ms ease;
}

.u-textarea::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

.u-textarea:hover {
    background: rgba(255, 255, 255, 0.061);
}

.u-textarea:focus {
    background: hsl(0, 0%, 12%);
    border-bottom-color: hsl(200, 78%, 59%);
    border-bottom-width: 2px;
}

.comment-form {
    margin-top: 1.5rem;
}

.comment-form__heading {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

/* ─── Admin ──────────────────────────────────────────────────────────── */
.u-select {
    width: 100%;
    font-family: "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, sans-serif;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.886);
    background: rgba(255, 255, 255, 0.042);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-bottom-color: rgba(255, 255, 255, 0.54);
    border-radius: 4px;
    padding: 7px 10px;
    outline: none;
}

.u-select:focus {
    border-bottom-color: hsl(200, 78%, 59%);
}

.u-select option {
    background: hsl(0, 0%, 14%);
    color: rgba(255, 255, 255, 0.886);
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.75rem;
}

.admin-stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
}

.admin-stat__num {
    font-size: 1.75rem;
    font-weight: 600;
    line-height: 1;
}

.admin-stat__label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

.admin-muted {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

.admin-tag-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
}

.admin-tag-option {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    cursor: pointer;
}

/* ─── Avatar de perfil ───────────────────────────────────────────────── */
.profile-avatar {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.profile-avatar__form {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.profile-avatar__input {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.78);
    max-width: 260px;
}

/* ─── Account pages (WinUI3) ─────────────────────────────────────────── */
.account-links {
    display: flex;
    flex-direction: column;
    gap: 2px;
    align-items: flex-start;
}

/* Passkey submit button rendered by PasskeySubmit.razor — WinUI outline button look */
.passkey-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-family: "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, sans-serif;
    font-size: 12px;
    font-weight: 600;
    line-height: 20px;
    padding: 5px 11px;
    min-width: 72px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: rgba(255, 255, 255, 0.886);
    border-radius: 4px;
    cursor: pointer;
    transition: background 80ms ease, border-color 80ms ease;
}

.passkey-link:hover {
    background: rgba(255, 255, 255, 0.061);
    border-color: rgba(255, 255, 255, 0.54);
}

/* WinUI-style links inside Identity Manage tables / paragraphs */
.account-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.account-table td {
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    vertical-align: middle;
}

.account-table tr:last-child td {
    border-bottom: none;
}

.account-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

h1:focus {
    outline: none;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}


.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

code {
    color: #c02d76;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* ─── Biblioteca de medios (Módulo 2) ────────────────────────────────── */
.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
}

.media-item {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    font-size: 13px;
}

.media-item__thumb {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.04);
}

.media-item__thumb--file {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
}

.media-item__name {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.886);
    word-break: break-word;
}

.media-item__path {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
}

.media-item__meta {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

/* ─── Footer del sitio (Módulo 1) ────────────────────────────────────── */
.site-footer {
    margin-top: 3rem;
    padding: 1.5rem 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    font-size: 13px;
}

.site-footer__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.site-footer__link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
}

.site-footer__link:hover {
    color: rgba(255, 255, 255, 0.95);
    text-decoration: underline;
}

.site-footer__copy {
    color: rgba(255, 255, 255, 0.45);
}

/* ═══════════════════════════════════════════════════════════════════════════
   Sprint 2 — M3 (Search), M5 (Author profiles), M10 (SEO breadcrumbs)
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── Search highlight (used in snippets) ──────────────────────────────── */
mark {
    background: hsl(48, 96%, 53%);
    color: hsl(0, 0%, 10%);
    border-radius: 2px;
    padding: 0 2px;
}

/* ─── Breadcrumb ────────────────────────────────────────────────────────── */
.breadcrumb {
    margin-bottom: 1.25rem;
}

.breadcrumb__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

.breadcrumb__item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.breadcrumb__item:not(:last-child)::after {
    content: "/";
    opacity: 0.4;
}

.breadcrumb__item a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
}

.breadcrumb__item a:hover {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: underline;
}

.breadcrumb__item[aria-current="page"] {
    color: rgba(255, 255, 255, 0.75);
}

/* ─── Author card ───────────────────────────────────────────────────────── */
.author-card {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
}

.author-card--large {
    gap: 1.25rem;
}

.author-card__body {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    flex: 1;
    min-width: 0;
}

.author-card__name {
    font-size: 0.95rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    line-height: 1.2;
}

.author-card--large .author-card__name {
    font-size: 1.35rem;
}

.author-card__name:hover {
    color: hsl(200, 78%, 75%);
}

.author-card__bio {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.5;
    margin: 0;
}

.author-card--large .author-card__bio {
    font-size: 0.95rem;
}

.author-card__links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.2rem;
}

.author-card__link {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.author-card__link:hover {
    color: hsl(200, 78%, 75%);
}

/* ─── Post author footer ────────────────────────────────────────────────── */
.post__author {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* ─── Author page ───────────────────────────────────────────────────────── */
.author-page__header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.author-page__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 1.25rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.55);
}

.author-page__stats strong {
    color: rgba(255, 255, 255, 0.85);
}

.author-page__heading {
    font-size: 1.15rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 1.25rem 0;
}

/* ─── Search results page ───────────────────────────────────────────────── */
.search-page {
    max-width: 720px;
}

.search-page__form {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.search-page__form input[type="search"] {
    flex: 1;
    padding: 0.55rem 0.85rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
}

.search-page__form input[type="search"]:focus {
    outline: none;
    border-color: hsl(200, 78%, 59%);
    background: rgba(255, 255, 255, 0.09);
}

.search-page__form button[type="submit"] {
    padding: 0.55rem 1.1rem;
    background: hsl(200, 78%, 42%);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 0.95rem;
    cursor: pointer;
    white-space: nowrap;
}

.search-page__form button[type="submit"]:hover {
    background: hsl(200, 78%, 50%);
}

.search-page__count {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 1.25rem;
}

.search-results {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.search-result {
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    padding-bottom: 1.5rem;
}

.search-result:last-child {
    border-bottom: none;
}

.search-result__head {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.35rem;
}

.search-result__title {
    font-size: 1.05rem;
    font-weight: 600;
    color: hsl(200, 78%, 72%);
    text-decoration: none;
}

.search-result__title:hover {
    color: hsl(200, 78%, 85%);
    text-decoration: underline;
}

.search-result__date {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 0.4rem;
}

.search-result__snippet {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.6;
}

.search-result__snippet mark {
    background: hsl(48, 96%, 53%);
    color: hsl(0, 0%, 10%);
    border-radius: 2px;
    padding: 0 2px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   Sprint 3 — M4 (Reactions, threaded comments, bookmarks, series)
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── Reaction bar ──────────────────────────────────────────────────────── */
.post__reactions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0 1.5rem 0;
    padding: 1rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.reaction-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.reaction-bar__form {
    margin: 0;
}

.reaction-bar__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.reaction-bar__btn:hover {
    background: rgba(255, 255, 255, 0.10);
    border-color: rgba(255, 255, 255, 0.20);
}

.reaction-bar__btn--active {
    background: hsl(200, 78%, 35%);
    border-color: hsl(200, 78%, 59%);
    color: #fff;
}

.reaction-bar__btn--readonly {
    cursor: default;
    opacity: 0.7;
}

.reaction-bar__emoji {
    font-size: 1.05rem;
}

.reaction-bar__count {
    font-variant-numeric: tabular-nums;
    font-weight: 500;
}

.reaction-bar__login {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    margin-left: 0.5rem;
}

.reaction-bar__login:hover {
    color: hsl(200, 78%, 75%);
    text-decoration: underline;
}

/* ─── Bookmark button ───────────────────────────────────────────────────── */
.bookmark-btn__form {
    margin: 0;
    margin-left: auto;
}

.bookmark-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.85rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.bookmark-btn:hover {
    background: rgba(255, 255, 255, 0.10);
    border-color: rgba(255, 255, 255, 0.20);
}

.bookmark-btn--active {
    background: hsl(48, 96%, 18%);
    border-color: hsl(48, 96%, 53%);
    color: hsl(48, 96%, 80%);
}

.bookmark-btn--readonly {
    opacity: 0.7;
}

.bookmark-btn__icon {
    font-size: 1.05rem;
}

.bookmark-btn__count {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.8rem;
}

/* ─── Threaded comments ─────────────────────────────────────────────────── */
.comment-card--reply {
    margin-top: 0.75rem;
}

.comment-card__children {
    margin-top: 0.75rem;
    margin-left: 1.5rem;
    border-left: 2px solid rgba(255, 255, 255, 0.08);
    padding-left: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.comment-card__reply {
    margin-top: 0.75rem;
}

.comment-card__reply-toggle {
    cursor: pointer;
    color: hsl(200, 78%, 72%);
    font-size: 0.875rem;
    user-select: none;
}

.comment-card__reply-toggle:hover {
    text-decoration: underline;
}

.comment-card__reply-form {
    margin-top: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* ─── Series banner & navigation in post ────────────────────────────────── */
.post__series-banner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    padding: 0.85rem 1rem;
    margin: 1.5rem 0;
    background: rgba(64, 158, 215, 0.10);
    border: 1px solid hsl(200, 78%, 35%);
    border-radius: 8px;
}

.post__series-badge {
    background: hsl(200, 78%, 42%);
    color: #fff;
    padding: 0.15rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.post__series-link {
    color: hsl(200, 78%, 80%);
    font-weight: 600;
    text-decoration: none;
}

.post__series-link:hover {
    text-decoration: underline;
}

.post__series-position {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.85rem;
}

.post__series-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 2rem 0;
}

.post__series-prev,
.post__series-next {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.post__series-prev:hover,
.post__series-next:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: hsl(200, 78%, 35%);
}

.post__series-next {
    flex-direction: row-reverse;
    text-align: right;
}

.post__series-arrow {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.45);
}

.post__series-direction {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0.15rem;
}

.post__series-title {
    display: block;
    font-weight: 600;
    color: hsl(200, 78%, 80%);
}

/* ─── Public series page ────────────────────────────────────────────────── */
.series-page__header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.series-page__title {
    margin: 0.5rem 0 0.5rem 0;
    font-size: 2rem;
}

.series-page__description {
    color: rgba(255, 255, 255, 0.65);
    margin: 0 0 0.75rem 0;
}

.series-page__count {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    margin: 0;
}

.series-page__list {
    list-style: decimal-leading-zero inside;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.series-page__item {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.series-page__post-title {
    color: hsl(200, 78%, 72%);
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
}

.series-page__post-title:hover {
    color: hsl(200, 78%, 85%);
    text-decoration: underline;
}

.series-page__post-meta {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

/* ─── Reading list (account) ────────────────────────────────────────────── */
.reading-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.reading-list__item {
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.reading-list__title {
    color: hsl(200, 78%, 72%);
    font-weight: 600;
    font-size: 1.05rem;
    text-decoration: none;
}

.reading-list__title:hover {
    text-decoration: underline;
}

.reading-list__meta {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

.reading-list__summary {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.9rem;
    margin: 0.5rem 0 0 0;
}

/* ═══════════════════════════════════════════════════════════════════════════
   M6 — Newsletter
   ═══════════════════════════════════════════════════════════════════════════ */
.newsletter-widget {
    width: 100%;
    max-width: 560px;
    margin: 0 auto 1rem auto;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
}

.newsletter-widget__heading {
    margin: 0 0 0.35rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.newsletter-widget__intro {
    margin: 0 0 0.85rem 0;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
}

.newsletter-widget__form {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.newsletter-widget__input {
    flex: 1;
    min-width: 12rem;
    padding: 0.55rem 0.75rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    color: #fff;
    font-size: 0.9rem;
}

.newsletter-widget__input:focus {
    outline: none;
    border-color: hsl(200, 78%, 59%);
    background: rgba(255, 255, 255, 0.09);
}

.newsletter-widget__input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.newsletter-widget__btn {
    padding: 0.55rem 1.25rem;
    background: hsl(200, 78%, 42%);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
}

.newsletter-widget__btn:hover {
    background: hsl(200, 78%, 50%);
}

.newsletter-widget__note {
    margin: 0.65rem 0 0 0;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
}

.newsletter-widget__msg {
    padding: 0.6rem 0.85rem;
    border-radius: 8px;
    font-size: 0.85rem;
    margin-bottom: 0.85rem;
}

.newsletter-widget__msg--ok {
    background: hsl(145, 60%, 16%);
    color: hsl(145, 60%, 80%);
    border: 1px solid hsl(145, 60%, 30%);
}

.newsletter-widget__msg--error {
    background: hsl(0, 60%, 18%);
    color: hsl(0, 70%, 85%);
    border: 1px solid hsl(0, 60%, 35%);
}

.newsletter-page {
    max-width: 640px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   M7 — API keys (admin)
   ═══════════════════════════════════════════════════════════════════════════ */
.apikey-reveal {
    margin-bottom: 1.25rem;
    padding: 0.9rem 1rem;
    background: hsl(48, 96%, 12%);
    border: 1px solid hsl(48, 96%, 40%);
    border-radius: 8px;
    color: hsl(48, 96%, 85%);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.apikey-reveal__value {
    display: block;
    padding: 0.5rem 0.75rem;
    background: rgba(0, 0, 0, 0.35);
    border-radius: 6px;
    font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
    font-size: 0.85rem;
    word-break: break-all;
    color: #fff;
    user-select: all;
}