/* ===================================
   Cenmax Blog — blog-specific styles
   Loads after assets/css/style.css (the untouched
   copy of the main site's design system).
   =================================== */

:root {
    --text-muted: #888888;
    --primary: #6366f1;
    --text-primary: #111111;
}

/* ===================================
   Accessibility
   =================================== */

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    width: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    word-wrap: normal !important;
}

.skip-link.screen-reader-text:focus {
    clip: auto;
    clip-path: none;
    height: auto;
    width: auto;
    position: fixed;
    top: 8px;
    left: 8px;
    z-index: 100000;
    padding: 12px 20px;
    background: var(--text);
    color: var(--bg);
    border-radius: var(--radius-sm);
    font-weight: 600;
    text-decoration: none;
}

/* ===================================
   WP admin bar offsets (logged-in users)
   =================================== */

/* JS measures the shared fixed shell, including wrapping announcement text. */
:root {
    --blog-announcement-height: 40px;
    --blog-navbar-height: 105px;
    --blog-admin-height: 0px;
    --blog-shell-height: calc(var(--blog-announcement-height) + var(--blog-navbar-height));
}
body.admin-bar { --blog-admin-height: 32px; }
.maxlabs-announcement { top: var(--blog-admin-height); }
.navbar-custom { top: calc(var(--blog-admin-height) + var(--blog-announcement-height)); }
.mobile-menu {
    top: var(--blog-admin-height);
    scroll-padding-top: calc(var(--blog-shell-height) + 24px);
    padding-top: calc(var(--blog-shell-height) + 24px);
}
@media (max-width: 991px) { :root { --blog-announcement-height: 44px; } }
@media (max-width: 782px) { body.admin-bar { --blog-admin-height: 46px; } }
@media (max-width: 575px) { :root { --blog-announcement-height: 52px; } }

/* Floating blog navigation clears the announcement, navbar and WordPress toolbar. */
.blog-pills {
    position: sticky;
    top: calc(var(--blog-admin-height) + var(--blog-shell-height));
    z-index: 90;
    margin-top: var(--blog-shell-height);
    padding: 12px 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

/* Native Cloud disclosure preserves the shared appearance for keyboard and touch. */
.nav-cloud > summary { list-style: none; cursor: pointer; }
.nav-cloud > summary::-webkit-details-marker { display: none; }
.nav-cloud:not([open]) > .nav-dropdown-menu { display: none; }
.nav-cloud[open] > .nav-dropdown-menu {
    opacity: 1; visibility: visible; transform: translateX(-50%);
}
.nav-cloud:not([open]):hover > summary i { transform: none; }
.nav-cloud[open] > summary i { transform: rotate(180deg); }
a:focus-visible, button:focus-visible, summary:focus-visible {
    outline: 3px solid var(--accent); outline-offset: 4px;
}

.blog-pills-track {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding: 2px;
}

.blog-pills-track::-webkit-scrollbar {
    display: none;
}

.blog-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    flex-shrink: 0;
    padding: 8px 18px;
    border: 1px solid var(--border);
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.7);
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.3s var(--ease-out-expo);
}

.blog-pill i {
    font-size: 0.8rem;
}

.blog-pill:hover {
    color: var(--accent);
    border-color: rgba(99, 102, 241, 0.35);
    background: rgba(99, 102, 241, 0.08);
    transform: translateY(-1px);
}

.blog-pill.is-active {
    background: var(--text);
    border-color: var(--text);
    color: #fff;
}

.blog-pill.is-active:hover {
    transform: none;
    color: #fff;
}

.blog-pill-external {
    margin-left: auto;
    border-style: dashed;
}

/* WP-menu fallback markup inside the pill track */
.blog-pills-track > li {
    list-style: none;
    flex-shrink: 0;
}

.blog-pills-track > li > a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 18px;
    border: 1px solid var(--border);
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.7);
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.blog-pills-track > li.current-menu-item > a {
    background: var(--text);
    border-color: var(--text);
    color: #fff;
}

/* ===================================
   Blog hero (archive / single headers)
   — compact version of .about-hero
   =================================== */

.blog-hero {
    position: relative;
    padding: 70px 0 60px;
    background: linear-gradient(180deg, #fbfbfe 0%, #f1f3fb 100%);
    overflow: hidden;
}

.blog-hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.blog-hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(99, 102, 241, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.03) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 40%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 40%, transparent 100%);
}

.blog-hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
}

.blog-hero-glow-1 {
    width: 500px;
    height: 500px;
    top: -200px;
    right: -100px;
    background: rgba(99, 102, 241, 0.12);
}

.blog-hero-glow-2 {
    width: 400px;
    height: 400px;
    bottom: -200px;
    left: -100px;
    background: rgba(236, 72, 153, 0.08);
}

.blog-hero .container {
    position: relative;
    z-index: 1;
}

