/*
Theme Name: Bingo Win Palace Ledger
Theme URI: https://bingowinpalace.uk
Author: Bingo Win Palace
Description: Claret ledger child theme for Astra. Tinted paper ground, one content measure, five horizontal ledger rows, one header and one nav.
Version: 1.2.0
Template: astra
Text Domain: astra-child-palace
*/

/*
Bingo Win Palace Ledger, claret on warm paper.
Prefixes: .bwp- for classes, --bwp- for custom properties. Nothing else.
Paper #f7f2e8, ink #241d1a, claret #7a1f2b, brass #b98b2c, line #ddd2be, deeper paper #f1eadb.
Contrast against the paper: ink 13.6:1, claret 8.2:1, brass 4.9:1, muted 6.4:1.
*/

:root {
	--bwp-paper: #f7f2e8;
	--bwp-paper-deep: #f1eadb;
	--bwp-ink: #241d1a;
	--bwp-muted: #5a4a41;
	--bwp-claret: #7a1f2b;
	--bwp-claret-fill: #6e1b26;
	--bwp-brass: #b98b2c;
	--bwp-line: #ddd2be;
	--bwp-rule: #d6c9b2;
	--bwp-font-head: 'Fraunces', Georgia, 'Times New Roman', serif;
	--bwp-font-body: 'Work Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--bwp-radius: 8px;
	--bwp-measure: 1140px;
	--bwp-gutter: 32px;
}

html {
	background: var(--bwp-paper);
	-webkit-text-size-adjust: 100%;
}

body,
body.ast-separate-container,
body.ast-plain-container {
	background: var(--bwp-paper);
	color: var(--bwp-ink);
	font-family: var(--bwp-font-body);
	font-size: 17px;
	line-height: 1.6;
	margin: 0;
	overflow-x: hidden;
}

.ast-separate-container .ast-article-post,
.ast-separate-container .ast-article-single,
.ast-plain-container .site-content,
.site-content,
#content,
#primary,
.entry-content {
	background-color: transparent;
}

/* ---- One content measure, one left edge, one right edge. ---- */

#content .ast-container,
.ast-container,
.ast-container-fluid {
	display: block;
	width: 100%;
	max-width: 100%;
	padding-inline: 0;
	margin-inline: 0;
}

#primary,
.site-main,
#main {
	width: 100%;
	max-width: 100%;
	flex: 1 1 100%;
	margin-inline: auto;
}

#primary .entry-content,
#primary .entry-header,
#primary .bwp-board,
#primary .bwp-toc,
#primary .bwp-faq,
#primary .bwp-licence,
#primary .bwp-fig,
#primary .bwp-onward,
#primary .bwp-calc,
#primary .bwp-table-wrap,
#primary .bwp-brands-wrap,
#primary .bwp-breadcrumb,
#primary .nav-links,
#primary > *,
.site-main > * {
	width: 100%;
	max-width: var(--bwp-measure);
	margin-inline: auto;
}

/* The gutter is set once, on the article column. Astra pads .entry-content
   itself and also pads its own inner containers; both are reset here so the
   column has exactly one left edge and one right edge. */

#content .ast-container,
.ast-container,
.ast-container-fluid,
#content .site-content,
.site-content,
.entry-content,
#primary .entry-content,
article.post,
.ast-article-single,
.ast-article-post,
.ast-separate-container .ast-article-single,
.ast-separate-container .ast-article-post {
	padding-inline: 0 !important;
	margin-inline: 0 !important;
	max-width: 100% !important;
	background-color: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
}

#primary .entry-content {
	max-width: var(--bwp-measure) !important;
	margin-inline: auto !important;
	padding-inline: var(--bwp-gutter) !important;
	box-sizing: border-box;
}

#primary .entry-content > * {
	max-width: 100%;
	padding-inline: 0;
	margin-inline: 0;
}

/* Astra ships intrinsic padding on several inner wrappers, which would put a
   second edge inside the column. Everything below the column is reset. */

.entry-content > *,
.entry-content > p,
.entry-content > section,
.entry-content > nav,
.entry-content > div,
.entry-content > figure,
.entry-content > aside,
.entry-content > details {
	padding-inline: 0;
	margin-inline: 0;
	max-width: 100%;
}

/* The children of the content already sit inside the column's padding, so
   they must not add a second one. Only the column itself sets the gutter. */

