/* =========================================================================
   DailyRemote — Clean, AdSense-Optimized Design System
   Vanilla CSS · No frameworks · No build step
   ========================================================================= */

/* ===== Custom Properties ===== */
:root {
    --font-heading: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    --blue: #2563eb;
    --blue-hover: #1d4ed8;
    --blue-light: #eff6ff;
    --blue-50: #dbeafe;

    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;

    --amber: #f59e0b;
    --amber-light: #fef3c7;
    --green: #10b981;
    --green-light: #d1fae5;
    --purple: #8b5cf6;
    --purple-light: #ede9fe;

    --white: #ffffff;
    --bg: #ffffff;
    --bg-alt: var(--slate-50);
    --border: var(--slate-200);
    --text: var(--slate-800);
    --text-muted: var(--slate-500);

    --radius: 8px;
    --radius-sm: 6px;
    --radius-pill: 999px;

    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lift: 0 8px 24px rgba(0,0,0,0.1);

    --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
    --dur: 0.2s;

    --container: 1100px;
    --content: 720px;
    --header-h: 3.75rem;
}


/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font-body);
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font: inherit; }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); font-weight: 700; line-height: 1.2; }
[hidden] { display: none !important; }


/* ===== Accessibility ===== */
.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
    position: absolute; top: -100%; left: 1rem;
    padding: 0.5rem 1rem; background: var(--slate-900); color: white;
    border-radius: var(--radius-sm); z-index: 9999; font-size: 0.875rem;
}
.skip-link:focus { top: 1rem; }


/* ===== Layout ===== */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 1.25rem; }
.container--narrow { max-width: var(--content); }
.main-content { flex: 1; }


/* ===== Header ===== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--header-h);
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    transition: box-shadow var(--dur) var(--ease);
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.site-logo {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--slate-900);
    letter-spacing: -0.02em;
}
.site-logo span { color: var(--blue); }

.header-nav { display: flex; align-items: center; gap: 0.25rem; }
.header-nav a {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--slate-600);
    border-radius: var(--radius-sm);
    transition: color var(--dur), background var(--dur);
}
.header-nav a:hover { color: var(--blue); background: var(--blue-light); }
.header-nav .current-menu-item a { color: var(--blue); background: var(--blue-light); }

.btn-header-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.4375rem 1rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--white);
    background: var(--blue);
    border-radius: var(--radius-sm);
    transition: background var(--dur), transform var(--dur);
}
.btn-header-cta:hover { background: var(--blue-hover); transform: translateY(-1px); }

/* Mobile */
.mobile-toggle {
    display: none;
    width: 2.25rem; height: 2.25rem;
    align-items: center; justify-content: center;
    border-radius: var(--radius-sm);
    color: var(--slate-700);
}
.mobile-toggle:hover { background: var(--slate-100); }

.mobile-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 1.25rem;
    box-shadow: var(--shadow-md);
}
.mobile-nav.is-open { display: block; }
.mobile-nav a {
    display: block;
    padding: 0.75rem 0;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--slate-700);
    border-bottom: 1px solid var(--slate-100);
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover { color: var(--blue); }

@media (max-width: 768px) {
    .header-nav { display: none; }
    .mobile-toggle { display: flex; }
}

.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }


/* ===== Hero ===== */
.hero {
    background: var(--bg);
    padding: 4rem 0 3rem 0;
    text-align: center;
    border-bottom: 1px solid var(--border);
}
.hero-title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 800;
    color: var(--slate-900);
    letter-spacing: -0.025em;
    margin-bottom: 0.625rem;
    line-height: 1.15;
}
.hero-title span { color: var(--blue); }
.hero-sub {
    font-size: 1.0625rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 28rem;
    margin-inline: auto;
}

@media (max-width: 640px) {
    .hero { padding: 2.5rem 0 2rem 0; }
}


/* ===== Search Bar ===== */
.search-wrap { max-width: 600px; margin-inline: auto; }

.search-bar {
    display: flex;
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color var(--dur), box-shadow var(--dur);
}
.search-bar:focus-within {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.search-field {
    flex: 1;
    min-width: 0;
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
    border: none;
    background: transparent;
    color: var(--text);
    outline: none;
}
.search-field::placeholder { color: var(--slate-400); }

.search-btn {
    padding: 0.75rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--white);
    background: var(--blue);
    border: none;
    cursor: pointer;
    transition: background var(--dur);
    white-space: nowrap;
}
.search-btn:hover { background: var(--blue-hover); }