.blog-hero-inner {
    max-width: 780px;
}

.blog-hero-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: #1a1a2e;
    margin-bottom: 16px;
}

.blog-hero-desc {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    max-width: 640px;
}

.blog-hero-desc p:last-child {
    margin-bottom: 0;
}

/* Breadcrumbs */
.breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-tertiary);
}

.breadcrumbs a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumbs a:hover {
    color: var(--accent);
}

.breadcrumbs i {
    font-size: 0.65rem;
    color: var(--text-tertiary);
}

.breadcrumbs span[aria-current] {
    color: var(--text-tertiary);
}

/* From the main site's hosting.css (not bundled) — used in blog heroes */
.section-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(99, 102, 241, 0.15);
    color: #6366f1;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 100px;
    margin-bottom: 1rem;
}

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ===================================
   Post grid & cards
   =================================== */

.blog-section {
    padding: 70px 0 100px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 32px;
}

@media (max-width: 480px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
}

.post-card {
    padding: 0;
    overflow: hidden;
}

.post-card-thumb {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.post-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-out-expo);
}

.post-card:hover .post-card-thumb img {
    transform: scale(1.04);
}

.post-card-thumb-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: var(--gradient);
    color: rgba(255, 255, 255, 0.85);
    font-size: 2rem;
}

.post-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 14px;
    padding: 28px;
}

.post-category-pill {
    display: inline-block;
    align-self: flex-start;
    padding: 0.35rem 0.85rem;
    background: rgba(99, 102, 241, 0.12);
    color: #6366f1;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: 100px;
    text-decoration: none;
    position: relative;
    z-index: 2; /* stays clickable above the card's stretched link */
    transition: all 0.3s ease;
}

.post-category-pill:hover {
    background: rgba(99, 102, 241, 0.2);
    color: #4f46e5;
}

.post-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.02em;
    margin: 0;
}

.post-card-title a {
    color: var(--text);
    text-decoration: none;
}

/* Whole card clickable */
.post-card-title a::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
}

.post-card:hover .post-card-title a {
    color: var(--accent);
}

.post-card-excerpt {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-tertiary);
    font-size: 0.82rem;
    font-weight: 500;
}

/* In cards, pin the meta row to the card bottom */
.post-card .post-meta {
    margin-top: auto;
}

.post-meta time,
.post-meta .post-reading-time {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.post-meta i {
    font-size: 0.8rem;
    line-height: 1;
}

.post-meta-dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--text-tertiary);
}

/* Sticky posts get a gradient edge */
.post-card.is-sticky {
    border: 1px solid transparent;
    background:
        linear-gradient(rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.92)) padding-box,
        var(--gradient) border-box;
}

/* ===================================
   Pagination
   =================================== */

.blog-pagination {
    margin-top: 70px;
}

.blog-pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.blog-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 14px;
    border: 1px solid var(--border);
    border-radius: 100px;
    background: #fff;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s var(--ease-out-expo);
}

.blog-pagination .page-numbers:hover {
    border-color: var(--text);
    color: var(--text);
    transform: translateY(-2px);
}

.blog-pagination .page-numbers.current {
    background: var(--text);
    border-color: var(--text);
    color: #fff;
}

.blog-pagination .page-numbers.dots {
    border: none;
    background: transparent;
}

/* ===================================
   Single post
   =================================== */

.single-hero-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 22px;
}

.single-hero-author {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
}

.single-hero-author img {
    width: 34px;
    height: 34px;
    border-radius: 50%;
}

/* Match the author name's size/rhythm in the hero meta row */
.single-hero-meta .post-meta {
    font-size: 0.9rem;
}

.single-featured {
    max-width: 980px;
    margin: -30px auto 0;
    padding: 0 24px;
    position: relative;
    z-index: 2;
}

.single-featured img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.12);
}

.single-body {
    padding: 60px 0 40px;
}

.entry-content {
    max-width: 740px;
    margin: 0 auto;
    font-size: 1.0625rem;
    line-height: 1.75;
    color: var(--text-secondary);
}

.entry-content > * {
    margin-bottom: 1.4em;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    color: #1a1a2e;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.25;
    margin: 2em 0 0.7em;
}

.entry-content h2 {
    font-size: 1.75rem;
}

.entry-content h3 {
    font-size: 1.35rem;
}

.entry-content h4 {
    font-size: 1.1rem;
}

.entry-content a {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid rgba(99, 102, 241, 0.3);
    transition: border-color 0.2s ease;
}

.entry-content a:hover {
    border-bottom-color: var(--accent);
}

.entry-content ul,
.entry-content ol {
    padding-left: 1.4em;
}

.entry-content li {
    margin-bottom: 0.5em;
}

.entry-content li::marker {
    color: var(--accent);
}

.entry-content strong {
    color: var(--text);
}

