/*
 * Blank Page Theme — by Bluespider
 * main.css
 *
 * Contents:
 *   1. Design tokens (CSS variables)
 *   2. Reset & base
 *   3. Typography
 *   4. Layout utilities
 *   5. Site header (fallback)
 *   6. Site footer (fallback)
 *   7. Post grid & cards
 *   8. Single post
 *   9. Archive header
 *  10. Sidebar & widgets
 *  11. Comments
 *  12. Forms
 *  13. Pagination
 *  14. 404 & no-results
 *  15. Search form
 *  16. Buttons
 *  17. Responsive
 */


/* ═══════════════════════════════════════════════════════════════
   1. DESIGN TOKENS
═══════════════════════════════════════════════════════════════ */

:root {
    /* Bluespider palette */
    --bs-blue:        #0d8dd4;
    --bs-blue-dark:   #0a6fa8;
    --bs-blue-light:  #5eb3e2;
    --bs-blue-faint:  rgba(13, 141, 212, 0.06);
    --bs-blue-subtle: rgba(13, 141, 212, 0.12);

    /* Neutral palette */
    --color-bg:       #ffffff;
    --color-surface:  #f8fafc;
    --color-border:   #e2e8f0;
    --color-border-light: #f1f5f9;

    /* Text */
    --color-text:       #1a1a2e;
    --color-text-mid:   #475569;
    --color-text-muted: #94a3b8;
    --color-text-faint: #cbd5e1;

    /* Accent — mapped to Bluespider blue */
    --color-accent:       var(--bs-blue);
    --color-accent-dark:  var(--bs-blue-dark);
    --color-accent-light: var(--bs-blue-light);

    /* Typography */
    --font-heading: 'Syne', system-ui, sans-serif;
    --font-body:    'DM Sans', system-ui, sans-serif;
    --font-mono:    'SF Mono', 'Fira Code', 'Fira Mono', monospace;

    /* Sizing */
    --text-xs:   0.75rem;     /* 12px */
    --text-sm:   0.875rem;    /* 14px */
    --text-base: 1rem;        /* 16px */
    --text-lg:   1.125rem;    /* 18px */
    --text-xl:   1.25rem;     /* 20px */
    --text-2xl:  1.5rem;      /* 24px */
    --text-3xl:  1.875rem;    /* 30px */
    --text-4xl:  2.25rem;     /* 36px */
    --text-5xl:  3rem;        /* 48px */

    /* Spacing scale */
    --space-1:  0.25rem;
    --space-2:  0.5rem;
    --space-3:  0.75rem;
    --space-4:  1rem;
    --space-5:  1.25rem;
    --space-6:  1.5rem;
    --space-8:  2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;

    /* Layout */
    --container-max:  1200px;
    --container-pad:  clamp(1rem, 4vw, 2.5rem);
    --content-max:    720px;

    /* Radii */
    --radius-sm:  4px;
    --radius-md:  8px;
    --radius-lg:  12px;
    --radius-xl:  16px;
    --radius-full: 999px;

    /* Shadows */
    --shadow-sm:  0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md:  0 4px 16px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
    --shadow-lg:  0 10px 40px rgba(0,0,0,0.1);
    --shadow-card: 0 2px 12px rgba(0,0,0,0.07);

    /* Transitions */
    --transition-fast:   150ms ease;
    --transition-normal: 250ms ease;

    /* Header height */
    --header-h: 68px;
}


/* ═══════════════════════════════════════════════════════════════
   2. RESET & BASE
═══════════════════════════════════════════════════════════════ */

*, *::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: var(--text-base);
    line-height: 1.7;
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img, video, svg {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--color-accent);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color var(--transition-fast);
}

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

a:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 3px;
    border-radius: 2px;
}

ul, ol { padding-left: 1.5em; }

hr {
    border: none;
    border-top: 1px solid var(--color-border);
    margin: var(--space-8) 0;
}