@media (max-width: 480px) {
    .search-bar { flex-direction: column; }
    .search-btn { border-radius: 0; }
}


/* ===== Filters Row ===== */
.filters-row {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}
.filters-microcopy {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-right: 0.5rem;
}
.filter-select {
    padding: 0.375rem 2rem 0.375rem 0.75rem;
    font-size: 0.8125rem;
    color: var(--slate-600);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    background: var(--white);
    cursor: pointer;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%2394a3b8' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    transition: border-color var(--dur);
}
.filter-select:hover { border-color: var(--blue); }
.filter-select:focus { border-color: var(--blue); box-shadow: 0 0 0 2px rgba(37,99,235,0.12); }


/* ===== Job Listing Section ===== */
.jobs-section { padding: 2.5rem 0 3rem 0; }
.jobs-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 1.5rem;
}
.section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--slate-900);
}
.section-count {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.job-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: var(--content);
    margin-inline: auto;
}


/* ===== Job Card ===== */
.job-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    margin-bottom: 0.75rem;
    transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur);
    position: relative;
}
.job-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lift);
    border-color: var(--blue-50);
}

/* Subtle asymmetry on odd cards */
.job-card:nth-child(odd) {
    margin-left: 12px;
}
@media (max-width: 640px) {
    .job-card:nth-child(odd) { margin-left: 0; }
}

.job-card-link { display: block; text-decoration: none; color: inherit; }

.job-card-top {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.job-card-logo {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: var(--slate-50);
}
.job-card-logo img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.job-card-logo-letter {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--blue);
}

.job-card-info { flex: 1; min-width: 0; }

.job-card-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--slate-900);
    line-height: 1.35;
    margin-bottom: 2px;
}
.job-card:hover .job-card-title { color: var(--blue); }

.job-card-company {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.job-card-excerpt {
    font-size: 0.875rem;
    color: var(--slate-600);
    line-height: 1.55;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.job-card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.job-card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.375rem;
}

.job-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.1875rem 0.5rem;
    font-size: 0.6875rem;
    font-weight: 600;
    border-radius: var(--radius-pill);
    letter-spacing: 0.01em;
}
.job-tag--fulltime { background: var(--green-light); color: #047857; }
.job-tag--parttime { background: var(--blue-light); color: var(--blue); }
.job-tag--contract { background: var(--amber-light); color: #b45309; }
.job-tag--internship { background: var(--purple-light); color: var(--purple); }

.job-card-location {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}
.job-card-location svg { width: 12px; height: 12px; }

.job-card-salary {
    font-size: 0.75rem;
    color: var(--slate-600);
    font-weight: 600;
}

.btn-apply-card {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.375rem 0.875rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--blue);
    background: var(--blue-light);
    border-radius: var(--radius-pill);
    transition: background var(--dur), color var(--dur);
    white-space: nowrap;
}
.btn-apply-card:hover { background: var(--blue); color: var(--white); }

.job-card-time {
    font-size: 0.6875rem;
    color: var(--slate-400);
}


/* ===== Ad Slot ===== */
.ad-slot {
    background: var(--slate-50);
    border: 1px dashed var(--slate-300);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 0.75rem;
    text-align: center;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: var(--content);
    margin-inline: auto;
}
.ad-slot-label {
    font-size: 0.6875rem;
    color: var(--slate-400);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.ad-slot--leaderboard {
    max-width: var(--container);
    margin: 0 auto 1.5rem auto;
    min-height: 90px;
}


/* ===== Skeleton Loading ===== */
@keyframes shimmer {
    0% { background-position: -400px 0; }
    100% { background-position: 400px 0; }
}
.skeleton {
    background: linear-gradient(90deg, var(--slate-100) 25%, var(--slate-200) 37%, var(--slate-100) 63%);
    background-size: 800px 100%;
    animation: shimmer 1.8s ease-in-out infinite;
    border-radius: var(--radius-sm);
}
.skeleton-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    margin-bottom: 0.75rem;
    max-width: var(--content);
    margin-inline: auto;
}
.skeleton-card:nth-child(odd) { margin-left: calc(auto + 12px); }
.skeleton-row {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.75rem;
}
.skeleton-avatar { width: 2.75rem; height: 2.75rem; border-radius: var(--radius-sm); flex-shrink: 0; }
.skeleton-lines { flex: 1; }
.skeleton-line { height: 0.75rem; margin-bottom: 0.5rem; border-radius: 4px; }
.skeleton-line--title { width: 60%; height: 0.875rem; }
.skeleton-line--sub { width: 35%; }
.skeleton-line--text { width: 90%; }
.skeleton-line--text2 { width: 70%; }
.skeleton-line--short { width: 25%; }

.loading-msg {
    text-align: center;
    padding: 1rem 0;
    font-size: 0.875rem;
    color: var(--text-muted);
    display: none;
}
.loading-msg.is-visible { display: block; }


/* ===== Empty State ===== */
.empty-state {
    text-align: center;
    padding: 4rem 1rem;
}
.empty-state-icon {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1.25rem auto;
    color: var(--slate-300);
}
.empty-state-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--slate-700);
    margin-bottom: 0.375rem;
}
.empty-state-desc {
    font-size: 0.9375rem;
    color: var(--text-muted);
}