.entry-content blockquote {
    position: relative;
    padding: 24px 28px;
    background: var(--bg-subtle);
    border-radius: var(--radius-md);
    border-left: 4px solid transparent;
    background:
        linear-gradient(var(--bg-subtle), var(--bg-subtle)) padding-box,
        var(--gradient) border-box;
    font-style: italic;
    color: var(--text);
}

.entry-content blockquote p:last-child {
    margin-bottom: 0;
}

.entry-content code {
    background: var(--bg-subtle);
    padding: 0.15em 0.45em;
    border-radius: 6px;
    font-size: 0.9em;
    color: #d6336c;
}

.entry-content pre {
    background: #16161d;
    color: #e9ecef;
    padding: 24px;
    border-radius: var(--radius-md);
    overflow-x: auto;
    font-size: 0.9rem;
    line-height: 1.6;
}

.entry-content pre code {
    background: none;
    padding: 0;
    color: inherit;
    font-size: inherit;
}

.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
}

.entry-content figure {
    margin: 2em 0;
}

.entry-content figcaption,
.entry-content .wp-caption-text {
    font-size: 0.85rem;
    color: var(--text-tertiary);
    text-align: center;
    margin-top: 10px;
}

.entry-content hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 3em 0;
}

.entry-content iframe {
    max-width: 100%;
}

/* Tables — comparison posts */
.entry-content .table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 1.4em;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.entry-content table {
    width: 100%;
    min-width: 560px;
    border-collapse: collapse;
    font-size: 0.95rem;
    margin: 0;
}

.entry-content .table-scroll table {
    border: none;
}

.entry-content th,
.entry-content td {
    padding: 14px 18px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.entry-content thead th,
.entry-content tr:first-child th {
    background: var(--bg-elevated);
    color: var(--text);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.entry-content tbody tr:last-child td {
    border-bottom: none;
}

.entry-content tbody tr:hover {
    background: rgba(99, 102, 241, 0.03);
}

/* CTA panel — drop into posts to interlink money pages:
   <div class="cta-panel"><h4>…</h4><p>…</p><a class="btn-cta" href="…"><span>…</span><i class="bi bi-arrow-up-right"></i></a></div> */
.entry-content .cta-panel {
    padding: 32px;
    border-radius: var(--radius-lg);
    border: 1px solid transparent;
    background:
        linear-gradient(rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.95)) padding-box,
        var(--gradient) border-box;
    box-shadow: 0 10px 40px rgba(99, 102, 241, 0.08);
    margin: 2.5em 0;
}

.entry-content .cta-panel h4 {
    margin-top: 0;
}

.entry-content .cta-panel .btn-cta {
    display: inline-flex;
    text-decoration: none;
    border-bottom: none;
}

/* Paginated posts (wp_link_pages) */
.entry-content .page-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-weight: 600;
    color: var(--text-tertiary);
    font-size: 0.9rem;
}

.entry-content .page-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    border: 1px solid var(--border);
    border-radius: 100px;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
}

/* WP core alignment/gallery classes */
.alignleft {
    float: left;
    margin: 0.5em 1.5em 1em 0;
}

.alignright {
    float: right;
    margin: 0.5em 0 1em 1.5em;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.wp-caption {
    max-width: 100%;
}

.entry-content .wp-block-image img {
    border-radius: var(--radius-md);
}

/* ===================================
   Tags, prev/next, related, author
   =================================== */

.single-footer {
    max-width: 740px;
    margin: 0 auto;
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 40px 0;
}

.post-tags a {
    padding: 6px 14px;
    border: 1px solid var(--border);
    border-radius: 100px;
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.post-tags a:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.post-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 50px 0;
}

@media (max-width: 640px) {
    .post-nav {
        grid-template-columns: 1fr;
    }
}

.post-nav-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 24px 28px;
    text-decoration: none;
}

.post-nav-card.post-nav-next {
    text-align: right;
    align-items: flex-end;
}

.post-nav-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-tertiary);
}

.post-nav-title {
    color: var(--text);
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.35;
}

.post-nav-card:hover .post-nav-title {
    color: var(--accent);
}

.related-posts {
    padding: 60px 0 90px;
    border-top: 1px solid var(--border);
}

.related-posts-title {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #1a1a2e;
    margin-bottom: 32px;
}

.author-box {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 28px 32px;
    margin: 50px 0;
}

.author-box img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    flex-shrink: 0;
}

.author-box-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
}

.author-box-bio {
    color: var(--text-secondary);
    font-size: 0.92rem;
    margin: 0;
}

/* ===================================
   Comments
   =================================== */

.comments-area {
    max-width: 740px;
    margin: 0 auto;
    padding: 0 0 90px;
}

.comments-title,
.comment-reply-title {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #1a1a2e;
    margin-bottom: 28px;
}