/* Skip link */
.skip-link {
    position: absolute;
    top: -100%;
    left: var(--space-4);
    z-index: 9999;
    background: var(--color-accent);
    color: #fff;
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: var(--text-sm);
    text-decoration: none;
}
.skip-link:focus { top: var(--space-3); }

/* Screen reader only */
.screen-reader-text {
    position: absolute;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
}


/* ═══════════════════════════════════════════════════════════════
   3. TYPOGRAPHY
═══════════════════════════════════════════════════════════════ */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-text);
    letter-spacing: -0.01em;
}

h1 { font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl)); }
h2 { font-size: clamp(var(--text-2xl), 3.5vw, var(--text-4xl)); }
h3 { font-size: clamp(var(--text-xl),  2.5vw, var(--text-3xl)); }
h4 { font-size: var(--text-2xl); }
h5 { font-size: var(--text-xl); }
h6 { font-size: var(--text-lg); }

p { margin-bottom: var(--space-5); }
p:last-child { margin-bottom: 0; }

strong, b { font-weight: 600; }
em, i { font-style: italic; }

small { font-size: var(--text-sm); }

blockquote {
    border-left: 4px solid var(--color-accent);
    padding-left: var(--space-6);
    margin: var(--space-8) 0;
    font-size: var(--text-lg);
    font-style: italic;
    color: var(--color-text-mid);
}

code {
    font-family: var(--font-mono);
    font-size: 0.875em;
    background: var(--color-surface);
    padding: 1px 6px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
}

pre {
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    background: var(--color-text);
    color: #e2e8f0;
    padding: var(--space-6);
    border-radius: var(--radius-md);
    overflow-x: auto;
    margin: var(--space-8) 0;
    line-height: 1.6;
}
pre code {
    background: none;
    border: none;
    padding: 0;
    color: inherit;
    font-size: inherit;
}

/* Prose — rich content within posts and pages */
.bpt-prose {
    max-width: var(--content-max);
}
.bpt-prose h2,
.bpt-prose h3,
.bpt-prose h4 {
    margin-top: var(--space-10);
    margin-bottom: var(--space-4);
}
.bpt-prose p,
.bpt-prose ul,
.bpt-prose ol { margin-bottom: var(--space-5); }
.bpt-prose ul,
.bpt-prose ol { padding-left: 1.5em; }
.bpt-prose li { margin-bottom: var(--space-2); }
.bpt-prose img {
    border-radius: var(--radius-md);
    margin: var(--space-8) 0;
}
.bpt-prose table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--text-sm);
    margin: var(--space-8) 0;
}
.bpt-prose th,
.bpt-prose td {
    padding: var(--space-3) var(--space-4);
    border: 1px solid var(--color-border);
    text-align: left;
}
.bpt-prose th {
    background: var(--color-surface);
    font-weight: 600;
    font-family: var(--font-heading);
}


/* ═══════════════════════════════════════════════════════════════
   4. LAYOUT UTILITIES
═══════════════════════════════════════════════════════════════ */

.bpt-container {
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--container-pad);
    padding-right: var(--container-pad);
}

.bpt-page-wrap {
    min-height: calc(100vh - var(--header-h));
}

.bpt-main {
    padding-top: var(--space-12);
    padding-bottom: var(--space-20);
}

.bpt-content-area {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-12);
}

.bpt-content-area--with-sidebar {
    grid-template-columns: minmax(0, 1fr) 300px;
}


/* ═══════════════════════════════════════════════════════════════
   5. SITE HEADER (fallback)
═══════════════════════════════════════════════════════════════ */

.bpt-site-header {
    position: sticky;
    top: 0;
    z-index: 200;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--color-border);
    height: var(--header-h);
    display: flex;
    align-items: center;
}

.bpt-site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-8);
    width: 100%;
}

/* Logo / brand */
.bpt-site-header__brand {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    flex-shrink: 0;
}

