/* Blog Frontend Styles - Aligned with INPERITIA Design System */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #ffffff;
    color: #1a1a1a;
    line-height: 1.6;
    font-size: 14px;
    overflow-x: hidden;
}

body.blog-page {
    background-color: #f7f8fa;
    background-image:
        linear-gradient(to right, rgba(15, 23, 42, 0.035) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(15, 23, 42, 0.025) 1px, transparent 1px);
    background-size: 42px 42px;
    background-attachment: fixed;
}

.blog-page .nav-purchase-btn-label {
    display: inline-flex;
}

.blog-page .nav-purchase-btn-icon {
    display: none !important;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
}

.nav-link {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
}
.nav-logo {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
}

/* Links */
a {
    background: transparent;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #f58220;
}

/* Geometric Shapes Background */
/* Removed - backgrounds are now per-article only */

/* Article Grid Utilities */

/* Loading indicator */
.articles-loader {
    text-align: center;
    padding: 24px 0 16px;
    font-family: 'Rajdhani', 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: #64748b;
    min-height: 1em;
}

/* Markdown Content Styles */
.articles-loader {
    text-align: center;
    padding: 24px 0 16px;
    font-family: 'Rajdhani', 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: #64748b;
    min-height: 1em;
}

/* Markdown Content Styles */
.prose {
    color: #0f172a;
    line-height: 1.6;
}

.prose p {
    margin: 1.5em 0;
    color: #334155;
}

.prose h1,
.prose h2,
.prose h3,
.prose h4 {
    margin: 1.5em 0 0.75em 0;
    color: #0f172a;
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

.prose h1 {
    font-size: 2rem;
    margin-top: 2em;
}

.prose h2 {
    font-size: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 0.5em;
}

.prose h3 {
    font-size: 1.25rem;
}

.prose h4 {
    font-size: 1.1rem;
}

.prose ul,
.prose ol {
    margin: 1.5em 0 1.5em 2em;
    color: #334155;
}

.prose li {
    margin: 0.5em 0;
}

.prose blockquote {
    margin: 1.5em 0;
    padding: 1em 1.5em;
    border-left: 4px solid #00f2ff;
    background-color: #f8fafc;
    color: #334155;
}

/* Merge adjacent blockquotes visually - complete seamless fusion */
.prose blockquote + blockquote {
    margin-top: 0;
    padding-top: 0.75em;  /* Space between paragraphs */
    border-top: none;
}

/* First blockquote in a series keeps full margin */
.prose blockquote:not(:has(+ blockquote)) {
    margin-bottom: 1.5em;
}

.prose blockquote p {
    margin: 0;
    margin-bottom: 0.75em;
    line-height: 1.6;
    display: block;
}

.prose blockquote p:last-child {
    margin-bottom: 0;
}

/* Copy blockquote styles for Quill editor in admin panel */
.ql-editor blockquote {
    margin: 1.5em 0;
    padding: 1em 1.5em;
    border-left: 4px solid #00f2ff;
    background-color: #f8fafc;
    color: #334155;
}

.ql-editor blockquote + blockquote {
    margin-top: 0;
    margin-bottom: 0;
    padding-top: 0.75em;
    border-top: none;
}

.ql-editor blockquote:not(:has(+ blockquote)) {
    margin-bottom: 1.5em;
}

.ql-editor blockquote p {
    margin: 0;
    margin-bottom: 0.75em;
    line-height: 1.6;
    display: block;
}

.ql-editor blockquote p:last-child {
    margin-bottom: 0;
}

.prose code {
    background-color: #f1f5f9;
    padding: 0.2em 0.4em;
    border-radius: 2px;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 0.9em;
    color: #e11d48;
}

.prose pre {
    background-color: #1e293b;
    color: #e2e8f0;
    padding: 1em;
    border-radius: 2px;
    overflow-x: auto;
    margin: 1.5em 0;
}

.prose pre code {
    background-color: transparent;
    color: inherit;
    padding: 0;
    border-radius: 0;
    font-size: 0.9em;
}

.prose a {
    color: #50a2d5;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

.prose a:hover {
    color: #f58220;
}

.prose img {
    max-width: 100%;
    height: auto;
    border-radius: 2px;
    margin: 1.5em 0;
}

.prose strong {
    font-weight: 700;
    color: #0f172a;
}

.prose em {
    font-style: italic;
}

/* Blog Container */
.blog-container {
    position: relative;
    z-index: 10;
    background: white;
    min-height: 100vh;
    padding-top: 4rem; /* 64px - height of fixed nav */
}

/* Article Not Found */
.article-not-found {
    background: white;
}

/* Spacing Utilities */
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }

.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }

