/*
Theme Name: BeautyPositive
Description: Custom editorial theme for BeautyPositive.org
Version: 1.1.0
Text Domain: beautypositive
*/

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
    --bg:           #faf8f5;
    --surface:      #ffffff;
    --surface-warm: #fef9f6;
    --border:       #ece5db;
    --border-light: #f4ede6;
    --text:         #1c1917;
    --text-mid:     #44403c;
    --muted:        #78716c;
    --accent:       #b5615a;
    --accent-hover: #9e4f49;
    --accent-light: #fef0ee;
    --accent-pale:  #fdf5f4;
    --tag-bg:       #f5eae7;
    --ink:          #1c1917;
    --max-w:        1200px;
    --art-w:        700px;
    --r:            3px;
    --r-lg:         6px;
    --font-body:    system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --font-head:    'Playfair Display', Georgia, 'Times New Roman', serif;
}

/* ============================================================
   RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.75;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ============================================================
   ACCESSIBILITY
   ============================================================ */
.screen-reader-text {
    clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
    height: 1px; width: 1px; margin: -1px; overflow: hidden; position: absolute;
}
.skip-link {
    position: absolute; top: -100%; left: 0;
    padding: 8px 16px; background: var(--accent); color: #fff; z-index: 9999;
    font-size: .85rem;
}
.skip-link:focus { top: 0; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.22; color: var(--text); }
h1 { font-size: clamp(1.6rem, 4.5vw, 2.3rem); font-weight: 700; }
h2 { font-size: clamp(1.15rem, 3vw, 1.5rem); font-weight: 700; }
h3 { font-size: 1.05rem; font-weight: 700; }
p  { margin-bottom: 1.3rem; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 700; }
blockquote {
    border-left: 3px solid var(--accent);
    padding: 16px 20px;
    margin: 28px 0;
    color: var(--text-mid);
    font-style: italic;
    font-family: var(--font-head);
    font-size: 1.05rem;
    background: var(--accent-pale);
    border-radius: 0 var(--r) var(--r) 0;
}

/* Article body */
.bp-entry-content { font-size: 1.0125rem; line-height: 1.82; color: var(--text-mid); }
.bp-entry-content h2 { margin: 2.2rem 0 1rem; color: var(--text); font-size: clamp(1.1rem, 2.5vw, 1.35rem); }
.bp-entry-content h3 { margin: 1.6rem 0 .75rem; color: var(--text); }
.bp-entry-content p  { margin-bottom: 1.4rem; }
.bp-entry-content ul,
.bp-entry-content ol { margin: 1rem 0 1.4rem 1.5rem; }
.bp-entry-content ul { list-style: disc; }
.bp-entry-content ol { list-style: decimal; }
.bp-entry-content li { margin-bottom: .5rem; line-height: 1.65; }
.bp-entry-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.bp-entry-content a:hover { opacity: .8; }
.bp-entry-content figure { margin: 2rem 0; }
.bp-entry-content figcaption { font-size: .78rem; color: var(--muted); text-align: center; margin-top: 8px; font-style: italic; }
.bp-entry-content table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: .9rem; }
.bp-entry-content th,
.bp-entry-content td { padding: 9px 14px; border: 1px solid var(--border); text-align: left; }
.bp-entry-content th { background: var(--tag-bg); font-weight: 700; color: var(--text); }
.bp-entry-content img { border-radius: var(--r-lg); margin: .75rem auto; }
.bp-entry-content hr { border: none; border-top: 1px solid var(--border); margin: 2.5rem 0; }
.wp-caption-text { font-size: .78rem; color: var(--muted); text-align: center; margin-top: 6px; font-style: italic; }
.aligncenter { display: block; margin: 0 auto; }
.alignleft  { float: left;  margin: 0 18px 10px 0; }
.alignright { float: right; margin: 0 0 10px 18px; }

/* ============================================================
   LAYOUT
   ============================================================ */