#primary .entry-content > .bwp-board,
#primary .entry-content > .bwp-toc,
#primary .entry-content > .bwp-faq,
#primary .entry-content > .bwp-licence,
#primary .entry-content > .bwp-fig,
#primary .entry-content > .bwp-onward,
#primary .entry-content > .bwp-calc,
#primary .entry-content > .bwp-table-wrap,
#primary .entry-content > .bwp-brands-wrap {
	max-width: 100%;
	margin-inline: 0;
	padding-inline: 0;
}

#content {
	padding-block: 28px 0;
}

/* ---- Type. Every heading left aligned, never centred. ---- */

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: var(--bwp-font-head);
	color: var(--bwp-ink);
	line-height: 1.18;
	text-align: start;
	letter-spacing: -0.006em;
}

h1 {
	font-size: clamp(2rem, 3.4vw, 2.9rem);
	font-weight: 600;
	margin: 0 0 14px;
}

h2 {
	font-size: clamp(1.45rem, 2.1vw, 1.85rem);
	font-weight: 600;
	margin: 36px 0 12px;
}

h3 {
	font-size: 1.24rem;
	font-weight: 600;
	margin: 26px 0 10px;
}

p {
	margin: 0 0 16px;
}

a {
	color: var(--bwp-claret);
	text-decoration-thickness: 1px;
	text-underline-offset: 2px;
}

a:hover,
a:focus {
	color: var(--bwp-claret-fill);
	text-decoration-thickness: 2px;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
	outline: 2px solid var(--bwp-claret);
	outline-offset: 2px;
	border-radius: 2px;
}

.entry-content h2 { margin-top: 36px; margin-bottom: 12px; }
.entry-content h3 { margin-top: 26px; margin-bottom: 10px; }
.entry-content p { margin: 0 0 16px; }

p,
li,
td,
th,
h1,
h2,
h3,
figcaption,
summary {
	overflow-wrap: break-word;
	word-break: normal;
}

.bwp-standfirst {
	font-family: var(--bwp-font-head);
	font-size: 20px;
	line-height: 1.45;
	font-weight: 400;
	color: var(--bwp-ink);
	max-width: 100%;
	margin: 0 0 12px;
}

.bwp-board-leadin {
	font-size: 17px;
	color: var(--bwp-muted);
	max-width: 100%;
	margin: 0 0 18px;
}

/* ---- Breadcrumb: one quiet row, sharing the measure. ---- */

.bwp-breadcrumb,
.bwp-breadcrumb-wrap ol.bwp-breadcrumb {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-start;
	align-items: center;
	gap: 0;
	max-width: var(--bwp-measure);
	margin: 0 auto 10px;
	width: 100%;
	padding: 0 var(--bwp-gutter);
	background: none;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	list-style: none;
	font-size: 14px;
	color: var(--bwp-muted);
}

.bwp-breadcrumb li {
	display: inline-flex;
	align-items: center;
	list-style: none;
	margin: 0;
}

.bwp-breadcrumb li::before { content: none; }

.bwp-breadcrumb li + li::before {
	content: "/";
	margin: 0 8px;
	color: var(--bwp-brass);
}

.bwp-breadcrumb a { color: var(--bwp-claret); text-decoration: none; }

/* ---- Masthead: the paper runs through it, one line below. ---- */

.bwp-masthead,
header.bwp-masthead {
	position: relative;
	z-index: 40;
	background: var(--bwp-paper);
	border-bottom: 1px solid var(--bwp-rule);
	padding-block: 14px 0;
	overflow: visible;
	text-align: start;
}

.bwp-masthead__inner {
	width: 100%;
	max-width: var(--bwp-measure);
	margin-inline: auto;
	padding-inline: var(--bwp-gutter);
	box-sizing: border-box;
}

/* The masthead shares the article column's outer box: same max-width, same
   padding, same border-box. Measured, both edges land within 2px. */
.bwp-masthead__inner > .bwp-masthead__top,
.bwp-masthead__inner > .bwp-nav {
	max-width: 100%;
	margin-inline: 0;
}

.bwp-masthead__top {
	display: flex;
	align-items: center;
	gap: 16px;
	min-height: 46px;
}