.pb-12 { padding-bottom: 3rem; }
.pb-24 { padding-bottom: 6rem; }

.pt-32 { padding-top: 8rem; }
.pt-8 { padding-top: 2rem; }

.px-8 { padding-left: 2rem; padding-right: 2rem; }

.p-8 { padding: 2rem; }

/* Gap Utilities */
.gap-4 { gap: 1rem; }
.gap-8 { gap: 2rem; }
.gap-16 { gap: 4rem; }

/* Width Utilities */
.w-full { width: 100%; }
.w-2 { width: 0.5rem; }

/* Height Utilities */
.h-16 { height: 4rem; }
.h-2 { height: 0.5rem; }
.aspect-video { aspect-ratio: 16 / 9; }
.aspect-square { aspect-ratio: 1 / 1; }

/* Flexbox Utilities */
.flex { display: flex; }
.items-center { align-items: center; }
.items-end { align-items: flex-end; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }

/* Position Utilities */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.inset-0 { inset: 0; }
.top-0 { top: 0; }
.bottom-0 { bottom: 0; }
.left-0 { left: 0; }
.right-0 { right: 0; }
.z-50 { z-index: 50; }
.z-10 { z-index: 10; }

/* Display Utilities */
.block { display: block; }
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.hidden { display: none; }
.no-underline { text-decoration: none; }
.sticky { position: sticky; }
.top-32 { top: 8rem; }