.bp-container { max-width: var(--max-w); margin: 0 auto; padding: 0 16px; }
.bp-narrow    { max-width: var(--art-w);  margin: 0 auto; padding: 0 16px; }
.bp-grid      { display: grid; grid-template-columns: 1fr; gap: 20px; }
.bp-grid-2    { display: grid; grid-template-columns: 1fr; gap: 20px; }

/* ============================================================
   HEADER — accent top bar + logo bar
   ============================================================ */
.bp-header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 200;
}

/* Thin accent stripe at very top */
.bp-header::before {
    content: '';
    display: block;
    height: 3px;
    background: var(--accent);
}

.bp-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 16px;
}

/* Logo wordmark */
.bp-logo {
    font-family: var(--font-head);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -.02em;
    flex-shrink: 0;
    line-height: 1;
    display: flex;
    align-items: baseline;
    gap: 0;
}
.bp-logo:hover { text-decoration: none; }
.bp-logo__beauty {
    font-style: italic;
    font-weight: 400;
    color: var(--text);
}
.bp-logo__positive {
    font-weight: 700;
    color: var(--accent);
}
/* If using image logo fallback */
.bp-logo img { height: 38px; width: auto; }

/* Desktop nav */
.bp-nav { display: none; }
.bp-nav ul { display: flex; gap: 0; }
.bp-nav a {
    display: block;
    padding: 6px 13px;
    font-size: .72rem;
    font-weight: 700;
    color: var(--text-mid);
    text-transform: uppercase;
    letter-spacing: .07em;
    position: relative;
}
.bp-nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 13px;
    right: 13px;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transition: transform .2s;
}
.bp-nav a:hover { color: var(--accent); text-decoration: none; }
.bp-nav a:hover::after { transform: scaleX(1); }
.bp-nav .current-menu-item > a,
.bp-nav .current-menu-ancestor > a { color: var(--accent); }
.bp-nav .current-menu-item > a::after { transform: scaleX(1); }

/* Hamburger */
.bp-hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    padding: 10px;
    margin-right: -10px;
}
.bp-hamburger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: .2s; }
.bp-hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.bp-hamburger.is-open span:nth-child(2) { opacity: 0; }
.bp-hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.bp-mobile-nav { display: none; background: var(--surface); border-bottom: 1px solid var(--border); }
.bp-mobile-nav.is-open { display: block; }
.bp-mobile-nav li { border-bottom: 1px solid var(--border-light); }
.bp-mobile-nav li:last-child { border-bottom: none; }
.bp-mobile-nav a {
    display: block;
    padding: 14px 16px;
    font-size: .8rem;
    font-weight: 700;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: .07em;
}
.bp-mobile-nav a:hover { color: var(--accent); text-decoration: none; }

/* ============================================================
   FOOTER
   ============================================================ */
.bp-footer {
    background: var(--ink);
    color: rgba(255,255,255,.7);
    margin-top: 64px;
    padding: 36px 0;
}
.bp-footer__inner { max-width: var(--max-w); margin: 0 auto; padding: 0 16px; }
.bp-footer__logo {
    display: block;
    font-family: var(--font-head);
    font-size: 1.2rem;
    font-weight: 400;
    font-style: italic;
    color: #fff;
    margin-bottom: 16px;
    letter-spacing: -.01em;
}
.bp-footer__logo strong { font-weight: 700; color: var(--accent); }
.bp-footer__logo:hover { text-decoration: none; opacity: .85; }
.bp-footer__nav { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-bottom: 18px; }
.bp-footer__nav a {
    font-size: .72rem;
    color: rgba(255,255,255,.5);
    text-transform: uppercase;
    letter-spacing: .07em;
}
.bp-footer__nav a:hover { color: rgba(255,255,255,.85); text-decoration: none; }
.bp-footer__copy { font-size: .73rem; color: rgba(255,255,255,.35); }

/* ============================================================
   CATEGORY TAG
   ============================================================ */