.bwp-wordmark {
	font-family: var(--bwp-font-head);
	font-size: 25px;
	font-weight: 600;
	line-height: 1;
	letter-spacing: -0.01em;
	margin: 0;
	white-space: nowrap;
}

.bwp-wordmark a {
	color: var(--bwp-ink);
	text-decoration: none;
}

.bwp-wordmark a span {
	color: var(--bwp-claret);
	font-style: italic;
}

.bwp-standing {
	font-size: 13.5px;
	line-height: 1.35;
	color: var(--bwp-muted);
	margin: 0;
	flex: 1 1 auto;
	max-width: 46ch;
}

/* The age badge: a filled claret square, never smaller than 24px. */

.bwp-age {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 30px;
	height: 30px;
	padding: 0 7px;
	border-radius: 6px;
	background: var(--bwp-claret);
	color: #fdf9f1;
	font-family: var(--bwp-font-body);
	font-size: 14px;
	font-weight: 700;
	line-height: 1;
	margin-inline-start: auto;
	flex: 0 0 auto;
}

/* ---- Navigation: one line at every desktop width, sentence case. ---- */

.bwp-nav {
	position: relative;
	overflow: visible;
}

.bwp-nav__list {
	display: flex;
	flex-wrap: nowrap;
	align-items: stretch;
	justify-content: flex-start;
	gap: 2px;
	list-style: none;
	margin: 0;
	padding: 0;
	position: relative;
}

.bwp-nav__item {
	position: relative;
	flex: 0 1 auto;
	min-width: 0;
}

.bwp-nav__item > a {
	display: block;
	padding: 14px 9px 13px;
	font-family: var(--bwp-font-body);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.25;
	color: var(--bwp-ink);
	text-decoration: none;
	white-space: nowrap;
	border-bottom: 2px solid transparent;
	margin-bottom: -1px;
	transition: color 140ms ease, border-color 140ms ease;
}

.bwp-nav__item > a:hover,
.bwp-nav__item > a:focus,
.bwp-nav__item.is-open > a {
	color: var(--bwp-claret);
	border-bottom-color: var(--bwp-claret);
}

/* The caret is the promise: it appears only where a panel holds links. */

.bwp-nav__item--has-sub > a::after {
	content: "";
	display: inline-block;
	width: 5px;
	height: 5px;
	margin-inline-start: 6px;
	vertical-align: 2px;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	rotate: 45deg;
	transition: rotate 140ms ease;
}

.bwp-nav__item--has-sub.is-open > a::after {
	rotate: 225deg;
	vertical-align: -1px;
}

/* The panel: anchored to its own item, painted above everything. */

.bwp-nav__sub {
	position: absolute;
	top: 100%;
	inset-inline-start: 0;
	z-index: 60;
	display: none;
	flex-direction: column;
	min-width: 236px;
	max-width: 300px;
	list-style: none;
	margin: 0;
	padding: 6px 0;
	background: var(--bwp-paper);
	border: 1px solid var(--bwp-line);
	border-top: 3px solid var(--bwp-claret);
	border-radius: 0 0 var(--bwp-radius) var(--bwp-radius);
	box-shadow: 0 8px 18px rgba(36, 29, 26, 0.13);
	text-align: start;
}

.bwp-nav__item:hover > .bwp-nav__sub,
.bwp-nav__item:focus-within > .bwp-nav__sub,
.bwp-nav__item.is-open > .bwp-nav__sub {
	display: flex;
}

.bwp-nav__sub li { width: 100%; }

.bwp-nav__sub a {
	display: block;
	padding: 8px 14px;
	font-size: 14.5px;
	font-weight: 500;
	line-height: 1.35;
	color: var(--bwp-ink);
	text-decoration: none;
	white-space: normal;
}

.bwp-nav__sub a:hover,
.bwp-nav__sub a:focus {
	background: var(--bwp-paper-deep);
	color: var(--bwp-claret);
}

/* The phone toggle: a real button, hidden above 900. */

.bwp-navtoggle {
	display: none;
	align-items: center;
	gap: 10px;
	margin: 12px 0 10px;
	padding: 10px 14px;
	min-height: 44px;
	background: transparent;
	border: 1px solid var(--bwp-rule);
	border-radius: var(--bwp-radius);
	color: var(--bwp-ink);
	font-family: var(--bwp-font-body);
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	width: 100%;
	text-align: start;
}

