/*
Theme Name: Bemused Blue Box
Description: Twenty Twenty-Five child theme recreating the look of the old Blue Box theme (by Bob, blogohblog.com, CC BY-SA 3.0) used on bemused.org/blog.
Template: twentytwentyfive
Version: 1.0.0
Requires at least: 6.7
License: GNU General Public License v2 or later
Text Domain: bemused-bluebox
*/

/* The page: a white 800px box on a dark textured background (front end only; the editor canvas stays white). */
body:not(.editor-styles-wrapper) {
	background: var(--wp--preset--color--accent-5) url(images/gbck.gif) repeat;
}

.wp-site-blocks,
.editor-styles-wrapper .is-root-container {
	box-sizing: border-box;
	max-width: 820px;
	margin: 20px auto;
	padding: 10px;
	background: var(--wp--preset--color--base);
}

.wp-site-blocks > * {
	margin-block-start: 0;
}

/* Header: blue bar, navigation bar, splash photo. */
.bb-top {
	min-height: 51px;
	padding: 0 10px;
	background: var(--wp--preset--color--accent-1) url(images/topbck.gif) repeat-x;
	color: #fff;
}

.bb-top .wp-block-site-title a,
.bb-top .wp-block-site-title a:hover {
	color: #fff;
	text-decoration: none;
}

.bb-top .wp-block-site-tagline {
	font-size: 11px;
}

/* The Navigation block puts .bb-nav on both the <nav> and its inner <ul>; the bar itself is the <nav>. */
nav.bb-nav {
	margin: 10px 0 5px;
	background: var(--wp--preset--color--accent-2);
}

.bb-nav.wp-block-navigation .wp-block-navigation-item .wp-block-navigation-item__content {
	display: block;
	padding: 0 10px;
	color: var(--wp--preset--color--accent-3);
	font-size: 12px;
	font-weight: 700;
	line-height: 30px;
	text-decoration: none;
	text-transform: uppercase;
}

.bb-nav.wp-block-navigation .wp-block-navigation-item .wp-block-navigation-item__content:hover {
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--accent-4);
}

/* Child pages open in a dropdown styled like the bar. */
.bb-nav.wp-block-navigation .has-child .wp-block-navigation__submenu-container {
	min-width: 100%;
	border: 0;
	background: var(--wp--preset--color--accent-2);
}

.bb-splash {
	height: 150px;
	background: url(images/splash3.jpg) center / cover no-repeat;
}

/* Main area: content column and sidebar, on Blue Box's column stripe. */
.bb-main {
	margin-top: 5px;
	background: url(images/mainbck.gif) repeat-y;
}

.bb-entry {
	padding: 5px;
	border-bottom: 1px dotted var(--wp--preset--color--accent-6);
	text-align: justify;
}

.bb-meta {
	font-size: 11px;
}

.bb-meta .wp-block-post-terms__prefix {
	font-weight: normal;
}

.bb-meta .wp-block-post-comments-link::before {
	content: "| ";
}

/* Sidebar */
.bb-sidebar {
	padding: 0 5px;
}

.bb-sidebar h2 {
	margin: 0 7px 3px;
	padding: 3px 0;
	border-bottom: 1px dashed var(--wp--preset--color--accent-6);
}

.bb-sidebar ul {
	margin: 0 0 10px;
	padding: 0;
	list-style: none;
}

/* Centre the 12px bullet on the first line: half of a 1.5 line-height, less half the bullet. */
.bb-sidebar li {
	padding: 0 0 2px 14px;
	line-height: 1.5;
	background: url(images/b.gif) no-repeat 0 calc(0.75em - 6px);
}

/* Footer: blue bar. */
.bb-footer {
	margin-top: 5px;
	padding: 0 10px;
	background: var(--wp--preset--color--accent-1);
	color: #fff;
	line-height: 30px;
}

.bb-footer a {
	color: #fff;
}

/* Below Blue Box's 800px, let the box fill the screen. */
@media (max-width: 840px) {
	.wp-site-blocks {
		margin: 0;
	}

	.bb-main {
		background: none;
	}
}
