:root {
    --bg: #f4f6f9;
    --surface: #ffffff;
    --surface-2: #eef1f5;
    --text: #15171a;
    --muted: #6c727c;
    --border: #e2e5ea;
    --accent: #20c763;
    --accent-dark: #128c45;
    --nav: #101216;
    --nav-text: #ffffff;
    --shadow: 0 10px 30px rgba(18, 21, 27, 0.08);
    --radius: 22px;
    --container: 1280px;
}

html.dark-mode {
    --bg: #0e1013;
    --surface: #171a1f;
    --surface-2: #20242a;
    --text: #f3f5f7;
    --muted: #a9b0bb;
    --border: #2b3038;
    --nav: #090a0c;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
img { display: block; max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; }
.container { width: min(calc(100% - 32px), var(--container)); margin-inline: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.screen-reader-text:focus { clip: auto; width: auto; height: auto; z-index: 100000; background: #fff; color: #111; padding: 10px 14px; top: 8px; left: 8px; }

.topbar { background: #090a0c; color: #aeb3bc; font-size: .82rem; }
.topbar-inner { min-height: 34px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.site-header { background: var(--surface); border-bottom: 1px solid var(--border); position: relative; z-index: 20; }
.branding-row { min-height: 96px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-branding { display: flex; align-items: center; gap: 16px; }
.custom-logo { max-height: 70px; width: auto; }
.site-title { font-weight: 900; font-size: clamp(2rem, 4vw, 2.75rem); letter-spacing: -2px; line-height: 1; }
.brand-bg { color: var(--text); }
.brand-puls { color: var(--accent); }
.site-description { margin: 0; color: var(--muted); font-size: .9rem; }
.header-actions { display: flex; gap: 8px; }
.icon-button { width: 44px; height: 44px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); border-radius: 12px; display: inline-grid; place-items: center; cursor: pointer; }
.menu-toggle { display: none; padding: 11px; gap: 4px; }
.menu-toggle span { display: block; height: 2px; width: 20px; background: currentColor; }

.main-navigation { background: var(--nav); color: var(--nav-text); }
.nav-inner { min-height: 54px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.primary-menu { margin: 0; padding: 0; list-style: none; display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.primary-menu li { position: relative; }
.primary-menu a { display: block; padding: 15px 12px; color: #fff; font-weight: 700; font-size: .92rem; }
.primary-menu a:hover, .primary-menu .current-menu-item > a { color: #fff; background: rgba(255,255,255,.08); }
.primary-menu .sub-menu { position: absolute; top: 100%; left: 0; min-width: 220px; background: var(--nav); list-style: none; padding: 8px; margin: 0; display: none; border-radius: 0 0 12px 12px; box-shadow: var(--shadow); }
.primary-menu li:hover > .sub-menu { display: block; }
.search-toggle { border: 0; background: transparent; color: #fff; font-weight: 700; cursor: pointer; padding: 12px 0 12px 16px; white-space: nowrap; }
.header-search { padding: 14px 0; border-top: 1px solid rgba(255,255,255,.08); background: #16191e; }
.search-form { display: flex; gap: 8px; width: 100%; }
.search-form label { flex: 1; }
.search-field { width: 100%; min-height: 46px; border: 1px solid var(--border); border-radius: 10px; padding: 0 14px; background: var(--surface); color: var(--text); }
.search-submit, .button { min-height: 46px; border: 0; border-radius: 10px; padding: 0 18px; font-weight: 800; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.search-submit, .button-primary { background: var(--accent); color: #fff; }
.search-submit:hover, .button-primary:hover { background: var(--accent-dark); color: #fff; }

.portal-intro { padding: 44px 0 28px; }
.intro-inner { display: flex; align-items: end; justify-content: space-between; gap: 32px; }
.eyebrow, .section-kicker { display: inline-block; text-transform: uppercase; letter-spacing: .1em; font-size: .76rem; font-weight: 900; color: var(--accent); }
.portal-intro h1 { max-width: 880px; margin: 8px 0 10px; font-size: clamp(2rem, 5vw, 4.25rem); line-height: 1.02; letter-spacing: -0.045em; }
.portal-intro p { max-width: 760px; margin: 0; color: var(--muted); font-size: 1.05rem; }

.hero-news { padding: 0 0 28px; }
.hero-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: repeat(2, minmax(180px, 1fr)); gap: 14px; min-height: 510px; }
.hero-card { position: relative; overflow: hidden; border-radius: var(--radius); min-height: 0; background: #252930; }
.hero-card-main { grid-row: 1 / 3; }
.hero-card-link, .hero-card img, .hero-card .image-placeholder, .hero-overlay { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-card img { object-fit: cover; transition: transform .4s ease; }
.hero-card:hover img { transform: scale(1.035); }
.hero-overlay { background: linear-gradient(180deg, transparent 25%, rgba(0,0,0,.82) 100%); }
.hero-content { position: absolute; left: 22px; right: 22px; bottom: 20px; color: #fff; z-index: 2; }
.hero-title { display: block; font-weight: 900; line-height: 1.18; font-size: 1.2rem; }
.hero-card-main .hero-title { font-size: clamp(1.6rem, 3vw, 2.65rem); }
.hero-meta { display: block; opacity: .78; font-size: .8rem; margin-top: 8px; }
.post-badge { display: inline-block; background: var(--accent); color: #fff; border-radius: 6px; padding: 4px 8px; font-size: .68rem; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 9px; }
.image-placeholder { display: grid; place-items: center; background: linear-gradient(135deg, #2c3138, #111318); color: rgba(255,255,255,.24); font-weight: 900; font-size: 1.4rem; }

.news-ticker { border-block: 1px solid var(--border); background: var(--surface); }
.ticker-inner { min-height: 52px; display: flex; align-items: center; gap: 16px; overflow: hidden; }
.ticker-inner > strong { color: #fff; background: var(--accent); padding: 5px 9px; border-radius: 6px; text-transform: uppercase; font-size: .72rem; letter-spacing: .06em; flex: 0 0 auto; }
.ticker-list { display: flex; gap: 26px; min-width: 0; overflow: hidden; white-space: nowrap; }
.ticker-list a { font-weight: 700; font-size: .9rem; }

.content-section { padding: 54px 0; }
.category-strip:nth-of-type(even) { background: var(--surface); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.section-heading h2 { margin: 2px 0 0; font-size: clamp(1.55rem, 3vw, 2.15rem); letter-spacing: -.03em; line-height: 1.1; }
.section-link { font-weight: 800; color: var(--muted); white-space: nowrap; }
.post-grid { display: grid; gap: 20px; }
.post-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.post-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.post-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.post-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; height: 100%; }
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.post-card-image { display: block; position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-2); }
.post-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.post-card:hover .post-card-image img { transform: scale(1.035); }
.card-badge { position: absolute; left: 12px; bottom: 8px; margin: 0; }
.post-card-body { padding: 17px; }
.post-card-meta { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .76rem; margin-bottom: 8px; }
.post-card-title { margin: 0; font-size: 1.15rem; line-height: 1.28; letter-spacing: -.015em; }
.post-card-body p { margin: 10px 0 0; color: var(--muted); font-size: .92rem; }

.site-main:not(.home-main) { padding: 46px 0 64px; }
.page-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 38px; align-items: start; }
.content-column { min-width: 0; }
.archive-header { margin-bottom: 28px; }
.archive-header h1 { margin: 5px 0 8px; font-size: clamp(2rem, 4vw, 3.1rem); letter-spacing: -.04em; line-height: 1.08; }
.archive-description { color: var(--muted); }
.widget-area { display: grid; gap: 20px; position: sticky; top: 20px; }
.widget { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; overflow: hidden; }
.widget-title { margin: 0 0 14px; font-size: 1.15rem; }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { padding: 8px 0; border-bottom: 1px solid var(--border); }
.widget li:last-child { border-bottom: 0; }

.single-header { margin-bottom: 24px; }
.single-header h1 { margin: 6px 0 12px; font-size: clamp(2rem, 5vw, 3.9rem); line-height: 1.05; letter-spacing: -.045em; }
.single-meta { display: flex; flex-wrap: wrap; gap: 10px 18px; color: var(--muted); font-size: .88rem; }
.single-featured-image { margin: 0 0 28px; border-radius: var(--radius); overflow: hidden; background: var(--surface-2); }
.single-featured-image img { width: 100%; }
.entry-content { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(22px, 5vw, 48px); font-size: 1.05rem; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content > *:last-child { margin-bottom: 0; }
.entry-content h2, .entry-content h3, .entry-content h4 { line-height: 1.2; margin-top: 1.7em; }
.entry-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.entry-content blockquote { margin-inline: 0; border-left: 4px solid var(--accent); background: var(--surface-2); padding: 14px 20px; border-radius: 0 10px 10px 0; }
.entry-content iframe { max-width: 100%; }
.single-footer { margin-top: 18px; color: var(--muted); }
.tag-list a { display: inline-block; border: 1px solid var(--border); background: var(--surface); border-radius: 20px; padding: 4px 10px; margin: 3px; }
.post-navigation-custom { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 36px 0; }
.post-navigation-custom > div { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 15px; }
.post-navigation-custom span { display: block; color: var(--muted); font-size: .8rem; }
.related-posts { margin-top: 44px; }

.comments-area { margin-top: 44px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.comment-list { padding-left: 22px; }
.comment-body { padding: 18px 0; border-bottom: 1px solid var(--border); }
.comment-form input:not([type="submit"]), .comment-form textarea { width: 100%; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); color: var(--text); padding: 10px 12px; }
.comment-form .submit { background: var(--accent); border: 0; color: #fff; border-radius: 10px; padding: 11px 18px; font-weight: 800; }

.navigation.pagination { margin-top: 28px; }
.nav-links { display: flex; gap: 6px; flex-wrap: wrap; }
.page-numbers { min-width: 40px; min-height: 40px; padding: 0 10px; display: inline-grid; place-items: center; border: 1px solid var(--border); background: var(--surface); border-radius: 9px; }
.page-numbers.current { background: var(--accent); border-color: var(--accent); color: #fff; }

.no-results, .error-page { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(26px, 6vw, 60px); text-align: center; }
.no-results .search-form, .error-page .search-form { max-width: 680px; margin: 22px auto; }
.error-code { display: block; font-size: clamp(5rem, 15vw, 10rem); line-height: .85; font-weight: 950; color: var(--accent); letter-spacing: -.08em; }
.error-page h1 { font-size: clamp(2rem, 5vw, 3.5rem); margin: 22px 0 5px; }

.site-footer { background: #0b0d10; color: #d7dbe1; margin-top: 0; }
.footer-grid { padding: 52px 0; display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 32px; }
.footer-title .brand-bg { color: #fff; }
.footer-brand p { color: #969da8; max-width: 440px; }
.footer-widget-title { color: #fff; font-size: 1rem; margin-top: 0; }
.footer-widget ul { list-style: none; padding: 0; margin: 0; }
.footer-widget li { margin: 7px 0; }
.footer-bottom { border-top: 1px solid #242830; color: #8f96a1; font-size: .84rem; }
.footer-bottom-inner { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.footer-menu { display: flex; list-style: none; padding: 0; margin: 0; gap: 16px; }

@media (max-width: 1050px) {
    .hero-grid { grid-template-columns: 1.6fr 1fr; grid-template-rows: repeat(3, 180px); min-height: 0; }
    .hero-card-main { grid-row: 1 / 3; }
    .hero-card:nth-child(4), .hero-card:nth-child(5) { grid-row: 3; }
    .post-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .page-layout { grid-template-columns: minmax(0, 1fr); }
    .widget-area { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 800px) {
    .topbar-message { display: none; }
    .branding-row { min-height: 76px; }
    .site-description { display: none; }
    .menu-toggle { display: inline-grid; }
    .main-navigation .nav-inner { display: none; align-items: stretch; padding-block: 10px; }
    .main-navigation.is-open .nav-inner { display: flex; flex-direction: column; }
    .primary-menu { display: block; width: 100%; }
    .primary-menu a { padding: 11px 6px; }
    .primary-menu .sub-menu { position: static; display: block; box-shadow: none; padding-left: 18px; background: transparent; }
    .search-toggle { padding: 10px 6px; text-align: left; }
    .intro-inner { align-items: start; flex-direction: column; }
    .hero-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 320px repeat(2, 170px); }
    .hero-card-main { grid-column: 1 / -1; grid-row: 1; }
    .hero-card:nth-child(4), .hero-card:nth-child(5) { grid-row: auto; }
    .ticker-list { gap: 18px; }
    .post-navigation-custom { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .container { width: min(calc(100% - 22px), var(--container)); }
    .portal-intro { padding-top: 30px; }
    .hero-grid { display: flex; overflow-x: auto; gap: 10px; scroll-snap-type: x mandatory; }
    .hero-card { flex: 0 0 86%; min-height: 320px; scroll-snap-align: start; }
    .hero-card-small { flex-basis: 78%; }
    .hero-card-main .hero-title { font-size: 1.7rem; }
    .post-grid-4, .post-grid-3, .post-grid-2 { grid-template-columns: 1fr; }
    .section-heading { align-items: start; }
    .section-link { font-size: .84rem; }
    .widget-area, .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom-inner { align-items: start; flex-direction: column; padding: 18px 0; }
    .footer-bottom-inner p { margin: 0; }
    .footer-menu { flex-wrap: wrap; }
    .single-header h1 { font-size: 2.2rem; }
    .entry-content { font-size: 1rem; }
}


/* BGPuls Portal 1.1 — emerald visual refresh */
:root {
    --accent-soft: #7bf0a7;
    --accent-neon: #39ff88;
    --emerald-deep: #062f1d;
    --gradient-main: linear-gradient(135deg, #0faf58 0%, #33df7d 46%, #7df0b1 100%);
    --gradient-cool: linear-gradient(120deg, #0e8f52 0%, #1fcf82 52%, #36d5c5 100%);
    --gradient-glow: linear-gradient(135deg, rgba(32,199,99,.22), rgba(54,213,197,.10), rgba(125,240,177,.24));
    --green-shadow: 0 18px 55px rgba(14, 143, 82, .16);
}

body {
    background-image:
        radial-gradient(circle at 8% 8%, rgba(57,255,136,.07), transparent 24rem),
        radial-gradient(circle at 92% 34%, rgba(54,213,197,.08), transparent 28rem);
}

.bgpuls-has-background-art .site {
    background: rgba(244, 246, 249, .84);
    backdrop-filter: blur(4px);
}

html.dark-mode .bgpuls-has-background-art .site {
    background: rgba(14,16,19,.82);
}

.site-header {
    box-shadow: 0 8px 35px rgba(4, 34, 20, .07);
}

.branding-shell {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.branding-shell::after {
    content: "";
    position: absolute;
    width: 340px;
    height: 340px;
    right: -130px;
    top: -210px;
    z-index: -1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(57,255,136,.20), rgba(54,213,197,.05) 55%, transparent 70%);
    pointer-events: none;
}

.branding-shell.has-header-image {
    color: #fff;
}

.branding-shell.has-header-image .branding-row {
    min-height: 158px;
}

.branding-shell.has-header-image .brand-bg,
.branding-shell.has-header-image .site-description {
    color: #fff;
    text-shadow: 0 2px 20px rgba(0,0,0,.52);
}

.branding-shell.has-header-image .brand-puls,
.branding-shell.has-header-image .brand-star {
    color: #65ff9f;
}

.branding-shell.has-header-image .icon-button {
    color: #fff;
    border-color: rgba(255,255,255,.26);
    background: rgba(4,22,13,.46);
    backdrop-filter: blur(10px);
}

.site-title {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.brand-star {
    color: var(--accent);
    font-size: .46em;
    margin-right: 7px;
    align-self: flex-start;
    transform: rotate(-10deg);
    filter: drop-shadow(0 0 10px rgba(57,255,136,.35));
}

.brand-puls {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.icon-button {
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.icon-button:hover {
    transform: translateY(-2px) rotate(-2deg);
    border-color: rgba(32,199,99,.58);
    box-shadow: 0 10px 24px rgba(14,143,82,.14);
}

.main-navigation {
    background: linear-gradient(95deg, #07120d 0%, #0a2015 52%, #082f1d 100%);
    border-bottom: 1px solid rgba(57,255,136,.13);
}

.primary-menu a {
    border-radius: 12px;
    transition: background .2s ease, transform .2s ease;
}

.primary-menu a:hover,
.primary-menu .current-menu-item > a {
    background: linear-gradient(135deg, rgba(32,199,99,.24), rgba(54,213,197,.10));
    transform: translateY(-1px);
}

.portal-intro {
    position: relative;
    overflow: hidden;
}

.portal-intro::before {
    content: "";
    position: absolute;
    inset: 12px auto auto 52%;
    width: min(42vw, 560px);
    height: 180px;
    border-radius: 999px;
    background: linear-gradient(110deg, rgba(32,199,99,.15), rgba(54,213,197,.07), rgba(174,255,78,.11));
    filter: blur(28px);
    transform: rotate(-7deg);
    pointer-events: none;
}

.intro-copy {
    position: relative;
    z-index: 1;
}

.decorative-stars {
    display: flex;
    gap: 8px;
    align-items: center;
    width: max-content;
    margin-bottom: 9px;
    color: var(--accent);
    font-size: .92rem;
}

.decorative-stars span:nth-child(2) {
    color: #36d5c5;
    font-size: 1.18rem;
    transform: translateY(-4px);
}

.decorative-stars span:nth-child(3) {
    color: #92ee55;
    font-size: .72rem;
}

.eyebrow,
.section-kicker {
    background: var(--gradient-cool);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.section-kicker::before,
.eyebrow::before {
    content: "✦";
    display: inline-block;
    margin-right: 7px;
    color: var(--accent);
    -webkit-text-fill-color: var(--accent);
}

.button-primary,
.search-submit,
.comment-form .submit {
    background: var(--gradient-main);
    box-shadow: 0 10px 26px rgba(32,199,99,.20);
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.button-primary:hover,
.search-submit:hover,
.comment-form .submit:hover {
    background: var(--gradient-main);
    filter: saturate(1.12) brightness(.94);
    transform: translateY(-2px);
    box-shadow: 0 14px 34px rgba(32,199,99,.28);
}

.button-primary::after {
    content: "★";
    margin-left: 9px;
    font-size: .74em;
}

.hero-card,
.post-card,
.widget,
.entry-content,
.comments-area,
.no-results,
.error-page {
    box-shadow: 0 1px 0 rgba(255,255,255,.32), 0 16px 45px rgba(17,48,31,.055);
}

.hero-card::after {
    content: "✦";
    position: absolute;
    top: 13px;
    right: 14px;
    z-index: 3;
    color: rgba(255,255,255,.78);
    font-size: 1.05rem;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,.55));
    pointer-events: none;
}

.hero-overlay {
    background: linear-gradient(180deg, rgba(7,38,22,.04) 15%, rgba(3,18,10,.88) 100%);
}

.post-badge,
.ticker-inner > strong,
.page-numbers.current {
    background: var(--gradient-main);
    border-color: transparent;
    box-shadow: 0 7px 18px rgba(32,199,99,.18);
}

.post-badge::before {
    content: "★";
    margin-right: 5px;
    font-size: .78em;
}

.image-placeholder {
    background: linear-gradient(135deg, #0b301d, #121c17 52%, #052515);
}

.news-ticker {
    position: relative;
    overflow: hidden;
}

.news-ticker::after {
    content: "";
    position: absolute;
    right: -40px;
    top: -45px;
    width: 170px;
    height: 140px;
    background: radial-gradient(circle, rgba(57,255,136,.15), transparent 67%);
    pointer-events: none;
}

.category-strip:nth-of-type(even) {
    background:
        linear-gradient(120deg, rgba(32,199,99,.035), rgba(54,213,197,.018) 55%, transparent),
        var(--surface);
}

.section-heading h2 {
    position: relative;
}

.section-heading h2::after {
    content: "";
    display: block;
    width: 58px;
    height: 4px;
    margin-top: 9px;
    border-radius: 999px;
    background: var(--gradient-cool);
}

.post-card {
    position: relative;
}

.post-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), #36d5c5, #92ee55);
    opacity: 0;
    transition: opacity .2s ease;
    z-index: 4;
}

.post-card:hover::before {
    opacity: 1;
}

.post-card:hover {
    box-shadow: var(--green-shadow);
}

.single-featured-image {
    box-shadow: 0 22px 55px rgba(8,69,39,.12);
}

.entry-content blockquote {
    border-image: linear-gradient(#20c763, #36d5c5) 1;
    background: linear-gradient(135deg, rgba(32,199,99,.07), rgba(54,213,197,.035)), var(--surface-2);
}

.site-footer {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 10% 10%, rgba(57,255,136,.10), transparent 24rem),
        radial-gradient(circle at 90% 100%, rgba(54,213,197,.10), transparent 26rem),
        #06100b;
}

.site-footer::before {
    content: "★  ✦  ★";
    position: absolute;
    right: 7vw;
    top: 25px;
    color: rgba(101,255,159,.13);
    font-size: clamp(2.4rem, 6vw, 5.5rem);
    letter-spacing: .25em;
    transform: rotate(-7deg);
    pointer-events: none;
}

.footer-bottom {
    border-top-color: rgba(101,255,159,.13);
}

.copyright-line > span,
.copyright-line a {
    color: #65ff9f;
}

.copyright-line a {
    font-weight: 800;
}

@media (max-width: 800px) {
    .branding-shell.has-header-image .branding-row { min-height: 128px; }
    .portal-intro::before { left: 25%; width: 80vw; }
}

@media (max-width: 600px) {
    .decorative-stars { margin-bottom: 5px; }
    .branding-shell.has-header-image .branding-row { min-height: 112px; }
    .site-footer::before { right: -30px; top: 65px; }
}

/* BGPuls Portal 1.2 — dramatic / satirical / musical stage refresh */
:root {
    --accent: #2be06f;
    --accent-dark: #119448;
    --accent-soft: #78ffad;
    --accent-neon: #42ff8c;
    --wine: #7d174f;
    --wine-deep: #31091f;
    --violet: #7a4cff;
    --gold: #f2c14e;
    --hot-pink: #e8469b;
    --stage-black: #08090d;
    --stage-ink: #11131a;
    --gradient-main: linear-gradient(135deg, #0b9e4e 0%, #2be06f 48%, #a7ffca 100%);
    --gradient-cool: linear-gradient(115deg, #20d66b 0%, #8b4dff 48%, #e8469b 100%);
    --gradient-show: linear-gradient(120deg, #1bd968 0%, #7648ff 38%, #cc2f88 67%, #f2c14e 100%);
    --gradient-stage: linear-gradient(105deg, #07140d 0%, #261022 44%, #0e1c18 72%, #11131a 100%);
    --green-shadow: 0 22px 58px rgba(11, 80, 46, .20), 0 8px 30px rgba(103, 31, 102, .10);
    --shadow: 0 16px 42px rgba(7, 8, 13, .12);
}

body {
    background:
        radial-gradient(circle at 8% 6%, rgba(43,224,111,.10), transparent 23rem),
        radial-gradient(circle at 92% 18%, rgba(122,76,255,.09), transparent 26rem),
        radial-gradient(circle at 54% 78%, rgba(232,70,155,.055), transparent 30rem),
        var(--bg);
}

body::before,
body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
}

body::before {
    background: repeating-linear-gradient(90deg, transparent 0 78px, rgba(255,255,255,.018) 79px 80px);
    mask-image: linear-gradient(to bottom, #000, transparent 70%);
}

body::after {
    background: radial-gradient(ellipse at 50% -5%, rgba(242,193,78,.10), transparent 34%);
}

.topbar {
    background: #05060a;
    border-bottom: 1px dashed rgba(242,193,78,.22);
    color: #c8cbd2;
    letter-spacing: .02em;
}

.topbar-message {
    color: #d7ffdF;
}

.site-header {
    box-shadow: 0 12px 38px rgba(9,10,16,.12);
}

.branding-shell {
    background:
        radial-gradient(circle at 17% 0%, rgba(43,224,111,.10), transparent 22rem),
        radial-gradient(circle at 86% 15%, rgba(232,70,155,.10), transparent 23rem),
        var(--surface);
}

.branding-shell::before {
    content: "♪   ♫   ★";
    position: absolute;
    right: 6vw;
    top: 50%;
    transform: translateY(-50%) rotate(-5deg);
    color: rgba(122,76,255,.09);
    font-size: clamp(2.4rem, 7vw, 6.4rem);
    letter-spacing: .18em;
    font-family: Georgia, "Times New Roman", serif;
    pointer-events: none;
}

.branding-shell::after {
    background: radial-gradient(circle, rgba(242,193,78,.18), rgba(122,76,255,.08) 45%, transparent 70%);
}

.branding-shell.has-header-image .brand-puls,
.branding-shell.has-header-image .brand-star {
    color: #7dffae;
}

.branding-shell.has-header-image .icon-button {
    background: rgba(9,8,14,.56);
    border-color: rgba(242,193,78,.34);
}

.site-title {
    font-family: Georgia, "Times New Roman", serif;
    font-style: italic;
    letter-spacing: -2.5px;
}

.brand-star {
    color: var(--gold);
    font-size: .48em;
    transform: rotate(-12deg) translateY(-2px);
    filter: drop-shadow(0 0 11px rgba(242,193,78,.32));
}

.brand-bg { color: var(--text); }

.brand-puls {
    background: var(--gradient-show);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.icon-button {
    border-radius: 999px;
}

.icon-button:hover {
    transform: translateY(-2px) rotate(4deg);
    border-color: rgba(242,193,78,.58);
    box-shadow: 0 0 0 3px rgba(242,193,78,.08), 0 12px 30px rgba(96,31,98,.16);
}

.main-navigation {
    background: var(--gradient-stage);
    border-top: 1px solid rgba(242,193,78,.13);
    border-bottom: 1px solid rgba(43,224,111,.16);
    box-shadow: inset 0 1px rgba(255,255,255,.025);
}

.primary-menu a {
    position: relative;
    letter-spacing: .025em;
    text-transform: uppercase;
    font-size: .82rem;
}

.primary-menu a::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 8px;
    height: 2px;
    transform: scaleX(0);
    transform-origin: left;
    background: var(--gradient-show);
    transition: transform .2s ease;
}

.primary-menu a:hover::after,
.primary-menu .current-menu-item > a::after {
    transform: scaleX(1);
}

.primary-menu a:hover,
.primary-menu .current-menu-item > a {
    background: linear-gradient(135deg, rgba(43,224,111,.13), rgba(122,76,255,.14), rgba(232,70,155,.10));
}

.search-toggle span {
    color: var(--gold);
    margin-right: 5px;
}

.portal-intro {
    padding-top: 54px;
}

.portal-intro::before {
    inset: -25px auto auto 45%;
    width: min(52vw, 700px);
    height: 250px;
    background:
        radial-gradient(ellipse at 10% 0%, rgba(242,193,78,.18), transparent 46%),
        linear-gradient(112deg, rgba(43,224,111,.12), rgba(122,76,255,.10), rgba(232,70,155,.10));
    filter: blur(24px);
}

.portal-intro::after {
    content: "ACT I";
    position: absolute;
    right: max(20px, calc((100vw - var(--container)) / 2));
    top: 28px;
    color: rgba(125,23,79,.08);
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 900;
    font-size: clamp(4rem, 12vw, 10rem);
    line-height: 1;
    letter-spacing: -.06em;
    pointer-events: none;
}

.decorative-stars {
    gap: 10px;
    font-family: Georgia, "Times New Roman", serif;
}

.decorative-stars span:nth-child(1) { color: var(--gold); font-size: 1.18rem; transform: rotate(-10deg); }
.decorative-stars span:nth-child(2) { color: var(--accent-neon); font-size: .78rem; transform: translateY(-3px); }
.decorative-stars span:nth-child(3) { color: var(--hot-pink); font-size: 1.03rem; transform: rotate(9deg); }
.decorative-stars span:nth-child(4) { color: var(--violet); font-size: .78rem; }

.eyebrow,
.section-kicker {
    font-family: Georgia, "Times New Roman", serif;
    font-style: italic;
    letter-spacing: .12em;
    background: var(--gradient-show);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.section-kicker::before,
.eyebrow::before {
    content: "♫";
    color: var(--gold);
    -webkit-text-fill-color: var(--gold);
}

.portal-intro h1,
.section-heading h2,
.single-header h1,
.archive-header h1,
.error-page h1 {
    font-family: Georgia, "Times New Roman", serif;
}

.portal-intro h1 {
    font-style: italic;
    font-weight: 900;
    letter-spacing: -.05em;
    max-width: 930px;
    text-wrap: balance;
}

.portal-intro p {
    font-size: 1.08rem;
    max-width: 780px;
}

.button,
.search-submit,
.comment-form .submit {
    border-radius: 999px;
}

.button-primary,
.search-submit,
.comment-form .submit {
    background: var(--gradient-show);
    color: #fff;
    box-shadow: 0 12px 30px rgba(93,40,117,.22);
    position: relative;
    overflow: hidden;
}

.button-primary::before {
    content: "";
    position: absolute;
    inset: -60% auto -60% -30%;
    width: 28px;
    background: rgba(255,255,255,.38);
    transform: rotate(22deg);
    transition: left .38s ease;
}

.button-primary:hover::before { left: 120%; }
.button-primary::after { content: "♪"; color: #fff4c7; }

.hero-grid {
    perspective: 1200px;
}

.hero-card {
    border: 1px solid rgba(242,193,78,.16);
    box-shadow: 0 20px 55px rgba(8,9,13,.16);
}

.hero-card:nth-child(2) { transform: rotate(.35deg); }
.hero-card:nth-child(3) { transform: rotate(-.3deg); }
.hero-card:nth-child(4) { transform: rotate(-.25deg); }
.hero-card:nth-child(5) { transform: rotate(.3deg); }

.hero-card:hover {
    transform: translateY(-3px) rotate(0deg);
}

.hero-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
        radial-gradient(ellipse at 15% -5%, rgba(43,224,111,.25), transparent 38%),
        radial-gradient(ellipse at 86% 0%, rgba(232,70,155,.20), transparent 38%);
    mix-blend-mode: screen;
    opacity: .55;
    pointer-events: none;
}

.hero-card::after {
    content: "♫";
    color: rgba(255,244,199,.86);
    font-size: 1.25rem;
}

.hero-overlay {
    background: linear-gradient(180deg, rgba(8,7,12,.02) 16%, rgba(14,7,14,.90) 100%);
}

.hero-title {
    font-family: Georgia, "Times New Roman", serif;
    text-shadow: 0 2px 16px rgba(0,0,0,.55);
}

.post-badge,
.ticker-inner > strong,
.page-numbers.current {
    background: var(--gradient-show);
    box-shadow: 0 7px 20px rgba(86,34,105,.20);
}

.post-badge {
    border-radius: 4px 11px 4px 11px;
}

.post-badge::before { content: "♪"; color: #fff3bf; }

.news-ticker {
    border-block: 1px dashed rgba(125,23,79,.20);
    background: linear-gradient(90deg, var(--surface), rgba(122,76,255,.025), rgba(43,224,111,.025), var(--surface));
}

.ticker-inner > strong {
    transform: rotate(-1.5deg);
    border-radius: 4px;
    font-family: Georgia, "Times New Roman", serif;
    font-style: italic;
}

.news-ticker::before {
    content: "♪";
    position: absolute;
    left: 2.5%;
    top: -18px;
    font-size: 4rem;
    color: rgba(122,76,255,.055);
    transform: rotate(-14deg);
}

.news-ticker::after {
    background: radial-gradient(circle, rgba(242,193,78,.14), transparent 67%);
}

.category-strip:nth-of-type(even) {
    background:
        linear-gradient(116deg, rgba(43,224,111,.035), rgba(122,76,255,.022) 48%, rgba(232,70,155,.025)),
        var(--surface);
}

.content-section {
    position: relative;
}

.category-strip::before {
    content: "♪";
    position: absolute;
    right: 3vw;
    top: 25px;
    color: rgba(125,23,79,.045);
    font-size: clamp(3rem, 8vw, 7rem);
    transform: rotate(12deg);
    pointer-events: none;
}

.section-heading h2::after {
    width: 78px;
    height: 5px;
    border-radius: 0;
    transform: skewX(-20deg);
    background: var(--gradient-show);
}

.post-card {
    border-color: rgba(72,64,88,.14);
    border-radius: 18px 18px 26px 12px;
    box-shadow: 0 14px 38px rgba(11,13,19,.07);
}

.post-card::before {
    height: 4px;
    background: var(--gradient-show);
}

.post-card::after {
    content: "♫";
    position: absolute;
    right: 12px;
    bottom: 8px;
    color: rgba(122,76,255,.08);
    font-size: 2.2rem;
    transform: rotate(-8deg);
    pointer-events: none;
}

.post-card:nth-child(4n+2) { border-radius: 12px 24px 16px 22px; }
.post-card:nth-child(4n+3) { border-radius: 24px 12px 22px 16px; }

.post-card:hover {
    transform: translateY(-5px) rotate(-.25deg);
    box-shadow: var(--green-shadow);
}

.post-card-title {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.19rem;
}

.post-card-meta span:first-child::before { content: "●"; color: var(--hot-pink); font-size: .58em; margin-right: 6px; }
.post-card-meta span:last-child::before { content: "♪"; color: var(--accent); margin-right: 5px; }

.widget,
.entry-content,
.comments-area,
.no-results,
.error-page {
    border-color: rgba(91,74,103,.14);
    box-shadow: 0 16px 45px rgba(11,13,19,.055);
}

.widget-title {
    font-family: Georgia, "Times New Roman", serif;
    font-style: italic;
}

.widget-title::before { content: "♪ "; color: var(--gold); }

.single-featured-image {
    border: 1px solid rgba(242,193,78,.18);
    box-shadow: 0 24px 62px rgba(55,18,54,.17);
}

.entry-content blockquote {
    border-left: 5px solid;
    border-image: var(--gradient-show) 1;
    background: linear-gradient(135deg, rgba(122,76,255,.06), rgba(232,70,155,.04), rgba(43,224,111,.045)), var(--surface-2);
    font-family: Georgia, "Times New Roman", serif;
    font-style: italic;
}

.error-code {
    background: var(--gradient-show);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-family: Georgia, "Times New Roman", serif;
}

.site-footer {
    background:
        radial-gradient(circle at 9% 0%, rgba(43,224,111,.12), transparent 24rem),
        radial-gradient(circle at 82% 18%, rgba(122,76,255,.13), transparent 28rem),
        radial-gradient(circle at 56% 100%, rgba(232,70,155,.09), transparent 25rem),
        #07080c;
}

.site-footer::before {
    content: "♫   ★   ♪   ✦";
    color: rgba(242,193,78,.10);
    letter-spacing: .18em;
}

.site-footer::after {
    content: "CURTAIN CALL";
    position: absolute;
    left: 4vw;
    bottom: 76px;
    color: rgba(122,76,255,.045);
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 900;
    font-size: clamp(2.8rem, 8vw, 8rem);
    letter-spacing: -.05em;
    pointer-events: none;
}

.footer-title .brand-star,
.copyright-line > span,
.copyright-line a {
    color: #83ffb5;
}

.footer-bottom {
    border-top: 1px dashed rgba(242,193,78,.18);
}

.copyright-line::before {
    content: "★";
    color: var(--gold);
    margin-right: 7px;
}

@keyframes bgpuls-stage-glow {
    0%, 100% { filter: drop-shadow(0 0 0 rgba(242,193,78,0)); }
    50% { filter: drop-shadow(0 0 8px rgba(242,193,78,.22)); }
}

.decorative-stars span,
.brand-star {
    animation: bgpuls-stage-glow 3.4s ease-in-out infinite;
}

.decorative-stars span:nth-child(2) { animation-delay: .55s; }
.decorative-stars span:nth-child(3) { animation-delay: 1.1s; }
.decorative-stars span:nth-child(4) { animation-delay: 1.65s; }

@media (prefers-reduced-motion: reduce) {
    .decorative-stars span,
    .brand-star { animation: none; }
    .button-primary::before { display: none; }
}

@media (max-width: 800px) {
    .portal-intro::after { font-size: 5.6rem; top: 38px; right: 10px; }
    .branding-shell::before { right: -40px; opacity: .7; }
    .hero-card:nth-child(n) { transform: none; }
}

@media (max-width: 600px) {
    .portal-intro { padding-top: 36px; }
    .portal-intro::after { font-size: 4.2rem; top: 62px; opacity: .7; }
    .category-strip::before { display: none; }
    .site-footer::after { font-size: 3.4rem; bottom: 115px; }
}