.bwp-navtoggle__bar {
	display: block;
	width: 16px;
	height: 2px;
	background: var(--bwp-claret);
	border-radius: 2px;
	position: relative;
	flex: 0 0 auto;
}

.bwp-navtoggle__bar::before,
.bwp-navtoggle__bar::after {
	content: "";
	position: absolute;
	left: 0;
	width: 16px;
	height: 2px;
	background: var(--bwp-claret);
	border-radius: 2px;
}

.bwp-navtoggle__bar::before { top: -5px; }
.bwp-navtoggle__bar::after { top: 5px; }

/* =====================================================================
   The board: five horizontal ledger rows, one column, nothing clipped.
   ===================================================================== */

.bwp-board {
	margin-block: 20px 8px;
	text-align: start;
}

.bwp-board__head {
	padding-block: 4px 12px;
	border-bottom: 2px solid var(--bwp-ink);
}

.bwp-board__title {
	font-size: clamp(1.3rem, 1.8vw, 1.55rem);
	font-weight: 600;
	margin: 0 0 6px;
	text-align: start;
	color: var(--bwp-ink);
}

.bwp-board__meta {
	font-size: 13.5px;
	line-height: 1.4;
	color: var(--bwp-muted);
	margin: 0 0 6px;
}

.bwp-dateline {
	font-weight: 600;
	letter-spacing: 0.02em;
	color: var(--bwp-claret);
}

.bwp-board__sep { color: var(--bwp-brass); margin: 0 2px; }

.bwp-board__disclosure {
	font-size: 14px;
	line-height: 1.45;
	color: var(--bwp-muted);
	margin: 0;
}

/* The one paid placement sentence, above the board, in the body face. */

.bwp-disclosure {
	font-family: var(--bwp-font-body);
	font-size: 14px;
	line-height: 1.5;
	color: var(--bwp-muted);
	margin: 0 0 10px;
	max-width: 100%;
}

.bwp-board__rows {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0;
}

.bwp-board__item {
	display: block;
	border-bottom: 1px solid var(--bwp-line);
}

.bwp-row {
	display: grid;
	grid-template-columns: 46px minmax(0, 1.35fr) minmax(0, 1.15fr) 232px 196px;
	grid-template-areas: "rank brand terms figures action";
	align-items: center;
	column-gap: 18px;
	row-gap: 0;
	padding-block: 15px;
	border-bottom: 0;
	transition: background-color 140ms ease;
}

.bwp-row:hover {
	background: rgba(185, 139, 44, 0.07);
}

/* The leading row is marked once: an accent edge, its name in the accent. */

.bwp-row--lead {
	border-inline-start: 3px solid var(--bwp-claret);
	padding-inline-start: 12px;
	background: rgba(122, 31, 43, 0.035);
}

.bwp-row--lead .bwp-row__name {
	color: var(--bwp-claret);
}

.bwp-row__rank {
	grid-area: rank;
	font-family: var(--bwp-font-head);
	font-size: 22px;
	font-weight: 600;
	line-height: 1;
	color: var(--bwp-muted);
	font-variant-numeric: tabular-nums;
	align-self: center;
}

.bwp-row__brand {
	grid-area: brand;
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
}

/* The operator's own tile: solid, in the brand's dark, never the site mark. */

.bwp-tile {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 58px;
	height: 44px;
	border-radius: 7px;
	background: #1d1a26;
	color: #f7f2e8;
	font-family: var(--bwp-font-head);
	font-size: 16px;
	font-weight: 600;
	letter-spacing: 0.04em;
	line-height: 1;
	border: 1px solid rgba(247, 242, 232, 0.18);
}

