/* BeryPixel Editorial Blog 1.0.0 · Original responsive publication theme */
:root {
    --bpxt-navy: #122644;
    --bpxt-ink: #18283d;
    --bpxt-soft: #61728a;
    --bpxt-border: #e3e8ef;
    --bpxt-accent: #922eea;
    --bpxt-background: #f6f8fc;
    --bpxt-paper: #ffffff;
    --bpxt-main-width: 728px;
    --bpxt-sidebar-width: 312px;
    --bpxt-gap: 48px;
    --bpxt-shell: 1144px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--bpxt-background); color: var(--bpxt-ink); font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif; line-height: 1.6; }
img, svg, video { max-width: 100%; height: auto; }
a { color: var(--bpxt-navy); text-decoration: none; }
a:hover { color: var(--bpxt-accent); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--bpxt-accent); outline-offset: 3px; }
.bpxt-skip-link { position: absolute; left: 12px; top: -90px; z-index: 100000; padding: 10px 14px; color: white; background: var(--bpxt-navy); }
.bpxt-skip-link:focus { top: 12px; }
.bpxt-site-header { background: var(--bpxt-paper); border-bottom: 1px solid var(--bpxt-border); box-shadow: 0 5px 22px rgb(26 40 72 / 3%); }
.bpxt-header-inner { max-width: var(--bpxt-shell); margin: 0 auto; padding: 25px 28px 22px; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.bpxt-brand { min-width: 0; }
.bpxt-logo-link { display: block; width: fit-content; max-width: 100%; }
.bpxt-logo { display: block; width: auto; height: auto; max-height: 79px; max-width: min(360px, 100%); object-fit: contain; object-position: left center; }
.bpxt-fallback-logo { max-height: 76px; }
.bpxt-tagline { color: #5e6c81; font-size: 13px; font-weight: 500; line-height: 1.5; margin: 4px 0 0 1px; max-width: 700px; }
.bpxt-header-note { flex: none; padding-bottom: 3px; color: #94a0b0; font-size: 11px; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; }
.bpxt-site-layout { display: grid; grid-template-columns: minmax(0, var(--bpxt-main-width)) var(--bpxt-sidebar-width); column-gap: var(--bpxt-gap); align-items: start; max-width: var(--bpxt-shell); padding: 38px 28px 90px; margin: 0 auto; }
.bpxt-main { min-width: 0; }
.bpxt-section-line { display: flex; align-items: center; gap: 14px; margin-bottom: 23px; padding-bottom: 16px; border-bottom: 2px solid #dce4ee; }
.bpxt-section-line h1 { margin: 0; font-size: clamp(22px, 2.5vw, 29px); letter-spacing: -0.035em; line-height: 1.17; font-weight: 850; }
.bpxt-section-line span, .bpxt-widget-title span { color: var(--bpxt-accent); }
/* Homepage article stream */
.bpxt-story { margin-bottom: 31px; background: var(--bpxt-paper); border: 1px solid var(--bpxt-border); border-radius: 13px; box-shadow: 0 12px 35px rgb(26 41 75 / 4%); overflow: hidden; }
.bpxt-story-photo { width: 100%; }
.bpxt-story-photo-link { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #e7eaf1; }
.bpxt-story-img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform 220ms ease; }
.bpxt-story-photo-link:hover .bpxt-story-img { transform: scale(1.018); }
.bpxt-story-text { padding: 23px 28px 27px; }
.bpxt-story-meta { color: var(--bpxt-soft); font-size: 12px; font-weight: 700; letter-spacing: .03em; margin-bottom: 11px; }
.bpxt-story-title { margin: 0 0 12px; font-weight: 850; font-size: clamp(24px, 2.7vw, 32px); line-height: 1.2; letter-spacing: -.037em; overflow-wrap: break-word; }
.bpxt-story-title a { color: var(--bpxt-navy); }
.bpxt-story-title a:hover { color: var(--bpxt-accent); }
.bpxt-story-lead { margin: 0 0 15px; font-weight: 550; font-size: 15px; line-height: 1.64; color: #455670; }
.bpxt-story-more { display: inline-flex; gap: 7px; align-items: center; font-size: 13px; font-weight: 750; color: var(--bpxt-accent); }
.bpxt-story-more:hover { text-decoration: underline; }
/* The right column is deliberately 312px on desktop */
.bpxt-sidebar { min-width: 0; width: var(--bpxt-sidebar-width); margin-top: 10px; }
.bpxt-widget { padding: 21px 22px 23px; margin-bottom: 23px; background: var(--bpxt-paper); border: 1px solid var(--bpxt-border); border-radius: 12px; box-shadow: 0 10px 30px rgb(26 41 75 / 3%); overflow-wrap: anywhere; }
.bpxt-sidebar-kicker { color: var(--bpxt-accent); letter-spacing: .14em; font-size: 10px; font-weight: 800; margin-bottom: 8px; text-transform: uppercase; }
.bpxt-widget-title { font-size: 21px; line-height: 1.25; letter-spacing: -.025em; font-weight: 800; margin: 0 0 16px; }
.bpxt-widget ul, .bpxt-widget ol { padding-left: 19px; }
.bpxt-recent-list { list-style: none; counter-reset: articles; margin: 0; padding: 0 !important; }
.bpxt-recent-list li { padding: 14px 0; border-top: 1px solid var(--bpxt-border); }
.bpxt-recent-list li:first-child { border-top: 0; padding-top: 2px; }
.bpxt-recent-list a { display: block; font-size: 14px; line-height: 1.48; font-weight: 760; color: var(--bpxt-navy); }
.bpxt-recent-list a:hover { color: var(--bpxt-accent); }
.bpxt-recent-list time { font-size: 11px; color: var(--bpxt-soft); display: block; margin-top: 5px; }
.bpxt-muted { color: var(--bpxt-soft); font-size: 14px; }
/* Article detail – exact editorial reading order */
.bpxt-single-main { min-width: 0; }
.bpxt-article { padding: 29px 35px 37px; background: var(--bpxt-paper); border: 1px solid var(--bpxt-border); border-radius: 12px; box-shadow: 0 14px 34px rgb(31 42 72 / 4%); overflow-wrap: break-word; }
.bpxt-article-title { color: #17253b; font-size: clamp(33px, 3.8vw, 46px); line-height: 1.13; font-weight: 880; letter-spacing: -.045em; margin: 0 0 26px; overflow-wrap: break-word; }
.bpxt-photo-frame { display: block !important; float: none !important; clear: both !important; margin: 0 0 15px !important; width: 100% !important; max-width: 100% !important; padding: 0 !important; }
.bpxt-photo-frame > img, .bpxt-photo-frame > a > img, .bpxt-photo-frame > picture > img { display: block; width: 100%; height: auto; border-radius: 5px 5px 0 0; }
/* Plugin 0.6.3 inserts its own photo credit within the figure on public singular pages. */
.bpxt-photo-frame .bpx-photo-credit,
.bpxt-photo-frame .bpx-featured-caption,
.bpxt-photo-frame .bpxt-photo-credit {
    display: block !important; visibility: visible !important; opacity: 1 !important;
    width: 100% !important; box-sizing: border-box !important; max-width: 100% !important;
    margin: 6px 0 7px !important; padding: 8px 11px !important;
    background: #f8f9fc !important; color: #35465f !important;
    border: 1px solid #bec8d5 !important; border-radius: 4px !important;
    font: 500 12px/1.5 system-ui, Arial, sans-serif !important; overflow-wrap: anywhere !important;
}
.bpxt-photo-description, .bpxt-photo-frame .bpx-photo-description { display: block; font: 400 12px/1.5 system-ui,Arial,sans-serif; color: #536178; margin: 5px 0 11px; }
.bpxt-article-meta { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin: 0 0 24px; color: var(--bpxt-soft); font-size: 12px; line-height: 1.5; }
.bpxt-article-meta strong { color: #34465f; font-weight: 750; }
.bpxt-dot { color: #9eabbc; }
.bpxt-perex { max-width: 640px; font-size: clamp(19px, 2vw, 21px); line-height: 1.52; font-weight: 800; letter-spacing: -.01em; color: #182c49; margin-bottom: 22px; }
.bpxt-article-body { max-width: 640px; font-size: 17px; line-height: 1.82; color: #24364d; word-wrap: break-word; }
.bpxt-article-body::after { content: ''; display: table; clear: both; }
.bpxt-article-body p { margin: 0 0 21px; }
.bpxt-article-body h2, .bpxt-article-body h3, .bpxt-article-body h4 { color: #17263f; font-weight: 820; line-height: 1.3; letter-spacing: -.023em; clear: both; }
.bpxt-article-body h2 { font-size: 27px; margin: 35px 0 14px; }
.bpxt-article-body h3 { font-size: 23px; margin: 30px 0 12px; }
.bpxt-article-body h4 { font-size: 20px; margin: 26px 0 10px; }
.bpxt-article-body a, .bpxt-post-tags a { color: #5f24bc; text-decoration: underline; text-underline-offset: 3px; }
.bpxt-article-body a:hover { color: #a02bd8; }
.bpxt-article-body ul, .bpxt-article-body ol { margin: 15px 0 22px; padding-left: 28px; }
.bpxt-article-body li { margin-bottom: 9px; }
.bpxt-article-body blockquote { margin: 22px 0; border-left: 4px solid var(--bpxt-accent); padding: 10px 20px; background: #f4f1fb; }
.bpxt-article-body img, .bpxt-article-body figure, .bpxt-article-body iframe { max-width: 100%; }
.bpxt-article-body iframe { border: 0; }
.bpxt-article-body .bpx-inline-figure.bpx-photo-left { margin-right: 20px !important; }
.bpxt-article-body .bpx-inline-figure.bpx-photo-right { margin-left: 20px !important; }
.bpxt-article-body .bpx-photo-credit, .bpxt-article-body .bpx-inline-credits { border: 1px solid #bec8d5 !important; background: #f8f9fc !important; color: #35465f !important; font-size: 12px !important; line-height: 1.55 !important; }
.bpxt-article-body .bpx-public-excerpt { display: none; } /* Additional guard: article perex is always rendered explicitly above content. */
.bpxt-article-body .bpx-authors-credit { display: none; } /* Theme prints all coauthors above the perex. */
.bpxt-article-body .alignleft, .bpxt-article-body img.alignleft { float: left; margin: 5px 19px 13px 0; }
.bpxt-article-body .alignright, .bpxt-article-body img.alignright { float: right; margin: 5px 0 13px 19px; }
.bpxt-article-body .aligncenter, .bpxt-article-body img.aligncenter { display: block; margin: 18px auto; float: none; }
.bpxt-article-body .wp-caption { max-width: 100%; }
.bpxt-article-body .wp-caption-text { font-size: 12px; line-height: 1.5; }
.bpxt-post-tags { clear: both; border-top: 1px solid var(--bpxt-border); padding-top: 20px; margin-top: 30px; color: var(--bpxt-soft); font-size: 13px; }
.bpxt-after-post { margin: 20px 0 0; padding: 0 2px; font-size: 13px; font-weight: 750; }
.bpxt-after-post a { color: #6136a7; }
.bpxt-site-footer { background: white; border-top: 1px solid var(--bpxt-border); }
.bpxt-footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; max-width: var(--bpxt-shell); margin: 0 auto; padding: 24px 28px; color: #77859b; font-size: 12px; }
.bpxt-footer-credit a { color: #533195; font-weight: 750; }
.bpxt-empty { padding: 30px 24px; color: #53627a; background: white; border: 1px solid var(--bpxt-border); border-radius: 10px; }
.bpxt-pagination { margin: 25px 0 0; }
.bpxt-pagination .page-numbers { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; list-style: none; gap: 7px; padding: 0; margin: 0; }
.bpxt-pagination a, .bpxt-pagination span { display: inline-block; border: 1px solid var(--bpxt-border); border-radius: 7px; background: #fff; padding: 7px 12px; font-weight: 750; font-size: 13px; }
.bpxt-pagination .current { background: var(--bpxt-navy); color: white; }
.bpxt-article-body .bpx-public-embed, .bpxt-article-body .wp-video { max-width: 100%; }
/* Responsive: 312px fixed desktop sidebar; below 1060px stack. */
@media (max-width: 1080px) {
    .bpxt-site-layout { grid-template-columns: minmax(0, 1fr) 280px; gap: 26px; }
    .bpxt-sidebar { width: 280px; }
}
@media (max-width: 850px) {
    .bpxt-site-layout { display: block; max-width: 800px; padding: 24px 22px 60px; }
    .bpxt-sidebar { width: 100%; margin-top: 28px; }
    .bpxt-widget { max-width: 100%; }
    .bpxt-recent-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
}
@media (max-width: 560px) {
    .bpxt-header-inner { padding: 19px 17px 17px; }
    .bpxt-header-note { display: none; }
    .bpxt-logo { max-height: 59px; max-width: min(290px, 100%); }
    .bpxt-fallback-logo { max-height: 54px; }
    .bpxt-tagline { font-size: 12px; line-height: 1.45; }
    .bpxt-site-layout { padding: 19px 13px 45px; }
    .bpxt-story { margin-bottom: 19px; border-radius: 9px; }
    .bpxt-story-text { padding: 17px 16px 20px; }
    .bpxt-story-title { font-size: 25px; }
    .bpxt-story-lead { font-size: 14px; }
    .bpxt-section-line { margin-bottom: 16px; }
    .bpxt-article { padding: 22px 17px 27px; border-radius: 9px; }
    .bpxt-article-title { font-size: clamp(29px, 8vw, 37px); margin-bottom: 21px; }
    .bpxt-article-meta { margin-bottom: 19px; font-size: 11px; }
    .bpxt-perex { font-size: 18px; line-height: 1.53; margin-bottom: 17px; }
    .bpxt-article-body { font-size: 16px; line-height: 1.75; }
    .bpxt-article-body h2 { font-size: 23px; }
    .bpxt-article-body h3 { font-size: 21px; }
    .bpxt-article-body h4 { font-size: 19px; }
    .bpxt-article-body .bpx-inline-figure.bpx-photo-left,.bpxt-article-body .bpx-inline-figure.bpx-photo-right { float: none!important; width: 100%!important; margin: 19px auto!important; }
    .bpxt-recent-list { display: block; }
    .bpxt-footer-inner { padding: 22px 17px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .bpxt-story-img { transition: none; }
}