.bpt-site-header__brand .custom-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.bpt-site-header__title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: var(--text-lg);
    color: var(--color-text);
    text-decoration: none;
    letter-spacing: -0.02em;
}
.bpt-site-header__title:hover { color: var(--color-accent); }

.bpt-site-header__tagline {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    display: none; /* visible at wider widths */
}

/* Navigation */
.bpt-nav { position: relative; }

.bpt-nav__list {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    list-style: none;
    padding: 0;
    margin: 0;
}

.bpt-nav__list a {
    display: block;
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-text-mid);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: color var(--transition-fast), background var(--transition-fast);
    white-space: nowrap;
}

.bpt-nav__list a:hover,
.bpt-nav__list .current-menu-item > a,
.bpt-nav__list .current-page-ancestor > a {
    color: var(--color-accent);
    background: var(--bs-blue-faint);
}

/* Dropdown menus */
.bpt-nav__list .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    padding: var(--space-2);
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity var(--transition-fast), transform var(--transition-fast), visibility var(--transition-fast);
    z-index: 100;
}
.bpt-nav__list li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: none;
}
.bpt-nav__list .sub-menu a {
    display: block;
    padding: var(--space-2) var(--space-3);
    color: var(--color-text-mid);
    font-size: var(--text-sm);
}

/* Hamburger */
.bpt-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 36px;
    height: 36px;
    padding: 6px;
    cursor: pointer;
    background: none;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
}

.bpt-hamburger__bar {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    transition: transform var(--transition-normal), opacity var(--transition-fast);
}

.bpt-hamburger[aria-expanded="true"] .bpt-hamburger__bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.bpt-hamburger[aria-expanded="true"] .bpt-hamburger__bar:nth-child(2) {
    opacity: 0;
}
.bpt-hamburger[aria-expanded="true"] .bpt-hamburger__bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}


/* ═══════════════════════════════════════════════════════════════
   6. SITE FOOTER (fallback)
═══════════════════════════════════════════════════════════════ */

.bpt-site-footer {
    background: var(--color-text);
    color: rgba(255,255,255,0.65);
}

/* Widget rows */
.bpt-site-footer__widgets {
    padding: var(--space-16) 0 var(--space-12);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.bpt-site-footer__widgets-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-10);
}

.bpt-site-footer .widget-title {
    font-family: var(--font-heading);
    font-size: var(--text-sm);
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: var(--space-4);
}

.bpt-site-footer .widget a {
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    font-size: var(--text-sm);
    transition: color var(--transition-fast);
}
.bpt-site-footer .widget a:hover { color: var(--bs-blue-light); }

.bpt-site-footer .widget_nav_menu ul,
.bpt-site-footer .widget ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

/* Bottom bar */
.bpt-site-footer__bottom {
    padding: var(--space-6) 0;
}

.bpt-site-footer__bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-4);
    font-size: var(--text-xs);
    color: rgba(255,255,255,0.35);
}

.bpt-site-footer__nav-list {
    display: flex;
    gap: var(--space-5);
    list-style: none;
    padding: 0;
}
.bpt-site-footer__nav-list a {
    color: rgba(255,255,255,0.35);
    text-decoration: none;
    font-size: var(--text-xs);
    transition: color var(--transition-fast);
}
.bpt-site-footer__nav-list a:hover { color: rgba(255,255,255,0.7); }

.bpt-site-footer__credit a {
    color: var(--bs-blue-light);
    text-decoration: none;
}


/* ═══════════════════════════════════════════════════════════════
   7. POST GRID & CARDS
═══════════════════════════════════════════════════════════════ */

.bpt-post-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
}

.bpt-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow var(--transition-normal), transform var(--transition-normal);
}
.bpt-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.bpt-card__thumb-link {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}
.bpt-card__thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}
.bpt-card:hover .bpt-card__thumb { transform: scale(1.03); }