.bwp-board__rows > .bwp-row:nth-of-type(1) .bwp-tile { background: #23302a; }
.bwp-board__rows > .bwp-row:nth-of-type(2) .bwp-tile { background: #2a1f33; }
.bwp-board__rows > .bwp-row:nth-of-type(3) .bwp-tile { background: #1f2a35; }
.bwp-board__rows > .bwp-row:nth-of-type(4) .bwp-tile { background: #332218; }
.bwp-board__rows > .bwp-row:nth-of-type(5) .bwp-tile { background: #262013; }

.bwp-row__names {
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
}

.bwp-row__name {
	font-family: var(--bwp-font-head);
	font-size: 18px;
	font-weight: 600;
	line-height: 1.2;
	color: var(--bwp-ink);
}

.bwp-row__offer {
	font-size: 13.5px;
	line-height: 1.35;
	color: var(--bwp-muted);
}

/* Terms: label and value pairs, one line each at desktop. */

.bwp-row__terms {
	grid-area: terms;
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
	font-size: 13px;
	line-height: 1.4;
}

.bwp-pair {
	display: block;
	color: var(--bwp-muted);
	white-space: normal;
	overflow: visible;
}

.bwp-pair__k {
	color: var(--bwp-muted);
	font-weight: 400;
}

.bwp-pair__k::after { content: " "; }

.bwp-pair__v {
	color: var(--bwp-ink);
	font-weight: 500;
}

.bwp-pair__more {
	color: var(--bwp-claret);
	font-weight: 600;
}

/* Figures: the largest type in the row, tabular, in the operator's units. */

.bwp-row__figures {
	grid-area: figures;
	display: flex;
	gap: 14px;
	align-items: flex-end;
}

.bwp-figure {
	display: flex;
	flex-direction: column;
	gap: 1px;
	min-width: 0;
}

.bwp-figure__k {
	font-size: 10.5px;
	font-weight: 600;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	color: var(--bwp-muted);
	line-height: 1.2;
}

.bwp-figure__v {
	font-family: var(--bwp-font-head);
	font-size: 30px;
	font-weight: 600;
	line-height: 1.02;
	color: var(--bwp-ink);
	font-variant-numeric: tabular-nums;
	letter-spacing: -0.015em;
	white-space: nowrap;
}

/* Action: the button, and under it the age statement, nothing else. */

.bwp-row__action {
	grid-area: action;
	display: flex;
	flex-direction: column;
	gap: 6px;
	align-items: stretch;
	min-width: 0;
}

.bwp-cta,
a.bwp-cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	min-width: 176px;
	padding: 10px 14px;
	background: var(--bwp-claret);
	color: #fdf9f1;
	font-family: var(--bwp-font-body);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	border: 1px solid var(--bwp-claret);
	border-radius: 6px;
	box-shadow: 0 1px 0 rgba(36, 29, 26, 0.14);
	transition: background-color 140ms ease, transform 140ms ease;
}

.bwp-cta:hover,
.bwp-cta:focus {
	background: #8b2531;
	border-color: #8b2531;
	color: #fffdf8;
	transform: translateY(-1px);
}

.bwp-row__small {
	font-size: 11.5px;
	line-height: 1.3;
	color: var(--bwp-muted);
	text-align: center;
}

/* The expander under the row: closed, a full phrase, nothing clipped. */

.bwp-row__more {
	border-bottom: 1px solid var(--bwp-line);
	font-size: 13.5px;
	line-height: 1.45;
}

.bwp-row__more > summary {
	display: block;
	width: 100%;
	padding: 8px 0 10px;
	color: var(--bwp-claret);
	font-weight: 600;
	cursor: pointer;
	white-space: normal;
	overflow: visible;
	list-style: none;
}

.bwp-row__more > summary::-webkit-details-marker { display: none; }

.bwp-row__more > summary::before {
	content: "+ ";
	font-weight: 700;
	color: var(--bwp-brass);
}

.bwp-row__more[open] > summary::before { content: "\2212  "; }

.bwp-row__more ul {
	margin: 0 0 12px;
	padding-inline-start: 20px;
	color: var(--bwp-muted);
}

.bwp-row__more li { margin: 0 0 5px; }

/* =====================================================================
   Body furniture: contents list, figure, tables, expanders, aside.
   ===================================================================== */

.bwp-section { margin: 0 0 28px; }

.bwp-toc {
	margin-block: 26px 8px;
	padding: 18px 20px;
	background: var(--bwp-paper-deep);
	border: 1px solid var(--bwp-line);
	border-inline-start: 4px solid var(--bwp-claret);
	border-radius: 0 var(--bwp-radius) var(--bwp-radius) 0;
}

.bwp-toc ol {
	margin: 0;
	padding-inline-start: 20px;
	columns: 2;
	column-gap: 28px;
	font-size: 15px;
	line-height: 1.5;
}

.bwp-toc li { margin: 0 0 5px; break-inside: avoid; }
.bwp-toc a { text-decoration: none; }
.bwp-toc a:hover { text-decoration: underline; }

.bwp-fig {
	margin: 24px auto;
	padding: 16px 18px;
	background: var(--bwp-paper);
	border: 1px solid var(--bwp-line);
	border-radius: var(--bwp-radius);
}

.bwp-fig svg { display: block; width: 100%; height: auto; }

.bwp-fig-cap,
.bwp-fig figcaption {
	font-size: 13.5px;
	line-height: 1.45;
	color: var(--bwp-muted);
	margin: 10px 0 0;
}

/* Tables: 1px tinted rules, no zebra, a head marked by capitals. */

.bwp-table-wrap {
	margin: 24px auto;
	overflow-x: auto;
}

.bwp-table,
.entry-content table {
	width: 100%;
	border-collapse: collapse;
	font-size: 15px;
	line-height: 1.45;
	background: transparent;
}

.bwp-table caption,
.entry-content table caption {
	caption-side: top;
	text-align: start;
	font-size: 13.5px;
	color: var(--bwp-muted);
	padding: 0 0 8px;
}

.bwp-table th,
.bwp-table td,
.entry-content table th,
.entry-content table td {
	padding: 10px 12px;
	border: 0;
	border-bottom-width: 1px;
	border-bottom-style: solid;
	border-bottom-color: var(--bwp-line);
	text-align: start;
	vertical-align: top;
	background: transparent;
}

.bwp-table thead th,
.entry-content table thead th {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--bwp-muted);
	border-bottom-width: 1px;
	border-bottom-style: solid;
	border-bottom-color: var(--bwp-ink);
}

.bwp-table tbody tr,
.bwp-table tbody tr:nth-child(even),
.bwp-table tbody td,
.entry-content table tbody tr,
.entry-content table tbody tr:nth-child(even),
.entry-content table tbody td,
.entry-content table tbody th,
.bwp-table tbody tr:nth-child(odd),
.entry-content table tbody tr:nth-child(odd) {
	background-color: transparent !important;
}

.bwp-table tbody tr:hover,
.entry-content table tbody tr:hover {
	background: rgba(185, 139, 44, 0.06);
}

.bwp-faq {
	margin: 28px auto;
	border-top: 1px solid var(--bwp-line);
}

.bwp-faq-item { border-bottom: 1px solid var(--bwp-line); }

.bwp-faq-item > summary,
summary.bwp-q {
	padding: 13px 0;
	font-family: var(--bwp-font-head);
	font-size: 17px;
	font-weight: 600;
	color: var(--bwp-ink);
	cursor: pointer;
	list-style: none;
}

.bwp-faq-item > summary::-webkit-details-marker { display: none; }

.bwp-faq-item > summary::after {
	content: "+";
	float: inline-end;
	color: var(--bwp-claret);
	font-weight: 700;
}

.bwp-faq-item[open] > summary::after { content: "\2212"; }

.bwp-a { padding: 0 0 12px; font-size: 16px; color: var(--bwp-muted); }
.bwp-a p { margin: 0 0 10px; }

/* The licence aside: a wash at eight percent, a border at thirty five. */

.bwp-licence {
	margin: 28px auto;
	padding: 18px 20px;
	background: rgba(122, 31, 43, 0.08);
	border: 1px solid rgba(122, 31, 43, 0.35);
	border-radius: var(--bwp-radius);
	font-size: 15.5px;
	line-height: 1.55;
	color: var(--bwp-ink);
}

.bwp-licence p { margin: 0; }

.bwp-onward {
	margin: 28px auto 8px;
	font-size: 16px;
	color: var(--bwp-muted);
}

.bwp-onward p { margin: 0; }

.bwp-calc {
	margin: 24px auto;
	padding: 18px 20px;
	background: var(--bwp-paper-deep);
	border: 1px solid var(--bwp-line);
	border-radius: var(--bwp-radius);
}

.bwp-calc-form {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	align-items: flex-end;
}

.bwp-calc-field {
	display: flex;
	flex-direction: column;
	gap: 4px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.04em;
	color: var(--bwp-muted);
	min-width: 110px;
}

.bwp-calc-field input,
.bwp-calc-field select {
	font: inherit;
	font-size: 15px;
	font-variant-numeric: tabular-nums;
	padding: 8px 10px;
	border: 1px solid var(--bwp-rule);
	border-radius: 6px;
	background: #fffdf8;
	color: var(--bwp-ink);
	max-width: 100%;
}

.bwp-calc-field input:focus,
.bwp-calc-field select:focus {
	outline: 2px solid var(--bwp-claret);
	outline-offset: 1px;
}

.bwp-calc button,
.bwp-calc .bwp-calc-btn {
	background: var(--bwp-claret);
	color: #fdf9f1;
	font: inherit;
	font-size: 15px;
	font-weight: 700;
	border: 1px solid var(--bwp-claret);
	border-radius: 6px;
	min-height: 44px;
	padding: 8px 18px;
	cursor: pointer;
}

.bwp-calc button:hover,
.bwp-calc button:focus { background: var(--bwp-claret-fill); }

.bwp-calc-result {
	margin: 14px 0 0;
	padding: 11px 14px;
	border: 1px solid var(--bwp-line);
	border-radius: 6px;
	background: #fffdf8;
	font-weight: 700;
	color: var(--bwp-ink);
	font-variant-numeric: tabular-nums;
}

.bwp-calc-note {
	font-size: 13px;
	color: var(--bwp-muted);
	margin: 8px 0 0;
}

/* =====================================================================
   Footer: the palette's deep hue, three columns, all five register facts.
   ===================================================================== */

.bwp-footer {
	background: var(--bwp-ink);
	color: #e9e2d5;
	padding: 40px 0 26px;
	margin-top: 44px;
	font-size: 14.5px;
	line-height: 1.55;
	text-align: start;
}

.bwp-footer__inner {
	width: 100%;
	max-width: var(--bwp-measure);
	margin-inline: auto;
	padding-inline: var(--bwp-gutter);
}

.bwp-footer__cols {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 36px 52px;
}

.bwp-footer__col { min-width: 0; }

.bwp-footer__head {
	font-family: var(--bwp-font-body);
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #e6c67a;
	margin: 0 0 10px;
	text-align: start;
	line-height: 1.3;
}

.bwp-footer__lede {
	font-family: var(--bwp-font-head);
	font-size: 16.5px;
	line-height: 1.45;
	color: #f4efe4;
	margin: 0 0 10px;
}

.bwp-footer__small {
	font-size: 13.5px;
	line-height: 1.5;
	color: #d3caba;
	margin: 0 0 10px;
}

.bwp-footer__list {
	list-style: none;
	margin: 0 0 10px;
	padding: 0;
}

.bwp-footer__list li {
	margin: 0 0 7px;
	font-size: 13.5px;
	line-height: 1.5;
	color: #d3caba;
}

.bwp-footer a { color: #f2e9d7; text-decoration-thickness: 1px; }
.bwp-footer a:hover,
.bwp-footer a:focus { color: #f5d79b; }

.bwp-footer__bar {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 28px;
	padding-top: 18px;
	border-top: 1px solid rgba(233, 226, 213, 0.22);
}

.bwp-footer__bar .bwp-age {
	margin-inline-start: 0;
	flex: 0 0 auto;
	background: #f2ece0;
	color: #241d1a;
}

.bwp-footer__bar .bwp-footer__small { margin: 0; }

.bwp-footer__legal {
	font-size: 13px;
	line-height: 1.5;
	color: #c9bfae;
	margin: 16px 0 0;
}

/* =====================================================================
   Responsive. The nav fits one line at 1024 or the taxonomy is at fault.
   ===================================================================== */

@media (max-width: 1140px) {
	.bwp-row {
		grid-template-columns: 40px minmax(0, 1.3fr) minmax(0, 1.1fr) 208px 178px;
		column-gap: 14px;
	}
	.bwp-figure__v { font-size: 27px; }
	.bwp-cta,
	a.bwp-cta { min-width: 160px; font-size: 14.5px; }
}

@media (max-width: 1024px) {
	body { --bwp-measure: 100%; --bwp-gutter: 24px; }
	.bwp-nav__item > a { padding-inline: 7px; font-size: 14.5px; }
	.bwp-standing { display: none; }
	.bwp-row {
		grid-template-columns: 36px minmax(0, 1.2fr) minmax(0, 1fr) 186px 158px;
		column-gap: 12px;
	}
	.bwp-figure__v { font-size: 25px; }
	.bwp-cta,
	a.bwp-cta { min-width: 152px; font-size: 14px; padding-inline: 10px; }
}

@media (max-width: 900px) {
	.bwp-navtoggle { display: inline-flex; }
	.bwp-nav__list {
		display: none;
		flex-direction: column;
		flex-wrap: nowrap;
		gap: 0;
		border-top: 1px solid var(--bwp-line);
		padding-block: 6px;
	}
	.bwp-nav__list.is-open { display: flex; }
	.bwp-nav__item { width: 100%; }
	.bwp-nav__item > a {
		padding: 13px 2px;
		font-size: 16px;
		white-space: normal;
		border-bottom: 1px solid var(--bwp-line);
		margin-bottom: 0;
	}
	.bwp-nav__sub {
		position: static;
		display: flex;
		min-width: 0;
		max-width: none;
		border: 0;
		border-radius: 0;
		box-shadow: none;
		padding: 2px 0 10px 10px;
	}
	.bwp-nav__sub a { padding: 7px 6px; }
	.bwp-row {
		grid-template-columns: 34px minmax(0, 1fr) 168px;
		grid-template-areas:
			"rank brand action"
			"rank terms terms"
			"rank figures figures";
		row-gap: 8px;
		align-items: start;
		padding-block: 16px;
	}
	.bwp-row__terms { flex-direction: row; flex-wrap: wrap; gap: 2px 14px; }
	.bwp-row__figures { justify-content: flex-start; }
	.bwp-row__action { align-items: stretch; }
	.bwp-row__small { text-align: start; }
	.bwp-footer__cols { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}

@media (max-width: 640px) {
	body { --bwp-gutter: 16px; font-size: 17px; }
	.bwp-row {
		grid-template-columns: 28px minmax(0, 1fr);
		grid-template-areas:
			"rank brand"
			"rank terms"
			"rank figures"
			"rank action";
		row-gap: 10px;
	}
	.bwp-row--lead { padding-inline-start: 10px; }
	.bwp-figure__v { font-size: 26px; }
	.bwp-cta,
	a.bwp-cta { min-width: 0; width: 100%; }
	.bwp-row__small { text-align: center; }
	.bwp-row__more > summary { white-space: normal; }
	.bwp-toc ol { columns: 1; }
	.bwp-masthead__top { flex-wrap: wrap; gap: 8px 12px; }
	.bwp-wordmark { font-size: 22px; }
	.bwp-footer__bar { flex-wrap: wrap; }
	.bwp-fig { padding: 10px 12px; }
	.bwp-fig svg { max-width: 100%; }
	.bwp-table-wrap { max-width: 100%; }
	.bwp-table th,
	.bwp-table td,
	.entry-content table th,
	.entry-content table td { padding: 9px 10px; font-size: 14px; }
}

/* Nothing on a phone may run past the viewport. Images and charts shrink,
   long words break, and a wide table scrolls inside its own wrapper only. */

@media (max-width: 900px) {
	img,
	svg,
	iframe,
	video,
	embed,
	object { max-width: 100%; height: auto; }
	.bwp-row__figures { flex-wrap: wrap; row-gap: 8px; }
	.bwp-row__terms { word-break: break-word; }
	.bwp-fig,
	.bwp-licence,
	.bwp-calc,
	.bwp-toc,
	.bwp-board,
	.bwp-footer,
	.bwp-masthead { max-width: 100%; }
	.bwp-pair { white-space: normal; }
	.bwp-toc ol { column-gap: 18px; }
	.bwp-board,
	.bwp-board__rows,
	.bwp-row,
	.entry-content > * { min-width: 0; }
	.bwp-row > * { min-width: 0; }
}

@supports (overflow: clip) {
	html,
	body { overflow-x: clip; }
}

/* A last, deliberately blunt guard: nothing may be wider than the page. */

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

.entry-content,
.entry-content > *,
.bwp-board,
.bwp-board__rows,
.bwp-row,
.bwp-row > * { max-width: 100%; }

@media (max-width: 900px) {
	.bwp-row__more,
	.bwp-row__more ul,
	.bwp-row__more li { max-width: 100%; overflow-wrap: anywhere; }
}

@media (prefers-reduced-motion: reduce) {
	* { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
	.bwp-cta:hover,
	.bwp-cta:focus { transform: none; }
}
