/*
Theme Name: Blurple
Theme URI: https://thestudyjournal.com/
Author: Paul
Description: A loud, friendly magazine theme in blurple: a big featured-article panel with a sparkly sky, a scrolling band of your topics, alternating spotlight cards, a latest-articles grid with a widget sidebar and a giant closing band. Light and dark modes with a visitor toggle, a floating rounded menu bar and a self-hosted Unbounded headline font.
Version: 2.1.1
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: blurple
Tags: blog, news, two-columns, right-sidebar, custom-logo, custom-menu, custom-colors, featured-images, footer-widgets, sticky-post, theme-options, threaded-comments, translation-ready, block-styles, wide-blocks
*/

/* ==========================================================================
   Fonts (self-hosted, SIL Open Font License: assets/fonts/OFL-Unbounded.txt)
   ========================================================================== */
@font-face {
	font-family: "Unbounded";
	src: url("assets/fonts/unbounded.woff2") format("woff2");
	font-weight: 600 900;
	font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ==========================================================================
   Tokens: light (default) and dark
   ========================================================================== */
:root {
	--bp-accent: #5865f2;          /* overridden from the Customizer */
	--bp-pop: #57f287;             /* overridden from the Customizer */
	--bp-on-pop: #0b0d3a;
	--bp-yellow: #fee75c;
	--bp-fuchsia: #eb459e;
	--bp-red: #ed4245;

	--bp-bg: #f4f5ff;
	--bp-ink: #12154a;
	--bp-text: #2a2d55;
	--bp-muted: #4b4f7c;
	--bp-line: #dfe2fa;
	--bp-card: #ffffff;
	--bp-card-hover: #ffffff;
	--bp-soft: #e8eaff;
	--bp-link: color-mix(in srgb, var(--bp-accent) 75%, #000);
	--bp-glow: 0 18px 40px -22px rgba(21, 24, 107, .35);
	--bp-header: rgba(255, 255, 255, .82);
	--bp-input: #ffffff;

	--bp-footer-bg: #23272a;
	--bp-footer-text: #c9cdfb;

	--bp-panel: linear-gradient(140deg, color-mix(in srgb, var(--bp-accent) 88%, #fff) 0%, var(--bp-accent) 45%, color-mix(in srgb, var(--bp-accent) 55%, #0b0d3a) 100%);

	--bp-font-display: "Unbounded", "Arial Black", system-ui, sans-serif;
	--bp-font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Helvetica, Roboto, Ubuntu, "Noto Sans", Arial, sans-serif;

	--bp-r-sm: 14px;
	--bp-r: 28px;
	--bp-r-lg: 40px;
	--bp-pill: 999px;

	--bp-container: 1320px;
	--bp-gutter: 24px;

	color-scheme: light;
}

/* Visitors who haven't chosen, when the site follows their device */
@media (prefers-color-scheme: dark) {
	:root[data-theme="auto"] { color-scheme: dark; }
}

:root[data-theme="dark"] {
	--bp-bg: #1a1b1e;
	--bp-ink: #ffffff;
	--bp-text: #dbdee1;
	--bp-muted: #b5bac1;
	--bp-line: rgba(255, 255, 255, .09);
	--bp-card: #2b2d31;
	--bp-card-hover: #313338;
	--bp-soft: #313338;
	--bp-link: #a5acff;
	--bp-glow: 0 18px 50px -20px rgba(0, 0, 0, .65);
	--bp-header: rgba(30, 31, 34, .82);
	--bp-input: #1e1f22;
	--bp-footer-bg: #111214;
	--bp-footer-text: #b5bac1;
	color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
	:root[data-theme="auto"] {
		--bp-bg: #1a1b1e;
		--bp-ink: #ffffff;
		--bp-text: #dbdee1;
		--bp-muted: #b5bac1;
		--bp-line: rgba(255, 255, 255, .09);
		--bp-card: #2b2d31;
		--bp-card-hover: #313338;
		--bp-soft: #313338;
		--bp-link: #a5acff;
		--bp-glow: 0 18px 50px -20px rgba(0, 0, 0, .65);
		--bp-header: rgba(30, 31, 34, .82);
		--bp-input: #1e1f22;
		--bp-footer-bg: #111214;
		--bp-footer-text: #b5bac1;
	}
}

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: var(--bp-font-body);
	font-size: 18px;
	line-height: 1.65;
	color: var(--bp-text);
	background:
		radial-gradient(1100px 620px at 85% -8%, color-mix(in srgb, var(--bp-accent) 26%, transparent), transparent 70%),
		radial-gradient(900px 560px at -10% 40%, color-mix(in srgb, var(--bp-accent) 12%, transparent), transparent 70%),
		var(--bp-bg);
	background-repeat: no-repeat;
	background-color: var(--bp-bg);
	-webkit-font-smoothing: antialiased;
	overflow-x: clip;
	transition: background-color .25s ease, color .25s ease;
}

img, video, iframe { max-width: 100%; height: auto; }

a { color: var(--bp-link); text-decoration: none; transition: color .2s ease; }
a:hover, a:focus { text-decoration: underline; text-underline-offset: .15em; }

h1, h2, h3, h4, h5, h6 {
	font-family: var(--bp-font-display);
	font-weight: 800;
	line-height: 1.15;
	margin: 0 0 .6em;
	color: var(--bp-ink);
	letter-spacing: -0.01em;
}
h1 { font-size: clamp(1.9rem, 1rem + 3vw, 3.2rem); }
h2 { font-size: clamp(1.45rem, 1rem + 1.6vw, 2.2rem); }
h3 { font-size: clamp(1.15rem, 1rem + .6vw, 1.5rem); }
h4 { font-size: 1.15rem; }
h5, h6 { font-size: 1rem; }

p, ul, ol, dl, table, blockquote, pre, figure { margin: 0 0 1.4em; }

blockquote {
	padding: 1.25rem 1.5rem;
	border-left: 6px solid var(--bp-pop);
	background: var(--bp-soft);
	border-radius: 20px;
	font-size: 1.05em;
	margin-left: 0;
	margin-right: 0;
}
blockquote > :last-child { margin-bottom: 0; }

code, kbd, pre { font-family: Consolas, "Courier New", monospace; font-size: .9em; }
code { background: var(--bp-soft); padding: .15em .4em; border-radius: 6px; }
pre { background: #111214; color: #dbdee1; padding: 1.1rem 1.3rem; border-radius: 18px; overflow-x: auto; }
pre code { background: none; padding: 0; color: inherit; }

table { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--bp-line); border-radius: 20px; overflow: hidden; font-size: .95rem; }
th { background: var(--bp-accent); color: #fff; font-weight: 700; text-align: left; padding: .8rem 1rem; }
td { padding: .75rem 1rem; border-top: 1px solid var(--bp-line); }
tbody tr:nth-child(even) td { background: var(--bp-soft); }

hr { border: 0; height: 1px; background: var(--bp-line); margin: 2.5em 0; }

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; margin: -1px; overflow: hidden; padding: 0;
	position: absolute !important; width: 1px; word-wrap: normal !important;
}
.screen-reader-text:focus {
	background: var(--bp-card); clip: auto !important; clip-path: none; color: var(--bp-ink);
	display: block; font-size: 1rem; height: auto; left: 8px; top: 8px; padding: 12px 20px;
	width: auto; z-index: 100000; border-radius: var(--bp-r-sm); box-shadow: var(--bp-glow);
}

.bp-container { width: 100%; max-width: var(--bp-container); margin: 0 auto; padding: 0 var(--bp-gutter); }
.bp-container--narrow { max-width: 860px; }

/* WordPress core classes */
.alignleft { float: left; margin: .3em 1.5em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.5em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignfull { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); max-width: 100vw; width: 100vw; }
.wp-caption, .wp-block-image figcaption { font-size: .85rem; color: var(--bp-muted); }
.wp-caption-text { text-align: center; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.bypostauthor > .comment-body .comment-author .fn::after { content: " ★"; color: var(--bp-accent); }

/* ==========================================================================
   Buttons
   ========================================================================== */
.bp-btn,
.wp-block-button__link,
button, input[type="submit"], input[type="button"], input[type="reset"] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .5em;
	padding: .9rem 1.6rem;
	font-family: var(--bp-font-display);
	font-size: .85rem;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: .01em;
	border: 0;
	border-radius: var(--bp-pill);
	background: var(--bp-pop);
	color: var(--bp-on-pop);
	cursor: pointer;
	text-decoration: none;
	transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, color .15s ease;
}
.bp-btn:hover, .bp-btn:focus,
.wp-block-button__link:hover,
button:hover, input[type="submit"]:hover {
	text-decoration: none;
	color: var(--bp-on-pop);
	background: color-mix(in srgb, var(--bp-pop) 85%, #fff);
	transform: translateY(-2px);
	box-shadow: 0 10px 28px -8px color-mix(in srgb, var(--bp-pop) 70%, transparent);
}
.bp-btn--white { background: #fff; color: #12154a; }
.bp-btn--white:hover, .bp-btn--white:focus { background: #fff; color: color-mix(in srgb, var(--bp-accent) 80%, #000); box-shadow: 0 10px 28px -10px rgba(0, 0, 0, .45); }
.bp-btn--night { background: #12154a; color: #fff; }
.bp-btn--night:hover, .bp-btn--night:focus { background: #1d2170; color: #fff; box-shadow: 0 10px 28px -10px rgba(0, 0, 0, .45); }
.bp-btn--accent { background: var(--bp-accent); color: #fff; }
.bp-btn--accent:hover, .bp-btn--accent:focus { background: color-mix(in srgb, var(--bp-accent) 85%, #000); color: #fff; box-shadow: 0 10px 28px -10px color-mix(in srgb, var(--bp-accent) 70%, transparent); }
.bp-btn--small { padding: .6rem 1.1rem; font-size: .75rem; }
.bp-btn svg { width: 1.2em; height: 1.2em; flex: none; }

.wp-block-button__link { background: var(--bp-accent); color: #fff; }
.is-style-outline .wp-block-button__link { background: transparent; color: var(--bp-accent); box-shadow: inset 0 0 0 2px currentColor; }

/* ==========================================================================
   Forms
   ========================================================================== */
input[type="text"], input[type="email"], input[type="url"], input[type="password"],
input[type="search"], input[type="number"], input[type="tel"], textarea, select {
	width: 100%;
	padding: .8rem 1.1rem;
	font: inherit;
	font-size: 1rem;
	color: var(--bp-ink);
	background: var(--bp-input);
	border: 2px solid var(--bp-line);
	border-radius: var(--bp-r-sm);
	transition: border-color .2s ease;
}
input:focus, textarea:focus, select:focus { outline: 0; border-color: var(--bp-accent); }
label { font-weight: 600; font-size: .9rem; }

.search-form { display: flex; gap: 8px; }
.search-form label { flex: 1; }
.search-form .search-submit { padding: .8rem 1.3rem; }

/* ==========================================================================
   Header: a floating rounded bar
   ========================================================================== */
.bp-header {
	position: relative;
	z-index: 50;
	padding-top: 1rem;
}
.bp-header--sticky { position: sticky; top: 0; }
.admin-bar .bp-header--sticky { top: 32px; }
@media (max-width: 782px) { .admin-bar .bp-header--sticky { top: 0; } }

.bp-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 68px;
	padding: .6rem .8rem .6rem 1.4rem;
	background: var(--bp-header);
	-webkit-backdrop-filter: blur(14px) saturate(1.4);
	backdrop-filter: blur(14px) saturate(1.4);
	border: 1px solid var(--bp-line);
	border-radius: 22px;
	box-shadow: var(--bp-glow);
}
.bp-brand { display: flex; align-items: center; gap: 10px; color: var(--bp-ink); font-family: var(--bp-font-display); font-weight: 800; font-size: 1.15rem; text-transform: uppercase; letter-spacing: -.01em; flex: none; line-height: 1.1; }
.bp-brand:hover, .bp-brand:focus { color: var(--bp-ink); text-decoration: none; }
.bp-brand .custom-logo { max-height: 54px; width: auto; display: block; }
@media (max-width: 575px) { .bp-brand .custom-logo { max-height: 40px; } }
.bp-brand__mark { width: 34px; height: 34px; flex: none; color: var(--bp-accent); }
.bp-brand__mark img { display: block; width: 100%; height: 100%; border-radius: 9px; }
.bp-footer .bp-brand__mark { width: 30px; height: 30px; }

.bp-nav { flex: 1; display: flex; justify-content: center; }
.bp-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.bp-nav li { position: relative; }
.bp-nav a {
	display: block;
	padding: .55rem .9rem;
	color: var(--bp-ink);
	font-family: var(--bp-font-display);
	font-weight: 700;
	font-size: .75rem;
	text-transform: uppercase;
	letter-spacing: .02em;
	border-radius: 12px;
}
.bp-nav a:hover, .bp-nav a:focus { background: var(--bp-soft); text-decoration: none; }
.bp-nav .current-menu-item > a,
.bp-nav .current_page_item > a { background: var(--bp-pop); color: var(--bp-on-pop); }
.bp-nav .sub-menu, .bp-nav .children {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 220px;
	padding: 8px;
	background: var(--bp-card);
	border: 1px solid var(--bp-line);
	border-radius: 16px;
	box-shadow: var(--bp-glow);
	flex-direction: column;
	gap: 2px;
}
.bp-nav li:hover > .sub-menu, .bp-nav li:focus-within > .sub-menu,
.bp-nav li:hover > .children, .bp-nav li:focus-within > .children { display: flex; }
.bp-nav .sub-menu .sub-menu { top: 0; left: 100%; }

.bp-header__actions { display: flex; align-items: center; gap: 8px; flex: none; }

.bp-icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	background: var(--bp-soft);
	color: var(--bp-ink);
	border-radius: 14px;
}
.bp-icon-btn:hover, .bp-icon-btn:focus { background: var(--bp-soft); color: var(--bp-accent); box-shadow: none; transform: none; }
.bp-icon-btn svg { width: 22px; height: 22px; }
.bp-menu-toggle { display: none; }

/* Light/dark toggle: show the icon for the mode you'd switch TO */
.bp-mode-toggle .bp-icon-sun { display: none; }
:root[data-theme="dark"] .bp-mode-toggle .bp-icon-sun { display: block; }
:root[data-theme="dark"] .bp-mode-toggle .bp-icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
	:root[data-theme="auto"] .bp-mode-toggle .bp-icon-sun { display: block; }
	:root[data-theme="auto"] .bp-mode-toggle .bp-icon-moon { display: none; }
}

/* Mobile drawer */
.bp-drawer {
	position: fixed;
	inset: 0;
	z-index: 1000;
	visibility: hidden;
	pointer-events: none;
}
.bp-drawer__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .6); opacity: 0; transition: opacity .3s ease; }
.bp-drawer__panel {
	position: absolute;
	top: 0; right: 0; bottom: 0;
	width: min(340px, 88vw);
	background: var(--bp-card);
	color: var(--bp-text);
	border-radius: 24px 0 0 24px;
	padding: 24px;
	display: flex;
	flex-direction: column;
	transform: translateX(100%);
	transition: transform .3s ease;
	overflow-y: auto;
}
.bp-drawer.is-open { visibility: visible; pointer-events: auto; }
.bp-drawer.is-open .bp-drawer__backdrop { opacity: 1; }
.bp-drawer.is-open .bp-drawer__panel { transform: translateX(0); }
.bp-drawer__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 20px; border-bottom: 1px solid var(--bp-line); margin-bottom: 16px; }
.bp-drawer ul { list-style: none; margin: 0; padding: 0; }
.bp-drawer li a { display: block; padding: .7rem 1rem; color: var(--bp-ink); font-family: var(--bp-font-display); font-size: .85rem; font-weight: 700; text-transform: uppercase; border-radius: 12px; }
.bp-drawer li a:hover { background: var(--bp-soft); text-decoration: none; }
.bp-drawer .current-menu-item > a, .bp-drawer .current_page_item > a { background: var(--bp-pop); color: var(--bp-on-pop); }
.bp-drawer .sub-menu, .bp-drawer .children { padding-left: 14px; }
.bp-drawer__cta { margin-top: auto; padding-top: 24px; }
.bp-drawer__cta .bp-btn { width: 100%; }
body.bp-no-scroll { overflow: hidden; }

@media (max-width: 1024px) {
	.bp-nav, .bp-header__actions .bp-header__cta { display: none; }
	.bp-menu-toggle { display: inline-flex; }
}
@media (max-width: 575px) {
	.bp-header { padding-top: .75rem; }
	.bp-header .bp-container { padding: 0 .75rem; }
	.bp-header__inner { padding: .5rem .5rem .5rem 1rem; min-height: 60px; }
	.bp-brand { font-size: 1rem; }
}

/* ==========================================================================
   Sparkly panel (featured, page titles, closing band)
   ========================================================================== */
.bp-panel {
	position: relative;
	overflow: hidden;
	color: #fff;
	border-radius: var(--bp-r-lg);
	background-image:
		radial-gradient(2px 2px at 12% 22%, rgba(255, 255, 255, .9), transparent 60%),
		radial-gradient(2px 2px at 38% 78%, rgba(255, 255, 255, .7), transparent 60%),
		radial-gradient(3px 3px at 64% 14%, rgba(255, 255, 255, .8), transparent 60%),
		radial-gradient(2px 2px at 82% 62%, rgba(255, 255, 255, .7), transparent 60%),
		radial-gradient(2px 2px at 92% 28%, rgba(255, 255, 255, .9), transparent 60%),
		radial-gradient(2px 2px at 24% 52%, rgba(255, 255, 255, .5), transparent 60%),
		radial-gradient(600px 300px at 100% 100%, rgba(255, 255, 255, .14), transparent 70%),
		var(--bp-panel);
	box-shadow: 0 30px 80px -40px color-mix(in srgb, var(--bp-accent) 80%, #000);
}
.bp-panel h1, .bp-panel h2, .bp-panel h1 a, .bp-panel h2 a { color: #fff; }
.bp-panel a:not(.bp-btn) { color: #fff; }
.bp-sparkle { position: absolute; width: 34px; color: #fff; pointer-events: none; animation: bp-twinkle 3.2s ease-in-out infinite; }
.bp-sparkle--1 { left: 5%; top: 14%; }
.bp-sparkle--2 { right: 6%; bottom: 16%; width: 24px; color: var(--bp-yellow); animation-delay: 1.1s; }
@keyframes bp-twinkle { 0%, 100% { transform: scale(1) rotate(0); opacity: 1; } 50% { transform: scale(.6) rotate(20deg); opacity: .55; } }

/* Shared type */
.bp-h1 { font-size: clamp(1.9rem, 1rem + 3vw, 3.4rem); line-height: 1.05; text-transform: uppercase; margin-bottom: 1.1rem; overflow-wrap: anywhere; }
.bp-h2 { font-size: clamp(1.4rem, 1rem + 1.6vw, 2.3rem); line-height: 1.1; text-transform: uppercase; margin-bottom: .8rem; }
.bp-lead { font-size: 1.12rem; line-height: 1.6; color: var(--bp-muted); max-width: 40rem; }
.bp-meta { color: var(--bp-muted); font-size: .85rem; margin: 0; }
.bp-label {
	display: inline-block;
	font-family: var(--bp-font-display);
	font-size: .66rem;
	font-weight: 800;
	letter-spacing: .06em;
	text-transform: uppercase;
	background: var(--bp-pop);
	color: var(--bp-on-pop);
	border-radius: var(--bp-pill);
	padding: .32rem .75rem;
	margin: 0 0 .8rem;
	position: relative;
	z-index: 2;
}
a.bp-label:hover { color: var(--bp-on-pop); text-decoration: none; filter: brightness(1.08); }

.bp-section { margin: 4.5rem 0; }
.bp-section__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 1.75rem; }
.bp-section__head .bp-h2 { margin: 0; }

/* ==========================================================================
   Home 1: featured panel
   ========================================================================== */
.bp-home { padding-bottom: 1rem; }
.bp-hero {
	display: grid;
	grid-template-columns: 1.05fr .95fr;
	align-items: center;
	gap: 2rem;
	padding: clamp(1.75rem, 4.5vw, 4rem);
	margin-top: 1.75rem;
}
.bp-hero .bp-sparkle--1 { left: auto; right: 47%; top: 9%; width: 28px; }
.bp-hero--plain .bp-sparkle--1 { right: auto; left: 6%; top: 18%; }
.bp-hero--plain { grid-template-columns: 1fr; text-align: center; }
.bp-hero--plain .bp-hero__text { margin: 0 auto; max-width: 52rem; }
.bp-hero--plain .bp-lead { margin-left: auto; margin-right: auto; }
.bp-hero--plain .bp-hero__buttons { justify-content: center; }
.bp-hero .bp-h1 a { text-decoration: none; }
.bp-hero .bp-h1 a:hover { text-decoration: underline; text-decoration-thickness: 4px; text-underline-offset: .12em; }
.bp-hero .bp-lead { color: rgba(255, 255, 255, .92); margin-bottom: 1.75rem; }
.bp-hero__label {
	display: inline-block; font-family: var(--bp-font-display); font-size: .7rem; font-weight: 800; letter-spacing: .08em;
	text-transform: uppercase; color: #fff; background: rgba(255, 255, 255, .18); border-radius: var(--bp-pill);
	padding: .35rem .9rem; margin-bottom: 1.1rem;
}
a.bp-hero__label:hover { background: rgba(255, 255, 255, .28); text-decoration: none; }
.bp-hero__buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.bp-hero__pic { position: relative; transform: rotate(2.5deg); }
.bp-hero__pic::before {
	content: ""; position: absolute; inset: -14px 14px 14px -14px; border-radius: 32px;
	background: var(--bp-pop); transform: rotate(-5deg); z-index: 0;
}
.bp-hero__pic img {
	position: relative; z-index: 1; display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover;
	border-radius: var(--bp-r); border: 6px solid rgba(255, 255, 255, .95); box-shadow: 0 24px 50px -18px rgba(0, 0, 0, .55);
}
@media (max-width: 991px) {
	.bp-hero { grid-template-columns: 1fr; }
	.bp-hero__pic { order: -1; max-width: 32rem; margin: .5rem auto 0; width: calc(100% - 1.5rem); }
}
@media (max-width: 575px) { .bp-panel { border-radius: var(--bp-r); } }

/* ==========================================================================
   Home 2: topic ticker
   ========================================================================== */
.bp-ticker {
	overflow: hidden;
	margin: 2.5rem calc(50% - 50vw) 0;
	width: 100vw;
	background: var(--bp-soft);
	border-block: 1px solid var(--bp-line);
	padding: 1.1rem 0;
	transform: rotate(-1.2deg);
}
.bp-ticker__track { display: flex; width: max-content; animation: bp-scroll 40s linear infinite; }
.bp-ticker:hover .bp-ticker__track, .bp-ticker:focus-within .bp-ticker__track { animation-play-state: paused; }
.bp-ticker__list { display: flex; align-items: center; list-style: none; margin: 0; padding: 0; }
.bp-ticker__list li { display: flex; align-items: center; }
.bp-tick {
	font-family: var(--bp-font-display); font-size: clamp(1.3rem, 1rem + 1.6vw, 2.3rem); font-weight: 900; text-transform: uppercase;
	color: var(--bp-ink); text-decoration: none; white-space: nowrap; padding: 0 1.4rem;
}
a.bp-tick:hover { color: var(--bp-accent); text-decoration: none; }
.bp-spark {
	width: 1.1rem; height: 1.1rem; flex: none; background: var(--bp-pop);
	clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
}
@keyframes bp-scroll { to { transform: translateX(-50%); } }

/* ==========================================================================
   Home 3: spotlight cards
   ========================================================================== */
.bp-spot {
	position: relative;
	display: grid;
	grid-template-columns: 1.1fr .9fr;
	align-items: center;
	gap: clamp(1.5rem, 4vw, 3.5rem);
	background: var(--bp-card);
	border: 1px solid var(--bp-line);
	border-radius: var(--bp-r-lg);
	padding: clamp(1.25rem, 3vw, 2.25rem);
	margin-bottom: 1.75rem;
	box-shadow: var(--bp-glow);
	transition: transform .2s ease, background-color .2s ease;
}
.bp-spot:hover { transform: translateY(-4px); background: var(--bp-card-hover); }
.bp-spot--flip { grid-template-columns: .9fr 1.1fr; }
.bp-spot--flip .bp-spot__pic { order: 2; }
.bp-spot--nopic { grid-template-columns: 1fr; }
.bp-spot__pic img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--bp-r); }
.bp-spot__text { padding: .5rem clamp(0rem, 2vw, 1.5rem); }
.bp-spot .bp-h2 a { color: var(--bp-ink); text-decoration: none; }
.bp-spot .bp-h2 a::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.bp-spot:hover .bp-h2 a { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: .14em; }
@media (max-width: 767px) {
	.bp-spot, .bp-spot--flip { grid-template-columns: 1fr; border-radius: var(--bp-r); }
	.bp-spot--flip .bp-spot__pic { order: 0; }
	.bp-spot__pic img { border-radius: 20px; }
}

/* ==========================================================================
   Article cards
   ========================================================================== */
.bp-posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.bp-posts--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 1024px) { .bp-posts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .bp-posts, .bp-posts--two { grid-template-columns: minmax(0, 1fr); } }

.bp-card {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
	background: var(--bp-card);
	border: 1px solid var(--bp-line);
	border-radius: var(--bp-r);
	overflow: hidden;
	box-shadow: var(--bp-glow);
	transition: transform .2s ease, background-color .2s ease;
}
.bp-card:hover { transform: translateY(-4px); background: var(--bp-card-hover); }
.sticky .bp-card { border: 2px solid var(--bp-accent); }
.bp-card__thumb { padding: .65rem .65rem 0; }
.bp-card__thumb img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 20px; }
.bp-card__body { padding: 1.1rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; align-items: flex-start; }
.bp-card__title { font-size: 1.05rem; line-height: 1.3; margin: 0 0 .55rem; }
.bp-card__title a { color: var(--bp-ink); text-decoration: none; }
.bp-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.bp-card:hover .bp-card__title a { text-decoration: underline; text-underline-offset: .15em; }
.bp-card__excerpt { color: var(--bp-muted); font-size: .95rem; margin: 0 0 .8rem; }
.bp-card__excerpt p { margin: 0; }
.bp-card .bp-meta { margin-top: auto; }

/* ==========================================================================
   Layout: content + sidebar
   ========================================================================== */
.bp-main { padding: 3rem 0 4rem; }
.bp-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; }
.bp-layout--full { grid-template-columns: minmax(0, 1fr); }
.bp-layout--full > .bp-single-col { width: 100%; max-width: 860px; margin: 0 auto; }
@media (max-width: 1024px) { .bp-layout { grid-template-columns: minmax(0, 1fr); } }

.bp-sidebar { display: flex; flex-direction: column; gap: 20px; }
.bp-sidebar--sticky { position: sticky; top: 110px; }
@media (max-width: 1024px) { .bp-sidebar--sticky { position: static; } }
.bp-sidebar .widget {
	background: var(--bp-card);
	border: 1px solid var(--bp-line);
	border-radius: var(--bp-r);
	box-shadow: var(--bp-glow);
	padding: 1.5rem;
	font-size: .98rem;
}
.bp-sidebar .widget-title, .bp-sidebar .wp-block-heading, .bp-sidebar h2 {
	font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; margin: 0 0 1rem;
}
.bp-sidebar ul { list-style: none; padding: 0; margin: 0; }
.bp-sidebar li { padding: .45rem 0; border-bottom: 1px solid var(--bp-line); }
.bp-sidebar li:last-child { border-bottom: 0; }
.bp-sidebar li a { color: var(--bp-ink); font-weight: 600; }
.bp-sidebar li a:hover { color: var(--bp-accent); }
.bp-sidebar .wp-block-latest-posts__post-date, .bp-sidebar .post-date { display: block; font-size: .8rem; color: var(--bp-muted); }
.bp-sidebar .wp-block-tag-cloud a, .bp-sidebar .tagcloud a {
	display: inline-block; font-size: .8rem !important; padding: .25rem .7rem; margin: 0 .25rem .4rem 0;
	border-radius: var(--bp-pill); background: var(--bp-soft); color: var(--bp-ink); font-weight: 600;
}
.bp-sidebar .wp-block-tag-cloud a:hover, .bp-sidebar .tagcloud a:hover { background: var(--bp-pop); color: var(--bp-on-pop); text-decoration: none; }
.bp-sidebar .wp-block-search__inside-wrapper { gap: 8px; }
.bp-sidebar .wp-block-search__button { margin-left: 0; }

/* ==========================================================================
   Page / article title panel and body
   ========================================================================== */
.bp-page-hero { margin-top: 1.75rem; padding: clamp(2rem, 5vw, 3.75rem) clamp(1.5rem, 5vw, 4rem); text-align: center; }
.bp-page-hero .bp-h1 { margin-bottom: .6rem; }
.bp-page-hero .bp-lead { color: rgba(255, 255, 255, .92); margin: 0 auto; }
.bp-page-hero .bp-lead p { margin: 0; }
.bp-article__meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 14px; font-size: .95rem; color: rgba(255, 255, 255, .92); }
.bp-article__meta .avatar { border-radius: 50%; width: 30px; height: 30px; vertical-align: middle; margin-right: 6px; border: 2px solid rgba(255, 255, 255, .8); }
.bp-article__thumb { margin: 0 0 2rem; }
.bp-article__thumb img { width: 100%; display: block; border-radius: var(--bp-r); box-shadow: var(--bp-glow); }

.bp-article__body {
	background: var(--bp-card);
	border: 1px solid var(--bp-line);
	border-radius: var(--bp-r-lg);
	box-shadow: var(--bp-glow);
	padding: clamp(1.5rem, 4vw, 3rem);
}

.entry-content > * { max-width: 100%; }
.entry-content h2 { margin-top: 1.6em; }
.entry-content h3 { margin-top: 1.4em; }
.entry-content ul, .entry-content ol { padding-left: 1.4em; }
.entry-content li { margin-bottom: .4em; }
.entry-content li::marker { color: var(--bp-accent); }
.entry-content img { border-radius: 20px; }
.entry-content::after { content: ""; display: table; clear: both; }
.entry-content > :last-child { margin-bottom: 0; }

.bp-tags { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--bp-line); display: flex; flex-wrap: wrap; gap: 8px; }
.bp-tag {
	display: inline-block; padding: .3rem .85rem; border-radius: var(--bp-pill); background: var(--bp-soft);
	color: var(--bp-ink); font-size: .85rem; font-weight: 600;
}
.bp-tag:hover { background: var(--bp-pop); color: var(--bp-on-pop); text-decoration: none; }

.bp-post-nav .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 2rem; }
.bp-post-nav a {
	display: block; height: 100%; padding: 1.2rem 1.4rem; background: var(--bp-card); border: 1px solid var(--bp-line);
	border-radius: 22px; color: var(--bp-ink); font-weight: 700; box-shadow: var(--bp-glow);
	transition: background .2s ease, color .2s ease, transform .2s ease;
}
.bp-post-nav a:hover { background: var(--bp-accent); color: #fff; text-decoration: none; transform: translateY(-3px); }
.bp-post-nav small { display: block; font-family: var(--bp-font-display); font-size: .65rem; text-transform: uppercase; letter-spacing: .08em; opacity: .75; margin-bottom: 4px; }
.bp-post-nav .nav-next { text-align: right; grid-column: 2; }
@media (max-width: 600px) { .bp-post-nav .nav-links { grid-template-columns: 1fr; } .bp-post-nav .nav-next { grid-column: 1; } }

.page-links { margin-top: 24px; font-weight: 700; }

/* ==========================================================================
   Pagination
   ========================================================================== */
.navigation.pagination { margin-top: 3rem; }
.nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.page-numbers {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 46px; height: 46px; padding: 0 14px;
	border-radius: 14px; background: var(--bp-card); border: 1px solid var(--bp-line); color: var(--bp-ink); font-weight: 700;
}
.page-numbers:hover { background: var(--bp-soft); text-decoration: none; }
.page-numbers.current { background: var(--bp-pop); border-color: var(--bp-pop); color: var(--bp-on-pop); }
.page-numbers.dots { background: transparent; border: 0; }

/* ==========================================================================
   Comments
   ========================================================================== */
.bp-comments { margin-top: 2.5rem; }
.bp-comments__title { font-size: 1.3rem; text-transform: uppercase; }
.comment-list { list-style: none; padding: 0; margin: 0 0 2rem; }
.comment-list .children { list-style: none; padding-left: 28px; }
.comment-body {
	padding: 1.2rem 1.4rem; margin-bottom: 14px; background: var(--bp-card); border: 1px solid var(--bp-line);
	border-radius: 22px; font-size: 1rem;
}
.comment-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-bottom: 8px; font-size: .875rem; }
.comment-author { display: flex; align-items: center; gap: 10px; }
.comment-author .avatar { border-radius: 50%; }
.comment-author .fn { font-weight: 700; font-style: normal; color: var(--bp-ink); }
.comment-author .says { display: none; }
.comment-metadata a { color: var(--bp-muted); }
.reply a { font-size: .85rem; font-weight: 700; }
.comment-respond { background: var(--bp-card); border: 1px solid var(--bp-line); padding: clamp(1.25rem, 3vw, 2rem); border-radius: var(--bp-r); box-shadow: var(--bp-glow); }
.comment-reply-title { font-size: 1.2rem; text-transform: uppercase; }
.comment-form p { margin-bottom: 16px; }
.comment-form-cookies-consent { display: flex; gap: 8px; align-items: flex-start; }
.comment-form-cookies-consent label { font-weight: 400; }

/* ==========================================================================
   Closing band / 404 / empty
   ========================================================================== */
.bp-band { padding: clamp(2.5rem, 7vw, 5.5rem) clamp(1.5rem, 5vw, 4rem); margin: 4rem 0 1rem; text-align: center; }
.bp-band .bp-h1 { max-width: 52rem; margin-left: auto; margin-right: auto; }
.bp-band .bp-lead { color: rgba(255, 255, 255, .92); margin: 0 auto 1.75rem; }

.bp-empty { text-align: center; padding: 2.5rem 1rem; }
.bp-empty__code { font-family: var(--bp-font-display); font-weight: 900; font-size: clamp(5rem, 16vw, 10rem); line-height: 1; color: var(--bp-accent); margin-bottom: 16px; }
.bp-empty .search-form { max-width: 520px; margin: 2rem auto 0; }

/* ==========================================================================
   Footer: dark, rounded top
   ========================================================================== */
.bp-footer {
	background: var(--bp-footer-bg);
	color: var(--bp-footer-text);
	border-radius: var(--bp-r-lg) var(--bp-r-lg) 0 0;
	margin-top: 4rem;
	padding: 4rem 0 2.5rem;
	font-size: .98rem;
}
.bp-footer a { color: #fff; }
.bp-footer a:hover { color: var(--bp-pop); text-decoration: none; }
.bp-footer__top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
@media (max-width: 1024px) { .bp-footer__top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .bp-footer__top { grid-template-columns: 1fr; } }

.bp-footer__tagline { font-family: var(--bp-font-display); font-weight: 900; font-size: clamp(1.6rem, 3vw, 2.4rem); color: var(--bp-accent); text-transform: uppercase; line-height: 1.05; margin-bottom: 1.5rem; }
.bp-footer__social { display: flex; gap: 10px; list-style: none; margin: 0; padding: 0; }
.bp-footer__social a { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 12px; background: rgba(255, 255, 255, .08); }
.bp-footer__social a:hover { background: var(--bp-pop); color: var(--bp-on-pop); }
.bp-footer__social svg { width: 20px; height: 20px; }

.bp-footer .widget-title, .bp-footer .wp-block-heading, .bp-footer h2 { color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 1rem; }
.bp-footer ul { list-style: none; margin: 0; padding: 0; }
.bp-footer .widget li { margin-bottom: .5rem; }
.bp-footer .widget { margin-bottom: 1.5rem; }

.bp-footer__bottom {
	margin-top: 3rem; padding-top: 1.75rem; border-top: 1px solid rgba(255, 255, 255, .12);
	display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.bp-footer__bottom .bp-brand { color: #fff; font-size: 1rem; }
.bp-footer__copy { font-size: .85rem; margin: 0; }
.bp-footer__menu ul { display: flex; flex-wrap: wrap; gap: 18px; }
.bp-footer__menu a { font-size: .85rem; color: var(--bp-footer-text); }

/* ==========================================================================
   Block editor colour classes
   ========================================================================== */
.has-blurple-color { color: #5865f2 !important; }
.has-blurple-background-color { background-color: #5865f2 !important; }
.has-green-color { color: #57f287 !important; }
.has-green-background-color { background-color: #57f287 !important; }
.has-yellow-color { color: #fee75c !important; }
.has-yellow-background-color { background-color: #fee75c !important; }
.has-fuchsia-color { color: #eb459e !important; }
.has-fuchsia-background-color { background-color: #eb459e !important; }
.has-red-color { color: #ed4245 !important; }
.has-red-background-color { background-color: #ed4245 !important; }
.has-white-color { color: #ffffff !important; }
.has-white-background-color { background-color: #ffffff !important; }
.has-off-white-color { color: #f6f6f6 !important; }
.has-off-white-background-color { background-color: #f6f6f6 !important; }
.has-dark-color { color: #23272a !important; }
.has-dark-background-color { background-color: #23272a !important; }
.has-darker-color { color: #1e1f22 !important; }
.has-darker-background-color { background-color: #1e1f22 !important; }
.wp-block-group.has-background { padding: 2.5rem; border-radius: var(--bp-r); }
.wp-block-group.alignfull.has-background { border-radius: 0; }
.wp-block-separator { border: 0; height: 2px; background: var(--bp-line); }

:focus-visible { outline: 3px solid var(--bp-yellow); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
	.bp-ticker { overflow-x: auto; }
}