.bpt-card__body {
    padding: var(--space-6);
    display: flex;
    flex-direction: column;
    flex: 1;
}

.bpt-card__meta {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-3);
    font-size: var(--text-xs);
    color: var(--color-text-muted);
}

.bpt-card__cat a {
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 10px;
}

.bpt-card__title {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: var(--space-3);
}
.bpt-card__title a {
    color: var(--color-text);
    text-decoration: none;
}
.bpt-card__title a:hover { color: var(--color-accent); }

.bpt-card__excerpt {
    font-size: var(--text-sm);
    color: var(--color-text-mid);
    line-height: 1.6;
    margin-bottom: var(--space-4);
    flex: 1;
}

.bpt-card__link {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-accent);
    text-decoration: none;
    align-self: flex-start;
    transition: gap var(--transition-fast);
}
.bpt-card__link:hover { color: var(--color-accent-dark); }


/* ═══════════════════════════════════════════════════════════════
   8. SINGLE POST
═══════════════════════════════════════════════════════════════ */

.bpt-single-post__hero {
    margin-bottom: 0;
    overflow: hidden;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    max-height: 520px;
}
.bpt-single-post__hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bpt-single-post__body {
    padding: var(--space-10) 0;
}

.bpt-single-post__cats {
    margin-bottom: var(--space-3);
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.bpt-single-post__cats a {
    color: var(--color-accent);
    text-decoration: none;
}

.bpt-single-post__title {
    font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-5);
}

.bpt-single-post__meta {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin-bottom: var(--space-10);
    padding-bottom: var(--space-8);
    border-bottom: 1px solid var(--color-border);
}
.bpt-single-post__meta-sep { opacity: 0.4; }

.bpt-single-post__tags {
    margin-top: var(--space-8);
    padding-top: var(--space-6);
    border-top: 1px solid var(--color-border);
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}
.bpt-single-post__tags a {
    display: inline-block;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    color: var(--color-text-mid);
    font-size: var(--text-xs);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: 500;
    transition: background var(--transition-fast), border-color var(--transition-fast);
}
.bpt-single-post__tags a:hover {
    background: var(--bs-blue-faint);
    border-color: var(--bs-blue-subtle);
    color: var(--color-accent);
}

/* Author box */
.bpt-author-box {
    display: flex;
    gap: var(--space-5);
    align-items: flex-start;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    margin-top: var(--space-10);
}
.bpt-author-box__avatar {
    border-radius: 50%;
    flex-shrink: 0;
}
.bpt-author-box__name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: var(--text-base);
    margin-bottom: var(--space-1);
}
.bpt-author-box__bio {
    font-size: var(--text-sm);
    color: var(--color-text-mid);
    line-height: 1.6;
}

/* Post navigation */
.post-navigation {
    margin-top: var(--space-12);
    padding-top: var(--space-8);
    border-top: 1px solid var(--color-border);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6);
}
.nav-previous, .nav-next {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}
.nav-next { text-align: right; align-items: flex-end; }

.bpt-post-nav__label {
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-text-muted);
}
.bpt-post-nav__title {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-accent);
}


/* ═══════════════════════════════════════════════════════════════
   9. ARCHIVE HEADER
═══════════════════════════════════════════════════════════════ */

.bpt-archive-header {
    margin-bottom: var(--space-10);
    padding-bottom: var(--space-8);
    border-bottom: 1px solid var(--color-border);
}

.bpt-archive-header__title {
    font-size: clamp(var(--text-2xl), 4vw, var(--text-4xl));
    font-weight: 800;
    margin-bottom: var(--space-2);
}

.bpt-archive-header__desc {
    font-size: var(--text-base);
    color: var(--color-text-mid);
}

.bpt-archive-header__search {
    margin-top: var(--space-5);
    max-width: 480px;
}


/* ═══════════════════════════════════════════════════════════════
   10. SIDEBAR & WIDGETS
═══════════════════════════════════════════════════════════════ */