/* Border & Rounded */
.border { border: 1px solid; }
.border-b { border-bottom: 1px solid; }
.border-t { border-top: 1px solid; }
.border-l-4 { border-left: 4px solid; }
.border-slate-900 { border-color: #0f172a; }
.border-slate-100 { border-color: #f1f5f9; }
.border-slate-200 { border-color: #e2e8f0; }
.border-slate-800 { border-color: #1e293b; }
.border-orange-500 { border-color: #f58220; }
.border-blue-500 { border-color: #3b82f6; }
.rounded-sm { border-radius: 2px; }
.rounded-full { border-radius: 9999px; }

/* Background Utilities */
.bg-white { background-color: #ffffff; }
.bg-white\/95 { background-color: rgb(255 255 255 / 0.95); }
.bg-slate-50 { background-color: #f8fafc; }
.bg-slate-100 { background-color: #f1f5f9; }
.bg-slate-200 { background-color: #e2e8f0; }
.bg-slate-300 { background-color: #cbd5e1; }
.bg-slate-800 { background-color: #1e293b; }
.bg-slate-900 { background-color: #0f172a; }
.bg-orange-50 { background-color: #fff7ed; }
.bg-blue-50 { background-color: #eff6ff; }
.from-slate-200 { --tw-gradient-from: #e2e8f0 var(--tw-gradient-stops); }
.from-blue-500 { --tw-gradient-from: #3b82f6 var(--tw-gradient-stops); }
.to-slate-800 { --tw-gradient-to: #1e293b; }
.to-slate-300 { --tw-gradient-to: #cbd5e1; }
.to-transparent { --tw-gradient-to: transparent; }
.opacity-40 { opacity: 0.4; }

/* Text Utilities */
.text-white { color: #ffffff; }
.text-slate-900 { color: #0f172a; }
.text-slate-600 { color: #475569; }
.text-slate-500 { color: #64748b; }
.text-slate-400 { color: #94a3b8; }
.text-slate-200 { color: #e2e8f0; }

.text-\[10px\] { font-size: 10px; }
.text-\[11px\] { font-size: 11px; }
.text-xs { font-size: 12px; }
.text-sm { font-size: 14px; }
.text-base { font-size: 16px; }
.text-lg { font-size: 18px; }
.text-xl { font-size: 20px; }
.text-2xl { font-size: 24px; }
.text-3xl { font-size: 30px; }
.text-4xl { font-size: 36px; }
.text-5xl { font-size: 48px; }
.text-6xl { font-size: 60px; }

.font-black { font-weight: 900; }
.font-bold { font-weight: 700; }
.font-600 { font-weight: 600; }
.font-400 { font-weight: 400; }
.font-300 { font-weight: 300; }

.tracking-tighter { letter-spacing: -0.05em; }
.tracking-tight { letter-spacing: -0.025em; }
.tracking-normal { letter-spacing: 0; }
.tracking-wide { letter-spacing: 0.025em; }
.tracking-widest { letter-spacing: 0.1em; }
.tracking-\[0\.2em\] { letter-spacing: 0.2em; }

.uppercase { text-transform: uppercase; }
.italic { font-style: italic; }

/* Transitions */
.transition { transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.duration-300 { transition-duration: 300ms; }

/* Hover States */
.hover\:text-slate-900:hover { color: #0f172a; }
.hover\:text-slate-600:hover { color: #475569; }
.hover\:bg-slate-50:hover { background-color: #f8fafc; }
.hover\:scale-105:hover { transform: scale(1.05); }

/* Blur Utilities */
.blur-3xl { filter: blur(64px); }
.backdrop-blur-sm { -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }

/* Overflow */
.overflow-hidden { overflow: hidden; }
.overflow-x-hidden { overflow-x: hidden; }
.overflow-x-auto { overflow-x: auto; }

/* Max Width */
.max-w-7xl { max-width: 80rem; }
.max-w-none { max-width: none; }

/* Flex Grow */
.flex-shrink-0 { flex-shrink: 0; }

/* Margin Auto */
.mx-auto { margin-left: auto; margin-right: auto; }

/* Additional footer utilities */
.text-orange-500 { color: #f58220; }
.text-blue-500 { color: #3b82f6; }
.bg-slate-900 { background-color: #0f172a; }

/* Consultant-specific accent colors */
.border-orange-500 { border-color: #f58220; }
.border-blue-500 { border-color: #50a2d5; }

/* Blog Tag Filtering Styles */
.tag-btn {
    background-color: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tag-btn:hover {
    background-color: #e2e8f0;
    border-color: #94a3b8;
    color: #475569;
}

.tag-btn.active {
    background-color: #0f172a;
    border-color: #0f172a;
    color: #ffffff;
}

/* FHD+ screens - limit page width to prevent excessive expansion */
@media (min-width: 1920px) {
    body {
        margin: 0 auto;
        width: 100%;
        max-width: 1920px;
    }
    
    nav {
        left: 50%;
        transform: translateX(-50%);
        width: 1920px;
    }
    
    nav > div {
        margin-left: auto;
        margin-right: auto;
    }
    
    section {
        margin-left: auto;
        margin-right: auto;
    }
}

/* === Sci‑Fi Author Theme Overrides === */
body.blog-page {
    background-color: #f7f8fa;
    background-image:
        linear-gradient(to right, rgba(15, 23, 42, 0.035) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(15, 23, 42, 0.025) 1px, transparent 1px);
    background-size: 42px 42px;
    background-attachment: fixed;
    color: #1a1a1a;
}

.blog-container {
    background: #ffffff;
    padding-top: 80px;
}

/* Content surfaces (white background) */
.blog-content-surface {
    background: #ffffff;
    color: #111827;
}

.blog-content-surface .text-slate-900,
.blog-content-surface .text-slate-800,
.blog-content-surface .text-slate-700,
.blog-content-surface .text-slate-600,
.blog-content-surface .text-slate-500,
.blog-content-surface .text-slate-400 {
    color: #111827 !important;
}

.blog-content-surface .border-slate-100,
.blog-content-surface .border-slate-200 {
    border-color: #e5e7eb !important;
}

/* Blog list: 2 columns on desktop */
.blog-page .section-blog .blog-container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 1200px;
}

@media (max-width: 720px) {
    .blog-page .section-blog .blog-container {
        grid-template-columns: 1fr;
    }
}

.blog-page .tag-btn {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    color: #111827;
}

.blog-page .tag-btn:hover {
    color: #0f172a;
    border-color: #00f2ff;
    background: #f8fafc;
}

.blog-page .prose p,
.blog-page .prose li {
    color: #334155;
}

.blog-page .prose h1,
.blog-page .prose h2,
.blog-page .prose h3,
.blog-page .prose h4 {
    color: #0f172a;
    border-color: #e5e7eb;
}

.blog-page .prose blockquote {
    background: #f8fafc;
    border-left-color: #00f2ff;
    color: #334155;
}

/* Merge adjacent blockquotes visually - complete seamless fusion */
.blog-page .prose blockquote + blockquote {
    margin-top: 0;
    margin-bottom: 0;
    padding-top: 0.75em;  /* Space between paragraphs */
    border-top: none;
}

/* First blockquote in a series keeps full margin */
.blog-page .prose blockquote:not(:has(+ blockquote)) {
    margin-bottom: 1.5em;
}

.blog-page .prose blockquote p {
    margin: 0;
    margin-bottom: 0.75em;
    line-height: 1.6;
    display: block;
}

.blog-page .prose blockquote p:last-child {
    margin-bottom: 0;
}

.blog-page .prose a {
    color: #2563eb;
}

.blog-page .prose a:hover {
    color: #d90429;
}

/* Footer */
.blog-page footer {
    margin-top: 0;
    background: #050505;
    border-top: 1px solid #222;
}

/* === Technical Archive: Blog List Redesign === */
.blog-page .section-blog {
    padding: 96px 5% 40px;
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
}


.blog-page .blog-container {
    background: #ffffff;
}

.archive-hero {
    width: min(1200px, 100%);
    margin: 0 auto;
    box-sizing: border-box;
    padding-left: 16px;
    padding-right: 16px;
    display: grid;
    grid-template-columns: minmax(160px, 20%) minmax(0, 80%);
    gap: 24px;
    padding-top: 12px;
    padding-bottom: 28px;
    border-bottom: 2px solid #000000;
    position: relative;
    background-color: rgba(255, 255, 255, 0.78);
    -webkit-backdrop-filter: blur(1px);
    backdrop-filter: blur(1px);
}

.archive-hero-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-family: 'Courier Prime', monospace;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    color: #45505f;
    text-transform: uppercase;
    padding-top: 10px;
}

.archive-hero-meta span:first-child {
    color: #6b7280;
}

.archive-hero-main {
    min-width: 0;
}

.archive-hero-title {
    margin: 0 0 18px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    line-height: 1.12;
    color: #111111;
    font-size: clamp(1.55rem, 3vw, 2.35rem);
}

.archive-hero-prefix {
    font-family: 'Courier Prime', monospace;
    font-size: 0.66em;
    letter-spacing: 0.14em;
    color: #6b7280;
}

.archive-filter {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.archive-filter-label {
    font-family: 'Courier Prime', monospace;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.82rem;
    color: #d90429;
}

.archive-filter-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.archive-filter-empty {
    font-family: 'Courier Prime', monospace;
    color: #64748b;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
}

.archive-tag-btn {
    font-family: 'Courier Prime', monospace;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border: 1px solid #00f2ff;
    background: transparent;
    color: #00a0ab;
    padding: 6px 9px;
    line-height: 1.25;
}

.archive-tag-btn:hover {
    color: #0f172a;
    border-color: #0f172a;
    background: #f8fafc;
}

.archive-tag-btn.active {
    color: #ffffff;
    background: #d90429;
    border-color: #d90429;
}

.tech-archive-list {
    width: min(1200px, 100%);
    margin: 0 auto;
    box-sizing: border-box;
    padding-left: 16px;
    padding-right: 16px;
    padding-bottom: 0;
    border-top: 0;
}

.archive-entry {
    display: grid;
    grid-template-columns: minmax(160px, 20%) minmax(0, 64%) minmax(160px, 16%);
    gap: 24px;
    align-items: start;
    margin-left: -16px;
    margin-right: -16px;
    padding: 22px 16px;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    transition: background-color 0.25s ease, box-shadow 0.25s ease;
}

.archive-entry:hover {
    background-color: #f3f4f6;
    box-shadow: inset 0 0 0 1px rgba(100, 116, 139, 0.35), 0 10px 20px rgba(15, 23, 42, 0.08);
}

.archive-entry.article-hidden {
    display: none;
}

.archive-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-family: 'Courier Prime', monospace;
    font-size: 0.76rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #475569;
}

.archive-date,
.archive-read-time {
    font-family: 'Courier Prime', monospace;
    line-height: 1.4;
}

.archive-meta-keywords {
    font-family: 'Courier Prime', monospace;
    line-height: 1.45;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #475569;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.archive-main {
    min-width: 0;
}

.archive-title {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1.08rem, 1.6vw, 1.34rem);
    font-weight: 700;
    color: #111111;
    line-height: 1.2;
    margin-bottom: 10px;
    transition: color 0.2s ease, transform 0.2s ease;
}

.archive-entry:hover .archive-title {
    color: #d90429;
    transform: translateX(8px);
}

.archive-excerpt {
    font-family: 'Roboto', sans-serif;
    font-size: 0.97rem;
    color: #334155;
    line-height: 1.72;
    margin-bottom: 12px;
}

.archive-excerpt strong {
    font-weight: 700;
    color: #0f172a;
}

.archive-read-link {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    font-family: 'Courier Prime', monospace;
    font-size: 0.8rem;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    color: #d90429;
}

.archive-cursor {
    display: inline-block;
    animation: archiveBlinkCursor 1s steps(1, end) infinite;
}

@keyframes archiveBlinkCursor {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

.archive-media {
    width: 100%;
}

.archive-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border: 1px solid #e2e8f0;
    filter: grayscale(1) contrast(1.08);
    transition: filter 0.35s ease, transform 0.35s ease;
    background-image: repeating-linear-gradient(
        0deg,
        rgba(255, 255, 255, 0.04) 0px,
        rgba(255, 255, 255, 0.04) 1px,
        transparent 1px,
        transparent 3px
    );
}

.archive-entry:hover .archive-thumb {
    filter: grayscale(0) contrast(1.03);
    transform: scale(1.04);
}

@media (hover: none), (pointer: coarse) {
    .archive-thumb {
        filter: grayscale(0) contrast(1.03);
    }

    .archive-entry:hover .archive-thumb {
        filter: grayscale(0) contrast(1.03);
        transform: none;
    }

    .blog-page .archive-tag-btn.active {
        background: #d90429;
        color: #ffffff;
        border-color: #d90429;
    }
}

.archive-thumb-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Courier Prime', monospace;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #64748b;
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
}

@media (max-width: 980px) {
    .archive-hero {
        grid-template-columns: minmax(145px, 28%) minmax(0, 72%);
        gap: 18px;
    }

    .archive-entry {
        grid-template-columns: minmax(150px, 28%) minmax(0, 72%);
        gap: 18px;
    }

    .archive-media {
        grid-column: 1 / -1;
        max-width: 360px;
    }
}

@media (max-width: 680px) {
    .blog-page .section-blog {
        padding: 78px 6% 56px;
    }

    .archive-hero {
        grid-template-columns: 1fr;
        gap: 12px;
        padding-top: 4px;
        padding-bottom: 20px;
    }

    .archive-hero-meta {
        order: 1;
        padding-top: 0;
    }

    .archive-hero-main {
        order: 2;
    }

    .archive-filter-tags {
        flex-wrap: wrap;
        overflow-x: visible;
        padding-bottom: 0;
        gap: 8px;
    }

    .archive-tag-btn {
        flex: 0 1 auto;
        white-space: normal;
        max-width: 100%;
        overflow-wrap: anywhere;
    }

    .archive-entry {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 20px 16px;
    }

    .archive-meta {
        gap: 5px;
    }

    .archive-title {
        font-size: 1.02rem;
    }

    .archive-media {
        width: 100%;
        max-width: none;
    }
}

@media (max-width: 900px) {
    .blog-page .blog-container {
        padding-top: 80px;
    }

    .archive-hero {
        grid-template-columns: 1fr;
        gap: 14px;
        padding-top: 8px;
        padding-bottom: 22px;
    }

    .archive-hero-meta {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px 14px;
        padding-top: 0;
        font-size: 0.72rem;
    }

    .archive-filter {
        gap: 10px;
    }

    .archive-filter-label {
        font-size: 0.76rem;
    }

    .archive-tag-btn {
        font-size: 0.72rem;
        padding: 6px 8px;
    }

    .archive-entry {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 16px;
    }

    .archive-main {
        order: 1;
    }

    .archive-meta {
        order: 2;
        gap: 4px;
        font-size: 0.7rem;
    }

    .archive-media {
        order: 3;
        max-width: 100%;
    }

    .archive-excerpt {
        font-size: 0.9rem;
        line-height: 1.62;
        margin-bottom: 10px;
    }

    .archive-read-link {
        font-size: 0.72rem;
    }

    .single-archive-article {
        padding: 84px 5% 70px;
    }

    .single-archive-shell {
        gap: 18px;
    }

    .single-archive-meta {
        position: static;
        gap: 12px;
    }

    .single-meta-stack {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px 14px;
        font-size: 0.72rem;
    }

    .single-meta-keywords {
        margin-top: 2px;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 6px 8px;
        width: 100%;
    }

    .single-meta-keyword-link {
        font-size: 0.72rem;
        overflow-wrap: anywhere;
    }

    .single-post-header {
        margin-bottom: 26px;
        padding-bottom: 16px;
    }

    .single-post-excerpt {
        margin-top: 14px;
        margin-bottom: 20px;
        font-size: 0.88rem;
        line-height: 1.62;
    }

    .single-article-image-wrap {
        margin-bottom: 22px;
    }

    .single-article-content,
    .single-article-content p,
    .single-article-content li {
        font-size: 17px;
        line-height: 1.68;
    }

    .single-author-module {
        margin-top: 42px;
        padding-top: 20px;
    }
}

/* === Technical Archive: Single Post Layout === */
body.blog-page.blog-single-page {
    background: #ffffff;
    background-image: none;
}

.blog-single-page .blog-container {
    background: #ffffff;
}

.single-archive-article {
    background: #ffffff;
    padding: 92px 5% 84px;
}

.single-archive-shell {
    width: min(1200px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(160px, 20%) minmax(0, 80%);
    gap: 28px;
}

.single-archive-meta {
    position: sticky;
    top: 108px;
    align-self: start;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.single-archive-back-link {
    font-family: 'Courier Prime', monospace;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #d90429;
    display: inline-block;
}

.single-archive-back-link:hover {
    color: #111827;
}

.single-meta-stack {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-family: 'Courier Prime', monospace;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #4b5563;
}

.single-meta-keywords {
    margin-top: 6px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.single-meta-keyword-link {
    color: #4b5563;
    font-family: 'Courier Prime', monospace;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.single-meta-keyword-link:hover {
    color: #d90429;
}

.single-post-header {
    border-bottom: 2px solid #111111;
    padding-bottom: 18px;
    margin-bottom: 34px;
}

.blog-single-page .single-page-nav-links {
    display: flex;
    gap: 24px;
}

.blog-single-page .single-page-nav-links .nav-link {
    display: inline-flex;
    align-items: center;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.blog-single-page .single-page-nav-link-disabled {
    opacity: 0.45;
    cursor: default;
    pointer-events: none;
}

.single-archive-main {
    min-width: 0;
    width: 100%;
    max-width: 800px;
}

.single-post-title {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1.42rem, 2.45vw, 2.28rem);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    color: #111111;
    line-height: 1.14;
}

.single-post-prefix {
    display: block;
    margin-bottom: 8px;
    font-family: 'Courier Prime', monospace;
    font-size: 0.36em;
    letter-spacing: 0.16em;
    color: #6b7280;
}

.single-post-excerpt {
    margin-top: 18px;
    margin-bottom: 24px;
    padding-left: 14px;
    border-left: 2px solid #d90429;
    font-family: 'Courier Prime', monospace;
    font-size: 0.95rem;
    line-height: 1.72;
    color: #4b5563;
}

.single-article-image-wrap {
    margin-bottom: 30px;
    border: 1px solid #d1d5db;
    background: #f8fafc;
}

.single-article-image {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.single-article-content {
    font-family: 'Roboto', sans-serif;
    font-size: 18px;
    line-height: 1.7;
    color: #1f2937;
}

.single-article-content p,
.single-article-content li {
    font-size: 18px;
    line-height: 1.7;
    color: #1f2937;
}

.single-article-content h1 {
    font-size: clamp(1.48rem, 2.35vw, 1.9rem);
    font-weight: 700;
    letter-spacing: -0.015em;
}

.single-article-content h2 {
    font-size: clamp(1.24rem, 1.85vw, 1.56rem);
    font-weight: 600;
    letter-spacing: -0.01em;
}

.single-article-content strong,
.single-article-content b {
    font-weight: 700;
    color: #0f172a;
    letter-spacing: 0.01em;
}

.single-article-content blockquote {
    margin: 1.6em 0;
    padding: 0.35em 0 0.35em 1.2em;
    border-left: 2px solid #d90429;
    background: transparent;
    color: #334155;
    font-style: italic;
}

.single-author-module {
    margin-top: 56px;
    padding-top: 26px;
    border-top: 1px solid #111111;
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr);
    gap: 18px;
    align-items: stretch;
}

.single-author-image-frame {
    position: relative;
    width: 132px;
    height: auto;
    min-height: 132px;
    padding: 10px;
    border-radius: 0;
    overflow: hidden;
    background: transparent;
    border: 1px solid #ff0033;
    box-shadow: none;
}

.single-author-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 0;
    border: none;
    filter: grayscale(0.18) contrast(1.14) saturate(0.85) brightness(0.97);
    box-shadow: none;
}

.single-author-content h2 {
    margin: 0 0 10px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #111111;
}

.single-author-content p {
    margin: 0 0 10px;
    font-family: 'Roboto', sans-serif;
    font-size: 0.97rem;
    line-height: 1.64;
    color: #374151;
}

.single-author-cta-text {
    font-family: 'Courier Prime', monospace;
    letter-spacing: 0.04em;
    color: #1f2937;
    font-size: 0.83rem;
    text-transform: uppercase;
}

.single-author-cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.single-author-cta-btn {
    display: inline-block;
    border: 1px solid #111111;
    padding: 8px 12px;
    font-family: 'Courier Prime', monospace;
    font-size: 0.76rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #111111;
}

.single-author-cta-btn:hover {
    background: #111111;
    color: #ffffff;
}

@media (max-width: 920px) {
    .single-archive-shell {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .single-archive-meta {
        position: static;
        gap: 14px;
    }

    .single-meta-stack {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px 16px;
    }

    .single-meta-keywords {
        margin-top: 0;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px 10px;
        width: 100%;
    }
}

@media (max-width: 680px) {
    .single-archive-article {
        padding: 76px 6% 64px;
    }

    .archive-hero-title {
        font-size: clamp(1.28rem, 6vw, 1.8rem);
    }

    .archive-hero-prefix {
        display: none;
    }

    .archive-filter-label {
        font-size: 0.72rem;
    }

    .archive-tag-btn {
        font-size: 0.68rem;
        letter-spacing: 0.04em;
        padding: 6px 7px;
    }

    .archive-entry {
        gap: 12px;
        padding: 14px 12px;
        margin-left: -12px;
        margin-right: -12px;
        border-bottom: 2px solid #94a3b8;
        box-shadow: inset 0 -1px 0 rgba(15, 23, 42, 0.08);
    }

    .archive-main {
        order: 2;
    }

    .archive-meta {
        order: 1;
    }

    .archive-title {
        font-size: 0.94rem;
        margin-bottom: 8px;
    }

    .archive-excerpt {
        font-size: 0.84rem;
        line-height: 1.56;
    }

    .archive-meta,
    .archive-meta-keywords,
    .archive-read-link {
        font-size: 0.66rem;
    }

    .single-post-header {
        margin-bottom: 26px;
    }

    .single-post-title {
        font-size: clamp(1.36rem, 7.4vw, 2rem);
    }

    .blog-single-page .single-page-nav-links {
        display: none;
    }

    .single-archive-back-link {
        font-size: 0.7rem;
        letter-spacing: 0.1em;
    }

    .single-meta-stack {
        gap: 6px 12px;
        font-size: 0.68rem;
    }

    .single-meta-keywords {
        gap: 6px;
    }

    .single-meta-keyword-link {
        font-size: 0.68rem;
    }

    .single-post-excerpt {
        margin-top: 12px;
        margin-bottom: 18px;
        padding-left: 10px;
        font-size: 0.8rem;
        line-height: 1.55;
    }

    .single-article-content,
    .single-article-content p,
    .single-article-content li {
        font-size: 16px;
        line-height: 1.64;
    }

    .single-article-content blockquote {
        margin: 1.2em 0;
        padding-left: 0.9em;
    }

    .single-author-module {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-top: 32px;
        padding-top: 16px;
    }

    .single-author-image-frame {
        width: 100%;
        height: 170px;
    }

    .single-author-image {
        width: 100%;
        height: 100%;
    }

    .single-author-content h2 {
        font-size: 0.92rem;
        margin-bottom: 8px;
    }

    .single-author-content p {
        font-size: 0.88rem;
        line-height: 1.56;
    }

    .single-author-cta-text {
        font-size: 0.74rem;
    }

    .single-author-cta-btn {
        font-size: 0.68rem;
        padding: 7px 10px;
    }

}

@media (max-width: 600px) {
    .blog-page .nav-purchase-btn-label {
        display: none;
    }

    .blog-page .nav-purchase-btn-icon {
        display: inline-flex !important;
        font-size: 1.05rem;
        line-height: 1;
    }
}

@media (max-width: 480px) {
    .blog-page .blog-container {
        padding-top: 80px;
    }

    .blog-page .section-blog {
        padding: 74px 4% 42px;
    }

    .archive-hero,
    .tech-archive-list {
        padding-left: 10px;
        padding-right: 10px;
    }

    .archive-hero-meta {
        font-size: 0.64rem;
        gap: 6px 10px;
    }

    .archive-hero-title {
        font-size: clamp(1.16rem, 8vw, 1.55rem);
        margin-bottom: 14px;
    }

    .archive-filter {
        gap: 8px;
    }

    .archive-filter-tags {
        gap: 6px;
    }

    .archive-tag-btn {
        font-size: 0.62rem;
        padding: 5px 6px;
    }

    .archive-entry {
        padding: 12px 10px;
        margin-left: -10px;
        margin-right: -10px;
        border-bottom: 2px solid #64748b;
        box-shadow: inset 0 -1px 0 rgba(15, 23, 42, 0.12);
    }

    .archive-title {
        font-size: 0.88rem;
    }

    .archive-excerpt {
        font-size: 0.78rem;
        line-height: 1.5;
    }

    .single-archive-article {
        padding: 72px 4% 52px;
    }

    .single-post-title {
        font-size: clamp(1.22rem, 8.2vw, 1.7rem);
    }

    .single-article-content,
    .single-article-content p,
    .single-article-content li {
        font-size: 15px;
        line-height: 1.6;
    }

    .single-article-content h1 {
        font-size: 1.3rem;
    }

    .single-article-content h2 {
        font-size: 1.12rem;
    }

    .single-author-image-frame {
        height: 150px;
    }
}