.bp-tag {
    display: inline-block;
    background: var(--tag-bg);
    color: var(--accent);
    font-size: .64rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .1em;
    padding: 3px 9px;
    border-radius: 2px;
}
.bp-tag:hover { background: var(--accent); color: #fff; text-decoration: none; }
.bp-tag--white {
    background: rgba(255,255,255,.2);
    color: #fff;
    backdrop-filter: blur(4px);
}
.bp-tag--white:hover { background: var(--accent); }

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.bp-section { padding: 32px 0; }
.bp-section + .bp-section { border-top: 1px solid var(--border-light); }

.bp-section__label {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
    font-size: .66rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .15em;
    color: var(--text);
}
.bp-section__label::before {
    content: '';
    display: block;
    width: 3px;
    height: 16px;
    background: var(--accent);
    border-radius: 2px;
    flex-shrink: 0;
}
.bp-section__label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}
.bp-section__label a { color: var(--text); }
.bp-section__label a:hover { color: var(--accent); text-decoration: none; }
.bp-section__label__more {
    font-size: .6rem;
    color: var(--muted);
    font-weight: 700;
    white-space: nowrap;
    letter-spacing: .08em;
    margin-left: 4px;
}
.bp-section__label__more:hover { color: var(--accent); text-decoration: none; }

/* ============================================================
   STANDARD CARD
   ============================================================ */
.bp-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow .18s, border-color .18s;
}
.bp-card:hover { box-shadow: 0 4px 20px rgba(28,25,23,.08); border-color: var(--border); }

.bp-card__img {
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--tag-bg);
    flex-shrink: 0;
    position: relative;
}
.bp-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.bp-card:hover .bp-card__img img { transform: scale(1.04); }
.bp-card__img--empty {
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, var(--accent-light) 0%, var(--tag-bg) 100%);
}