.bpt-sidebar {
    position: sticky;
    top: calc(var(--header-h) + var(--space-6));
    align-self: start;
    display: flex;
    flex-direction: column;
    gap: var(--space-8);
}

.widget {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
}

.widget__title {
    font-family: var(--font-heading);
    font-size: var(--text-sm);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-text-muted);
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-3);
    border-bottom: 1px solid var(--color-border);
}

.widget ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}
.widget li { font-size: var(--text-sm); }
.widget a {
    color: var(--color-text-mid);
    text-decoration: none;
}
.widget a:hover { color: var(--color-accent); }


/* ═══════════════════════════════════════════════════════════════
   11. COMMENTS
═══════════════════════════════════════════════════════════════ */

.bpt-comments {
    margin-top: var(--space-12);
    padding-top: var(--space-8);
    border-top: 1px solid var(--color-border);
}

.bpt-comments__title {
    font-size: var(--text-2xl);
    font-weight: 700;
    margin-bottom: var(--space-8);
}

.bpt-comment-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

.comment-body {
    background: var(--color-surface);
    border-radius: var(--radius-md);
    padding: var(--space-5);
    border: 1px solid var(--color-border);
}

.comment-author img { border-radius: 50%; float: left; margin-right: var(--space-3); }
.comment-meta { font-size: var(--text-sm); color: var(--color-text-muted); margin-bottom: var(--space-3); }
.comment-meta a { color: var(--color-text); font-weight: 600; text-decoration: none; }
.comment-content p { font-size: var(--text-sm); }

/* Comment form */
.comment-form {
    margin-top: var(--space-10);
}
.comment-form-comment label,
.comment-form-author label,
.comment-form-email label,
.comment-form-url label {
    display: block;
    font-size: var(--text-sm);
    font-weight: 600;
    margin-bottom: var(--space-1);
    color: var(--color-text);
}

.bpt-comments__closed {
    color: var(--color-text-muted);
    font-size: var(--text-sm);
}


/* ═══════════════════════════════════════════════════════════════
   12. FORMS
═══════════════════════════════════════════════════════════════ */

input[type="text"],
input[type="email"],
input[type="url"],
input[type="tel"],
input[type="number"],
input[type="search"],
input[type="password"],
textarea,
select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: var(--text-base);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.5;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    appearance: none;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(13, 141, 212, 0.12);
}

textarea { resize: vertical; min-height: 140px; }

.comment-form p { margin-bottom: var(--space-4); }


/* ═══════════════════════════════════════════════════════════════
   13. PAGINATION
═══════════════════════════════════════════════════════════════ */

.nav-links,
.page-numbers {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    flex-wrap: wrap;
    margin-top: var(--space-12);
}

.page-numbers a,
.page-numbers span,
.nav-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 var(--space-3);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-text-mid);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.page-numbers a:hover,
.nav-links a:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
    background: var(--bs-blue-faint);
}

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


/* ═══════════════════════════════════════════════════════════════
   14. 404 & NO-RESULTS
═══════════════════════════════════════════════════════════════ */

.bpt-404 {
    text-align: center;
    padding: var(--space-24) 0;
    max-width: 540px;
    margin: 0 auto;
}