/* ===== Load More ===== */
.loadmore-wrap {
    text-align: center;
    padding: 1.5rem 0 1rem 0;
}
.btn-loadmore {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--blue);
    background: var(--white);
    border: 2px solid var(--blue);
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: background var(--dur), color var(--dur), transform var(--dur);
}
.btn-loadmore:hover { background: var(--blue); color: var(--white); transform: translateY(-1px); }
.btn-loadmore:disabled { opacity: 0.5; cursor: default; transform: none; }


/* ===== Spinner ===== */
@keyframes spin { to { transform: rotate(360deg); } }
.spinner {
    display: inline-block;
    width: 14px; height: 14px;
    border: 2px solid var(--slate-200);
    border-top-color: var(--blue);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}


/* ===== Single Job Page ===== */
.breadcrumb {
    padding: 0.875rem 0;
    border-bottom: 1px solid var(--border);
    background: var(--bg-alt);
}
.breadcrumb-list {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    color: var(--text-muted);
}
.breadcrumb-list a { color: var(--slate-600); transition: color var(--dur); }
.breadcrumb-list a:hover { color: var(--blue); }
.breadcrumb-sep { color: var(--slate-400); }
.breadcrumb-current { color: var(--slate-800); font-weight: 500; }

.single-layout {
    display: grid;
    grid-template-columns: 1fr 20rem;
    gap: 3rem;
    padding: 2.5rem 0 4rem 0;
}

.job-header { padding-bottom: 2rem; margin-bottom: 2rem; border-bottom: 1px solid var(--border); }
.job-header-top { display: flex; align-items: flex-start; gap: 1.25rem; margin-bottom: 1.25rem; }
.job-header-logo {
    width: 3.5rem; height: 3.5rem; border-radius: var(--radius); border: 1px solid var(--border);
    overflow: hidden; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
    background: var(--slate-50);
}
.job-header-logo img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.job-header-logo-letter { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 700; color: var(--blue); }

.job-title {
    font-size: clamp(1.375rem, 3vw, 1.875rem);
    font-weight: 800;
    color: var(--slate-900);
    line-height: 1.2;
    margin-bottom: 0.25rem;
}
.job-company-link {
    font-size: 0.9375rem;
    color: var(--text-muted);
    transition: color var(--dur);
}
.job-company-link:hover { color: var(--blue); }

.job-meta-row {
    display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; margin-top: 0.75rem;
}