.bp-card__body { padding: 16px; flex: 1; display: flex; flex-direction: column; gap: 0; }
.bp-card__tag  { margin-bottom: 9px; }
.bp-card__title {
    font-family: var(--font-head);
    font-size: .98rem;
    font-weight: 700;
    line-height: 1.33;
    color: var(--text);
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.bp-card__title a { color: inherit; }
.bp-card__title a:hover { color: var(--accent); text-decoration: none; }
.bp-card__meta { font-size: .7rem; color: var(--muted); margin-top: auto; letter-spacing: .01em; }
.bp-card__meta span + span::before { content: ' · '; }

/* ============================================================
   FEATURED OVERLAY CARD (image + text gradient)
   ============================================================ */
.bp-card--overlay {
    position: relative;
    border: none;
    background: none;
    border-radius: var(--r-lg);
    overflow: hidden;
}
.bp-card--overlay:hover { box-shadow: 0 6px 28px rgba(28,25,23,.14); }
.bp-card--overlay .bp-card__img {
    aspect-ratio: unset;
    height: 300px;
    border-radius: 0;
    position: relative;
}
.bp-card--overlay .bp-card__img img { transform-origin: center; }
.bp-card--overlay:hover .bp-card__img img { transform: scale(1.04); }
.bp-card__overlay-body {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 60px 18px 18px;
    background: linear-gradient(to top, rgba(22,18,16,.94) 0%, rgba(22,18,16,.6) 55%, transparent 100%);
    color: #fff;
}
.bp-card--overlay .bp-card__title {
    color: #fff;
    font-size: 1.15rem;
    line-height: 1.28;
    margin-bottom: 8px;
    -webkit-line-clamp: 4;
    text-shadow: 0 1px 3px rgba(0,0,0,.3);
}
.bp-card--overlay .bp-card__title a { color: #fff; }
.bp-card--overlay .bp-card__title a:hover { color: rgba(255,255,255,.85); text-decoration: none; }
.bp-card--overlay .bp-card__meta { color: rgba(255,255,255,.65); margin-top: 0; }

/* ============================================================
   COMPACT HORIZONTAL CARD
   ============================================================ */
.bp-card--compact {
    flex-direction: row;
    gap: 12px;
    background: none;
    border: none;
    border-radius: 0;
    border-bottom: 1px solid var(--border-light);
    padding: 14px 0;
}
.bp-card--compact:last-child { border-bottom: none; }
.bp-card--compact:hover { box-shadow: none; }
.bp-card--compact .bp-card__img {
    width: 88px;
    height: 72px;
    aspect-ratio: unset;
    border-radius: var(--r);
    flex-shrink: 0;
    overflow: hidden;
    background: var(--tag-bg);
}
.bp-card--compact .bp-card__body { padding: 0; }
.bp-card--compact .bp-card__tag { margin-bottom: 5px; }
.bp-card--compact .bp-card__title {
    font-size: .82rem;
    font-weight: 700;
    font-family: var(--font-body);
    line-height: 1.4;
    -webkit-line-clamp: 2;
    letter-spacing: -.01em;
}
.bp-card--compact .bp-card__meta { font-size: .67rem; }

/* ============================================================
   HERO EDITORIAL GRID
   ============================================================ */
.bp-hero-section { padding: 0 0 32px; }
.bp-hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}
.bp-hero-featured { display: flex; flex-direction: column; }
.bp-hero-stack { display: flex; flex-direction: column; gap: 12px; }
.bp-hero-stack .bp-card {
    flex-direction: row;
    border-radius: var(--r-lg);
}
.bp-hero-stack .bp-card .bp-card__img {
    width: 110px;
    height: auto;
    aspect-ratio: 1/1;
    flex-shrink: 0;
    border-radius: 0;
}
.bp-hero-stack .bp-card .bp-card__body { padding: 14px; }
.bp-hero-stack .bp-card .bp-card__title {
    font-size: .88rem;
    -webkit-line-clamp: 3;
}

/* ============================================================
   TRENDING BAR
   ============================================================ */
.bp-trending-section {
    background: var(--surface);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    padding: 0;
}
.bp-trending {
    display: flex;
    align-items: stretch;
    min-height: 52px;
    overflow: hidden;
}
.bp-trending__label {
    display: flex;
    align-items: center;
    background: var(--accent);
    color: #fff;
    font-size: .62rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .14em;
    padding: 0 16px;
    white-space: nowrap;
    flex-shrink: 0;
}
.bp-trending__items {
    display: flex;
    align-items: center;
    gap: 0;
    overflow-x: auto;
    scrollbar-width: none;
    flex: 1;
}
.bp-trending__items::-webkit-scrollbar { display: none; }
.bp-trending__item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 16px;
    border-right: 1px solid var(--border-light);
    white-space: nowrap;
    min-height: 52px;
    flex-shrink: 0;
    color: var(--text);
    max-width: 220px;
    white-space: normal;
}
.bp-trending__item:hover { background: var(--accent-pale); text-decoration: none; }
.bp-trending__num {
    font-family: var(--font-head);
    font-size: 1.2rem;
    font-weight: 700;
    font-style: italic;
    color: var(--border);
    line-height: 1;
    flex-shrink: 0;
}
.bp-trending__title {
    font-size: .75rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    white-space: normal;
}
.bp-trending__item:hover .bp-trending__title { color: var(--accent); }

/* ============================================================
   BREADCRUMBS
   ============================================================ */
.bp-breadcrumbs,
#breadcrumbs {
    font-size: .72rem;
    color: var(--muted);
    margin-bottom: 16px;
    line-height: 1.5;
}
.bp-breadcrumbs a,
#breadcrumbs a { color: var(--muted); }
.bp-breadcrumbs a:hover,
#breadcrumbs a:hover { color: var(--accent); text-decoration: none; }
#breadcrumbs { display: block; }

/* ============================================================
   META BAR
   ============================================================ */