.bpt-404__code {
    font-family: var(--font-heading);
    font-size: clamp(6rem, 20vw, 10rem);
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(135deg, var(--bs-blue), var(--bs-blue-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-4);
}

.bpt-404__title {
    font-size: var(--text-3xl);
    font-weight: 700;
    margin-bottom: var(--space-4);
}

.bpt-404__message {
    color: var(--color-text-mid);
    font-size: var(--text-lg);
    margin-bottom: var(--space-8);
}

.bpt-404__actions {
    margin-bottom: var(--space-8);
}

.bpt-404__search {
    max-width: 380px;
    margin: 0 auto;
}

.bpt-no-results {
    padding: var(--space-16) 0;
    text-align: center;
    max-width: 480px;
    margin: 0 auto;
}
.bpt-no-results h2 {
    margin-bottom: var(--space-3);
}
.bpt-no-results p {
    color: var(--color-text-mid);
    margin-bottom: var(--space-6);
}


/* ═══════════════════════════════════════════════════════════════
   15. SEARCH FORM
═══════════════════════════════════════════════════════════════ */

.search-form {
    display: flex;
    gap: 0;
}

.search-form label { flex: 1; }

.search-form input[type="search"] {
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    border-right: none;
}

.search-form button[type="submit"] {
    padding: 10px var(--space-5);
    background: var(--color-accent);
    color: #fff;
    border: 1px solid var(--color-accent);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background var(--transition-fast);
}
.search-form button[type="submit"]:hover {
    background: var(--color-accent-dark);
    border-color: var(--color-accent-dark);
}


/* ═══════════════════════════════════════════════════════════════
   16. BUTTONS
═══════════════════════════════════════════════════════════════ */

.bpt-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 24px;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.bpt-btn--primary {
    background: var(--color-accent);
    color: #ffffff;
    border-color: var(--color-accent);
}
.bpt-btn--primary:hover {
    background: var(--color-accent-dark);
    border-color: var(--color-accent-dark);
    color: #fff;
}

.bpt-btn--secondary {
    background: transparent;
    color: var(--color-accent);
    border-color: var(--color-accent);
}
.bpt-btn--secondary:hover {
    background: var(--bs-blue-faint);
    color: var(--color-accent-dark);
    border-color: var(--color-accent-dark);
}

/* WordPress submit buttons */
input[type="submit"],
button[type="submit"] {
    padding: 11px 24px;
    background: var(--color-accent);
    color: #fff;
    border: 2px solid var(--color-accent);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}
input[type="submit"]:hover,
button[type="submit"]:hover {
    background: var(--color-accent-dark);
    border-color: var(--color-accent-dark);
}


/* ═══════════════════════════════════════════════════════════════
   17. RESPONSIVE
═══════════════════════════════════════════════════════════════ */

@media (min-width: 769px) {
    .bpt-site-header__tagline { display: block; }
}

@media (max-width: 1024px) {
    .bpt-post-grid { grid-template-columns: repeat(2, 1fr); }
    .bpt-site-footer__widgets-grid { grid-template-columns: repeat(2, 1fr); }
    .bpt-content-area--with-sidebar { grid-template-columns: 1fr; }
    .bpt-sidebar { position: static; }
}

@media (max-width: 768px) {
    :root { --header-h: 60px; }

    .bpt-main {
        padding-top: var(--space-8);
        padding-bottom: var(--space-12);
    }

    /* Mobile nav */
    .bpt-hamburger { display: flex; }

    .bpt-nav__list {
        display: none;
        position: fixed;
        top: var(--header-h);
        left: 0;
        right: 0;
        bottom: 0;
        flex-direction: column;
        align-items: stretch;
        background: var(--color-bg);
        padding: var(--space-6);
        gap: var(--space-1);
        overflow-y: auto;
        z-index: 199;
        border-top: 1px solid var(--color-border);
    }
    .bpt-nav__list.is-open { display: flex; }

    .bpt-nav__list a {
        padding: var(--space-3) var(--space-4);
        font-size: var(--text-base);
        border-radius: var(--radius-sm);
    }

    .bpt-nav__list .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        padding-left: var(--space-4);
        margin-top: var(--space-1);
    }

    /* Content */
    .bpt-post-grid { grid-template-columns: 1fr; }
    .bpt-site-footer__widgets-grid { grid-template-columns: 1fr; }
    .post-navigation { grid-template-columns: 1fr; }

    .bpt-single-post__meta {
        flex-wrap: wrap;
        gap: var(--space-2);
    }

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