/* Prose */
.job-content { font-size: 0.9375rem; line-height: 1.75; color: var(--slate-700); }
.job-content h2 { font-size: 1.375rem; color: var(--slate-900); margin: 2rem 0 0.75rem 0; }
.job-content h3 { font-size: 1.0625rem; font-weight: 700; color: var(--slate-800); margin: 1.5rem 0 0.5rem 0; }
.job-content p { margin-bottom: 1.25rem; }
.job-content ul, .job-content ol { padding-left: 1.25rem; margin-bottom: 1.25rem; }
.job-content ul { list-style-type: disc; }
.job-content ol { list-style-type: decimal; }
.job-content li { margin-bottom: 0.375rem; }
.job-content a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.job-content a:hover { color: var(--blue-hover); }
.job-content blockquote {
    border-left: 3px solid var(--blue-50);
    padding-left: 1rem;
    color: var(--slate-600);
    font-style: italic;
    margin: 1.5rem 0;
}
.job-content strong { color: var(--slate-900); font-weight: 600; }
.job-content img { border-radius: var(--radius); margin: 1.5rem 0; }
.job-content pre {
    background: var(--slate-900); color: var(--slate-200);
    padding: 1rem; border-radius: var(--radius); overflow-x: auto;
    margin: 1.25rem 0; font-size: 0.8125rem;
}
.job-content code { background: var(--slate-100); padding: 2px 6px; border-radius: 4px; font-size: 0.875em; }
.job-content pre code { background: none; padding: 0; }

/* Sidebar */
.job-sidebar { position: sticky; top: calc(var(--header-h) + 1.5rem); align-self: start; }

.sidebar-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1rem;
}
.sidebar-card-label {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--slate-400);
    margin-bottom: 0.75rem;
}

.btn-apply {
    display: block;
    width: 100%;
    text-align: center;
    padding: 0.875rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--white);
    background: var(--blue);
    border-radius: var(--radius-sm);
    transition: background var(--dur), transform var(--dur), box-shadow var(--dur);
    text-decoration: none;
}
.btn-apply:hover {
    background: var(--blue-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}
.btn-apply-hint {
    display: block; text-align: center; font-size: 0.6875rem;
    color: var(--slate-400); margin-top: 0.5rem;
}

.company-info-row {
    display: flex; align-items: flex-start; gap: 0.625rem;
    padding: 0.5rem 0;
}
.company-info-row + .company-info-row { border-top: 1px solid var(--slate-100); }
.company-info-icon { width: 14px; height: 14px; color: var(--slate-400); margin-top: 2px; flex-shrink: 0; }
.company-info-text { font-size: 0.8125rem; color: var(--slate-600); }

.share-row { display: flex; gap: 0.375rem; margin-top: 0.5rem; }
.share-btn {
    width: 2rem; height: 2rem;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm); color: var(--slate-500);
    transition: border-color var(--dur), color var(--dur), background var(--dur);
}
.share-btn:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-light); }
.share-btn svg { width: 13px; height: 13px; }

@media (max-width: 1024px) {
    .single-layout { grid-template-columns: 1fr; gap: 2rem; }
    .job-sidebar { position: static; }
}


/* ===== Category Chips ===== */
.category-grid { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.category-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.4375rem 1rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--slate-700);
    transition: border-color var(--dur), color var(--dur), transform var(--dur), box-shadow var(--dur);
}
.category-chip:hover {
    border-color: var(--blue);
    color: var(--blue);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}
.category-chip-count {
    font-size: 0.6875rem;
    color: var(--slate-400);
    font-weight: 600;
}


/* ===== Tags ===== */
.tag-list { display: flex; flex-wrap: wrap; gap: 0.375rem; margin-top: 1.5rem; }
.tag-link {
    font-size: 0.6875rem; font-weight: 500;
    padding: 0.25rem 0.625rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    color: var(--slate-600);
    transition: border-color var(--dur), color var(--dur);
}
.tag-link:hover { border-color: var(--blue); color: var(--blue); }


/* ===== Archive Header ===== */
.archive-header {
    padding: 3rem 0 2rem 0;
    border-bottom: 1px solid var(--border);
    background: var(--bg-alt);
}
.archive-title {
    font-size: clamp(1.5rem, 3.5vw, 2.25rem);
    font-weight: 800;
    color: var(--slate-900);
    margin-bottom: 0.25rem;
}
.archive-desc { color: var(--text-muted); max-width: 36rem; font-size: 0.9375rem; }
.archive-count { font-size: 0.75rem; color: var(--slate-400); margin-top: 0.5rem; }