.bp-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
    font-size: .76rem;
    color: var(--muted);
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border-light);
}
.bp-meta__avatar { width: 32px; height: 32px; border-radius: 50%; overflow: hidden; background: var(--tag-bg); flex-shrink: 0; }
.bp-meta__avatar img { width: 100%; height: 100%; object-fit: cover; }
.bp-meta__info { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
.bp-meta__author { font-weight: 700; color: var(--text); }
.bp-meta__author a { color: var(--text); }
.bp-meta__author a:hover { color: var(--accent); text-decoration: none; }
.bp-meta__updated { font-style: italic; }
.bp-meta__sep { color: var(--border); }

/* ============================================================
   SINGLE POST / ARTICLE
   ============================================================ */
.bp-single { padding: 20px 0 0; }

.bp-single__cat { margin-bottom: 12px; }
.bp-single__title {
    font-size: clamp(1.6rem, 4.5vw, 2.4rem);
    font-weight: 700;
    line-height: 1.18;
    letter-spacing: -.02em;
    margin-bottom: 18px;
    color: var(--text);
}
.bp-single__feat {
    margin: 0 -16px 32px;
    overflow: hidden;
    background: var(--tag-bg);
    position: relative;
}
.bp-single__feat img {
    width: 100%;
    display: block;
    aspect-ratio: 16/9;
    object-fit: cover;
}
.bp-single__feat::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(to top, var(--bg), transparent);
    pointer-events: none;
}
.bp-single__body { padding-bottom: 40px; }

/* ============================================================
   NEWSLETTER INLINE
   ============================================================ */
.bp-nl {
    background: var(--accent-pale);
    border: 1px solid var(--accent-light);
    border-left: 4px solid var(--accent);
    border-radius: 0 var(--r-lg) var(--r-lg) 0;
    padding: 22px 20px;
    margin: 36px 0;
}
.bp-nl__title {
    font-family: var(--font-head);
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text);
}
.bp-nl__sub { font-size: .82rem; color: var(--muted); margin-bottom: 16px; }
.bp-nl .mc4wp-form { margin: 0; }
.bp-nl .mc4wp-form p { margin: 0; }
.bp-nl .mc4wp-form input[type="email"] {
    width: 100%;
    padding: 11px 15px;
    border: 1px solid var(--border);
    border-radius: var(--r);
    font-size: .9rem;
    margin-bottom: 8px;
    background: #fff;
    color: var(--text);
}
.bp-nl .mc4wp-form input[type="email"]:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.bp-nl .mc4wp-form input[type="submit"],
.bp-nl .mc4wp-form button[type="submit"] {
    width: 100%;
    padding: 11px 18px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: var(--r);
    font-size: .88rem;
    font-weight: 700;
    letter-spacing: .02em;
}
.bp-nl .mc4wp-form input[type="submit"]:hover { background: var(--accent-hover); }
.bp-nl .mc4wp-response { font-size: .8rem; margin-top: 8px; color: var(--muted); }

/* ============================================================
   AUTHOR BOX
   ============================================================ */
.bp-author-box {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    padding: 22px;
    background: var(--surface-warm);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    margin: 36px 0;
}
.bp-author-box__ava { width: 56px; height: 56px; border-radius: 50%; overflow: hidden; background: var(--tag-bg); flex-shrink: 0; }
.bp-author-box__ava img { width: 100%; height: 100%; object-fit: cover; }
.bp-author-box__label { font-size: .62rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 3px; }
.bp-author-box__name { font-size: .9rem; font-weight: 700; margin-bottom: 6px; }
.bp-author-box__name a { color: var(--text); }
.bp-author-box__name a:hover { color: var(--accent); text-decoration: none; }
.bp-author-box__bio { font-size: .8rem; color: var(--muted); line-height: 1.6; }

/* ============================================================
   RELATED POSTS
   ============================================================ */