.comment-list {
    list-style: none;
    padding: 0;
    margin: 0 0 50px;
}

.comment-list .children {
    list-style: none;
    padding-left: 32px;
    border-left: 2px solid var(--border);
    margin-left: 22px;
}

.comment-body {
    padding: 22px 0;
    border-bottom: 1px solid var(--border);
}

.comment-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.comment-meta .avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
}

.comment-author .fn {
    font-style: normal;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text);
}

.comment-author .says {
    display: none;
}

.comment-metadata {
    font-size: 0.8rem;
}

.comment-metadata a {
    color: var(--text-tertiary);
    text-decoration: none;
}

.comment-content {
    color: var(--text-secondary);
    font-size: 0.97rem;
    line-height: 1.7;
}

.comment-content p:last-child {
    margin-bottom: 0;
}

.reply .comment-reply-link {
    display: inline-block;
    margin-top: 10px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
}

.comment-awaiting-moderation {
    font-size: 0.85rem;
    color: var(--text-tertiary);
    font-style: italic;
}

/* Comment form */
.comment-form label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: #fff;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    margin-bottom: 20px;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.12);
}

.comment-form .comment-form-cookies-consent {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 20px;
}

.comment-form .comment-form-cookies-consent input {
    margin: 0;
    flex-shrink: 0;
}

.comment-form .comment-form-cookies-consent label {
    margin: 0;
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.comment-form .form-submit {
    margin-bottom: 0;
}

.comment-form .submit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: var(--text);
    color: var(--bg);
    border: none;
    border-radius: 100px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s var(--ease-out-expo);
}

.comment-form .submit:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.comment-respond {
    padding: 32px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
}

.comment-list .comment-respond {
    margin: 20px 0;
}

.logged-in-as,
.comment-notes {
    font-size: 0.85rem;
    color: var(--text-tertiary);
    margin-bottom: 20px;
}

/* ===================================
   Search form
   =================================== */

.blog-search-form {
    display: flex;
    align-items: center;
    max-width: 480px;
    border: 1px solid var(--border);
    border-radius: 100px;
    background: #fff;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.blog-search-form:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.12);
}

.blog-search-form input[type="search"] {
    flex: 1;
    border: none;
    outline: none;
    padding: 14px 22px;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text);
    background: transparent;
    min-width: 0;
}

.blog-search-form button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    margin: 4px;
    border: none;
    border-radius: 50%;
    background: var(--text);
    color: var(--bg);
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.3s var(--ease-out-expo);
}

.blog-search-form button:hover {
    transform: scale(1.06);
}

/* ===================================
   Empty state & 404
   =================================== */

.content-none {
    text-align: center;
    padding: 60px 24px;
}

.content-none i {
    font-size: 3rem;
    color: var(--text-tertiary);
}

.content-none h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1a1a2e;
    margin: 20px 0 12px;
}

.content-none p {
    color: var(--text-secondary);
    max-width: 440px;
    margin: 0 auto 28px;
}

.content-none .blog-search-form {
    margin: 0 auto;
}

.error-404-hero {
    min-height: 70vh;
    display: flex;
    align-items: center;
    text-align: center;
}

.error-404-code {
    font-size: clamp(6rem, 18vw, 11rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
    margin-bottom: 8px;
}

.error-404-hero .blog-hero-inner {
    max-width: 640px;
    margin: 0 auto;
}

.error-404-hero .blog-search-form {
    margin: 0 auto 28px;
}

.error-404-ctas {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.error-404-ctas .btn-cta {
    display: inline-flex;
    text-decoration: none;
}

/* ===================================
   Responsive tweaks
   =================================== */

@media (max-width: 767px) {
    .blog-hero {
        padding: 50px 0 44px;
    }

    .blog-section {
        padding: 50px 0 80px;
    }

    .single-featured {
        margin-top: -20px;
    }

    .entry-content {
        font-size: 1rem;
    }

    .author-box {
        flex-direction: column;
    }
}

/* Light glass surfaces and soft ambient color from the current home page. */
body {
    background:
        radial-gradient(900px 600px at 0% 0%, rgba(99, 102, 241, .07), transparent 60%),
        radial-gradient(900px 600px at 100% 30%, rgba(236, 72, 153, .05), transparent 60%),
        #fbfbfe;
}
.post-card, .author-box, .post-nav-card {
    border: 1px solid rgba(255, 255, 255, .9);
    background: rgba(255, 255, 255, .72);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 24px 60px rgba(49, 46, 129, .09);
}
.blog-pagination .nav-links { flex-wrap: wrap; }
.entry-content img { max-width: 100%; height: auto; }
.entry-content pre { max-width: 100%; overflow-x: auto; }
.blog-hero-title, .entry-content, .post-card-title { overflow-wrap: anywhere; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
    [data-reveal] { opacity: 1; transform: none; }
}