/* ===== Footer ===== */
.site-footer {
    margin-top: auto;
    border-top: 1px solid var(--border);
    background: var(--slate-900);
    color: var(--slate-400);
    padding: 3rem 0 2rem 0;
}
.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 2rem;
}
.footer-brand {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 0.5rem;
}
.footer-brand span { color: var(--blue); }
.footer-tagline {
    font-size: 0.8125rem;
    color: var(--slate-500);
    max-width: 20rem;
}
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a {
    font-size: 0.8125rem;
    color: var(--slate-400);
    transition: color var(--dur);
}
.footer-links a:hover { color: var(--white); }
.footer-bottom {
    margin-top: 2rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--slate-800);
    text-align: center;
    font-size: 0.75rem;
    color: var(--slate-600);
}

@media (max-width: 640px) {
    .footer-inner { flex-direction: column; gap: 1.5rem; }
}


/* ===== 404 ===== */
.error-page {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center; padding: 6rem 1.25rem; min-height: 55vh;
}
.error-code {
    font-family: var(--font-heading);
    font-size: clamp(5rem, 15vw, 9rem);
    font-weight: 800;
    line-height: 1;
    color: var(--slate-200);
}
.error-title { font-size: 1.5rem; font-weight: 700; color: var(--slate-800); margin-top: 0.75rem; }
.error-desc { color: var(--text-muted); margin-top: 0.5rem; max-width: 24rem; }
.error-actions { display: flex; gap: 0.5rem; margin-top: 2rem; }


/* ===== Buttons ===== */
.btn-primary {
    display: inline-flex; align-items: center; gap: 0.375rem;
    padding: 0.625rem 1.5rem; font-size: 0.875rem; font-weight: 600;
    color: var(--white); background: var(--blue);
    border-radius: var(--radius-sm);
    transition: background var(--dur), transform var(--dur);
    text-decoration: none;
}
.btn-primary:hover { background: var(--blue-hover); transform: translateY(-1px); }

.btn-secondary {
    display: inline-flex; align-items: center; gap: 0.375rem;
    padding: 0.625rem 1.5rem; font-size: 0.875rem; font-weight: 500;
    color: var(--slate-700); background: var(--white);
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    transition: border-color var(--dur), color var(--dur);
    text-decoration: none; cursor: pointer;
}
.btn-secondary:hover { border-color: var(--slate-400); color: var(--slate-900); }


/* ===== Page Content ===== */
.page-content { padding: 3rem 0 4rem 0; }
.page-title { font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 800; color: var(--slate-900); margin-bottom: 2rem; }

.related-section { padding: 3rem 0; border-top: 1px solid var(--border); margin-top: 2rem; }

.section-label {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--slate-400);
    margin-bottom: 0.375rem;
}


/* ===== Search Results (AJAX) ===== */
.search-results { padding: 1.5rem 0; display: none; }
.search-results.is-visible { display: block; }
.search-results-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.search-results-title { font-size: 1.125rem; font-weight: 700; }
.search-results-count { font-size: 0.75rem; color: var(--text-muted); margin-left: 0.5rem; }
.clear-search { font-size: 0.8125rem; color: var(--blue); cursor: pointer; background: none; border: none; font-family: inherit; transition: opacity var(--dur); }
.clear-search:hover { opacity: 0.7; }


/* ===== CTA Section ===== */
.cta-section {
    padding: 3rem 0;
    text-align: center;
    background: var(--blue-light);
    border-top: 1px solid var(--blue-50);
    border-bottom: 1px solid var(--blue-50);
}
.cta-title {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-weight: 800;
    color: var(--slate-900);
    margin-bottom: 0.5rem;
}
.cta-desc {
    font-size: 0.9375rem;
    color: var(--slate-600);
    margin-bottom: 1.5rem;
    max-width: 26rem;
    margin-inline: auto;
}


/* ===== Pagination ===== */
.pagination { display: flex; justify-content: center; gap: 0.375rem; padding: 2rem 0; }
.pagination a, .pagination .current {
    display: inline-flex; align-items: center; justify-content: center;
    width: 2.125rem; height: 2.125rem; font-size: 0.8125rem;
    border-radius: var(--radius-sm); border: 1px solid var(--border);
    transition: all var(--dur);
}
.pagination a { color: var(--slate-600); background: var(--white); }
.pagination a:hover { border-color: var(--blue); color: var(--blue); }
.pagination .current { background: var(--blue); color: var(--white); border-color: var(--blue); }


/* ===== Utility ===== */
.hidden { display: none !important; }
.text-center { text-align: center; }
.muted { color: var(--text-muted); }