.bp-related { margin: 36px 0 0; padding-top: 32px; border-top: 1px solid var(--border-light); }
.bp-related__heading {
    font-size: .66rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .15em;
    color: var(--muted);
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.bp-related__heading::after { content: ''; flex: 1; height: 1px; background: var(--border-light); }
.bp-related__grid { display: grid; grid-template-columns: 1fr; gap: 16px; }

/* ============================================================
   ARCHIVE / CATEGORY
   ============================================================ */
.bp-archive { padding: 20px 0 48px; }
.bp-cat-head { padding: 24px 0 20px; border-bottom: 2px solid var(--border); margin-bottom: 28px; }
.bp-cat-head__name { font-size: clamp(1.4rem, 4vw, 2rem); font-weight: 700; margin-bottom: 6px; letter-spacing: -.02em; }
.bp-cat-head__desc { font-size: .85rem; color: var(--muted); max-width: 520px; line-height: 1.6; }

/* ============================================================
   AUTHOR ARCHIVE
   ============================================================ */
.bp-author-head { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; padding: 24px 0; border-bottom: 1px solid var(--border); margin-bottom: 28px; }
.bp-author-head__ava { width: 72px; height: 72px; border-radius: 50%; overflow: hidden; background: var(--tag-bg); flex-shrink: 0; }
.bp-author-head__ava img { width: 100%; height: 100%; object-fit: cover; }
.bp-author-head__name { font-size: clamp(1.2rem, 3vw, 1.7rem); font-weight: 700; margin-bottom: 4px; letter-spacing: -.02em; }
.bp-author-head__bio { font-size: .83rem; color: var(--muted); max-width: 460px; line-height: 1.6; }

/* ============================================================
   PAGINATION
   ============================================================ */
.bp-pager { display: flex; justify-content: center; gap: 5px; padding: 36px 0 0; flex-wrap: wrap; }
.bp-pager .page-numbers {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 36px; height: 36px; padding: 0 10px;
    border: 1px solid var(--border); border-radius: var(--r);
    font-size: .82rem; color: var(--text); background: var(--surface);
    transition: border-color .15s, color .15s;
}
.bp-pager .page-numbers:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.bp-pager .page-numbers.current { background: var(--accent); color: #fff; border-color: var(--accent); }
.bp-pager .page-numbers.dots { border: none; background: none; }

/* ============================================================
   SEARCH
   ============================================================ */
.bp-search { padding: 28px 0 48px; }
.bp-search-form { display: flex; gap: 8px; margin-bottom: 28px; }
.bp-search-form input[type="search"] {
    flex: 1; padding: 11px 16px;
    border: 1px solid var(--border); border-radius: var(--r);
    font-size: .95rem; background: var(--surface); color: var(--text);
}
.bp-search-form input[type="search"]:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.bp-search-form button {
    padding: 11px 20px; background: var(--accent); color: #fff;
    border: none; border-radius: var(--r); font-size: .9rem; font-weight: 700;
}
.bp-search-form button:hover { background: var(--accent-hover); }

/* ============================================================
   404
   ============================================================ */
.bp-404 { padding: 72px 0; text-align: center; }
.bp-404__num { font-family: var(--font-head); font-size: 7rem; font-weight: 700; color: var(--border); line-height: 1; margin-bottom: 12px; letter-spacing: -.05em; font-style: italic; }
.bp-404__msg { font-size: 1.05rem; color: var(--muted); margin-bottom: 28px; }
.bp-btn { display: inline-block; padding: 12px 28px; background: var(--accent); color: #fff; border-radius: var(--r); font-size: .9rem; font-weight: 700; }
.bp-btn:hover { background: var(--accent-hover); text-decoration: none; color: #fff; }

/* ============================================================
   STATIC PAGES
   ============================================================ */
.bp-page { padding: 30px 0 52px; }
.bp-page__title {
    font-size: clamp(1.5rem, 4vw, 2rem);
    margin-bottom: 28px;
    padding-bottom: 18px;
    border-bottom: 2px solid var(--border);
    letter-spacing: -.02em;
}

/* ============================================================
   COMMENTS
   ============================================================ */
.bp-comments { margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--border-light); }
.bp-comments__title { font-size: 1.15rem; font-weight: 700; margin-bottom: 22px; font-family: var(--font-head); }
.comment-list { list-style: none; }
.comment-list .comment { padding: 18px 0; border-bottom: 1px solid var(--border-light); }
.comment-list .comment-author img { border-radius: 50%; }
.comment-list .comment-author b { font-size: .9rem; font-weight: 700; }
.comment-list .comment-meta { font-size: .72rem; color: var(--muted); margin-bottom: 8px; }
.comment-list .comment-content p { font-size: .9rem; color: var(--text-mid); }
.comment-respond { margin-top: 32px; }
.comment-respond h3 { font-size: 1.05rem; margin-bottom: 18px; font-family: var(--font-head); }
.comment-respond input,
.comment-respond textarea {
    width: 100%; padding: 10px 13px;
    border: 1px solid var(--border); border-radius: var(--r);
    font-size: .9rem; margin-bottom: 10px; background: #fff; color: var(--text);
}
.comment-respond textarea { min-height: 120px; resize: vertical; }
.comment-respond .submit { padding: 10px 24px; background: var(--accent); color: #fff; border: none; border-radius: var(--r); font-size: .88rem; font-weight: 700; }
.comment-respond .submit:hover { background: var(--accent-hover); }
.logged-in-as,
.comment-notes { font-size: .78rem; color: var(--muted); margin-bottom: 12px; }
.form-allowed-tags { display: none; }

/* ============================================================
   MISC
   ============================================================ */
.bp-no-posts { padding: 48px 0; color: var(--muted); text-align: center; font-size: .9rem; }
.bp-divider { border: none; border-top: 1px solid var(--border-light); margin: 0; }

/* ============================================================
   TABLET 768px+
   ============================================================ */
@media (min-width: 768px) {
    .bp-header__inner { height: 68px; padding: 0 24px; }
    .bp-logo { font-size: 1.6rem; }
    .bp-hamburger { display: none; }
    .bp-nav { display: flex; align-items: center; }
    .bp-container { padding: 0 24px; }
    .bp-narrow    { padding: 0 24px; }
    .bp-grid      { grid-template-columns: 1fr 1fr; }
    .bp-grid-2    { grid-template-columns: 1fr 1fr; }

    .bp-hero-grid {
        grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
        gap: 12px;
    }
    .bp-hero-featured .bp-card--overlay .bp-card__img { height: 100%; min-height: 400px; }
    .bp-hero-stack { justify-content: space-between; }
    .bp-hero-stack .bp-card { flex: 1; }

    .bp-single__feat { margin: 0 0 32px; border-radius: var(--r-lg); }
    .bp-single__feat::after { display: none; }

    .bp-section { padding: 40px 0; }
    .bp-related__grid { grid-template-columns: 1fr 1fr 1fr; }

    .bp-footer__inner { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 16px; }

    .bp-nl .mc4wp-form { display: flex; gap: 8px; }
    .bp-nl .mc4wp-form p { display: flex; gap: 8px; flex: 1; margin: 0; }
    .bp-nl .mc4wp-form input[type="email"] { margin-bottom: 0; flex: 1; }
    .bp-nl .mc4wp-form input[type="submit"],
    .bp-nl .mc4wp-form button[type="submit"] { width: auto; white-space: nowrap; }

    /* Trending: horizontal on tablet+ */
    .bp-trending__item { white-space: nowrap; min-width: 180px; max-width: 240px; }

    .bp-hero-section { padding: 28px 0 40px; }
}

/* ============================================================
   DESKTOP 1024px+
   ============================================================ */
@media (min-width: 1024px) {
    .bp-grid { grid-template-columns: 1fr 1fr 1fr; }
    .bp-container { padding: 0 32px; }
    .bp-narrow    { padding: 0 32px; }
    .bp-nav a { font-size: .73rem; padding: 6px 14px; }
    .bp-logo { font-size: 1.75rem; }
    .bp-card--overlay .bp-card__title { font-size: 1.3rem; }
    .bp-hero-stack { gap: 10px; }
    .bp-hero-stack .bp-card .bp-card__img { width: 130px; }
}

@media (min-width: 1200px) {
    .bp-container { padding: 0 40px; }
}

/* ============================================================
   PRINT
   ============================================================ */
@media print {
    .bp-header, .bp-footer, .bp-nl, .bp-related, .bp-hamburger, .bp-mobile-nav { display: none !important; }
    body { background: #fff; color: #000; }
    .bp-single__feat { margin: 0 0 24px; }
}
