/*
Theme Name: Build With Me
Theme URI: https://build-with-me.net/
Description: Lightweight theme for Build With Me: LEGO speed-build videos, set data pages (bwm-core mu-plugin) and tools.
Version: 1.0.0
Requires PHP: 7.4
Text Domain: buildwithme
*/

:root {
	--bg: #fffcf5;
	--paper: #ffffff;
	--ink: #1c1b19;
	--ink-2: #4d4a44;
	--muted: #77726a;
	--line: #ebe4d6;
	--line-2: #f3eee3;
	--yellow: #ffc81e;
	--yellow-2: #fff1c2;
	--red: #d32f22;
	--red-2: #fde4e1;
	--blue: #1b5fbf;
	--blue-2: #e2ecfa;
	--green: #23874a;
	--green-2: #def3e5;
	--radius: 14px;
	--shadow: 0 1px 2px rgba(40, 30, 10, .06), 0 4px 14px rgba(40, 30, 10, .06);
	--font: ui-rounded, "SF Pro Rounded", "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
	--wrap: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font: 17px/1.6 var(--font);
	text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: .15em; }
a:hover { color: var(--red); }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.01em; margin: 1.6em 0 .6em; }
h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); margin-top: .2em; font-weight: 800; }
h2 { font-size: clamp(1.35rem, 2.6vw, 1.7rem); font-weight: 800; }
h3 { font-size: 1.1rem; }
p, ul, ol { margin: 0 0 1em; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link:focus { clip: auto; width: auto; height: auto; z-index: 100; background: var(--paper); padding: .5em 1em; left: 1em; top: 1em; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

.bwm-wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.bwm-main { max-width: var(--wrap); margin: 0 auto; padding: 24px 20px 60px; }
.bwm-home { max-width: none; padding: 0 0 60px; }
.bwm-article { max-width: 940px; }
.bwm-main--data .bwm-article { max-width: none; }

/* ---- Header ---------------------------------------------------------------- */
.bwm-header { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.bwm-header-in { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.bwm-logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 1.2rem; letter-spacing: -.02em; white-space: nowrap; }
.bwm-logo:hover { color: var(--ink); }
.bwm-logo-svg { flex: none; }
.bwm-nav { margin-left: auto; }
.bwm-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.bwm-nav a { display: block; padding: 8px 12px; border-radius: 10px; color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .95rem; }
.bwm-nav a:hover { background: var(--yellow-2); color: var(--ink); }
.bwm-menu-btn { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--line); background: var(--paper); border-radius: 10px; cursor: pointer; }
.bwm-menu-btn span[aria-hidden] { display: block; width: 18px; height: 2px; background: var(--ink); margin: 0 auto; box-shadow: 0 -6px 0 var(--ink), 0 6px 0 var(--ink); }
@media (max-width: 980px) {
	.bwm-menu-btn { display: block; }
	.bwm-nav { display: none; position: absolute; left: 0; right: 0; top: 64px; background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px 12px 14px; box-shadow: var(--shadow); }
	.bwm-nav.is-open { display: block; }
	.bwm-nav ul { flex-direction: column; }
	.bwm-nav a { padding: 12px; }
}

/* ---- Footer ---------------------------------------------------------------- */
.bwm-footer { background: #23211d; color: #d9d3c7; margin-top: 40px; padding: 44px 0 20px; font-size: .95rem; }
.bwm-footer a { color: #fff; }
.bwm-footer a:hover { color: var(--yellow); }
.bwm-footer h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: #a7a094; margin: 0 0 .7em; }
.bwm-footer ul { list-style: none; padding: 0; margin: 0 0 1.4em; }
.bwm-footer li { margin: .35em 0; }
.bwm-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.bwm-logo--footer { color: #fff; margin-bottom: .6em; }
.bwm-logo--footer:hover { color: #fff; }
.bwm-footer-legal { border-top: 1px solid #3a3731; margin-top: 16px; padding-top: 16px; font-size: .82rem; color: #a7a094; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.bwm-footer-legal p { margin: 0; }
@media (max-width: 760px) { .bwm-footer-grid { grid-template-columns: 1fr; gap: 8px; } }

/* ---- Buttons --------------------------------------------------------------- */
.bwm-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 12px; background: var(--red); color: #fff; font: 700 1rem var(--font); padding: 12px 20px; cursor: pointer; text-decoration: none; box-shadow: 0 3px 0 #a3231a; }
.bwm-btn:hover { background: #bf2a1e; color: #fff; }
.bwm-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 #a3231a; }
.bwm-btn--yt { background: #ff0000; box-shadow: 0 3px 0 #b30000; }

/* ---- Hero ------------------------------------------------------------------ */
.bwm-hero { background: var(--yellow); background-image: radial-gradient(circle at 18px 18px, rgba(255, 255, 255, .28) 7px, transparent 8px); background-size: 36px 36px; border-bottom: 4px solid #e0a800; }
.bwm-hero-in { display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: center; padding-top: 48px; padding-bottom: 52px; }
.bwm-hero h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); margin: 0 0 .4em; }
.bwm-hero p { font-size: 1.12rem; color: #3d3520; max-width: 36em; }
.bwm-hero-search { display: flex; gap: 8px; max-width: 520px; margin: 1.2em 0 .6em; }
.bwm-hero-search input { flex: 1; min-width: 0; font: 600 1.05rem var(--font); padding: 13px 16px; border: 2px solid var(--ink); border-radius: 12px; background: #fff; }
.bwm-hero-note { font-size: .9rem !important; font-weight: 600; opacity: .8; }
.bwm-hero-video a { position: relative; display: block; border-radius: 18px; overflow: hidden; box-shadow: 0 10px 30px rgba(80, 55, 0, .28); background: #000; color: #fff; text-decoration: none; }
.bwm-hero-video img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; opacity: .92; }
.bwm-hero-video-t { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 14px; background: linear-gradient(transparent, rgba(0, 0, 0, .75)); font-weight: 700; }
@media (max-width: 860px) { .bwm-hero-in { grid-template-columns: 1fr; padding-top: 32px; padding-bottom: 36px; gap: 24px; } }

/* ---- Sections / cards -------------------------------------------------------- */
.bwm-section { margin: 44px 0; }
.bwm-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.bwm-section-head h2 { margin: 0; }
.bwm-section-head a { font-weight: 700; text-decoration: none; }

.bwm-postcards { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.bwm-postcard a { display: flex; flex-direction: column; height: 100%; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: var(--ink); text-decoration: none; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; }
.bwm-postcard a:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(40, 30, 10, .12); }
.bwm-postcard-img { position: relative; display: block; background: #111; }
.bwm-postcard-img img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.bwm-postcard strong { padding: 12px 14px 4px; line-height: 1.3; }
.bwm-postcard .bwm-card-meta { padding: 0 14px 14px; }

.bwm-cards { list-style: none; padding: 0; margin: 0 0 1.5em; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; counter-reset: rank; }
.bwm-cards li { counter-increment: rank; }
.bwm-cards a { position: relative; display: flex; flex-direction: column; height: 100%; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; color: var(--ink); text-decoration: none; box-shadow: var(--shadow); }
.bwm-cards a:hover { border-color: var(--yellow); }
.bwm-cards--rank a::before { content: counter(rank); position: absolute; top: 10px; left: 10px; z-index: 1; min-width: 30px; height: 30px; padding: 0 6px; border-radius: 8px; background: var(--yellow); color: var(--ink); font-weight: 800; display: grid; place-items: center; font-size: .9rem; }
.bwm-card-img { display: grid; place-items: center; aspect-ratio: 4 / 3; background: #fff; margin-bottom: 8px; }
.bwm-card-img img { max-height: 100%; width: auto; object-fit: contain; }
.bwm-cards strong { line-height: 1.25; font-size: .98rem; }
.bwm-card-meta { color: var(--muted); font-size: .85rem; margin-top: 3px; }
.bwm-card-parts { margin-top: auto; padding-top: 6px; font-weight: 700; font-size: .9rem; color: var(--red); }

.bwm-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.bwm-tile { display: flex; flex-direction: column; gap: 6px; padding: 22px; border-radius: var(--radius); text-decoration: none; color: var(--ink); min-height: 140px; border: 1px solid transparent; }
.bwm-tile strong { font-size: 1.2rem; line-height: 1.25; }
.bwm-tile span { color: var(--ink-2); font-size: .95rem; }
.bwm-tile:hover { color: var(--ink); border-color: rgba(0, 0, 0, .15); }
.bwm-tile--red { background: var(--red-2); }
.bwm-tile--blue { background: var(--blue-2); }
.bwm-tile--green { background: var(--green-2); }
.bwm-tile--yellow { background: var(--yellow-2); }

/* ---- Page head, crumbs, content ------------------------------------------------ */
.bwm-crumbs ol { list-style: none; padding: 0; margin: 0 0 14px; display: flex; flex-wrap: wrap; gap: 4px; font-size: .88rem; color: var(--muted); }
.bwm-crumbs li + li::before { content: "›"; margin: 0 6px 0 2px; color: #b9b2a5; }
.bwm-crumbs a { color: var(--ink-2); text-decoration: none; }
.bwm-crumbs a:hover { text-decoration: underline; }
.bwm-page-head { margin-bottom: 18px; }
.bwm-byline { color: var(--muted); font-size: .92rem; margin: -.2em 0 0; }
.bwm-lead { font-size: 1.12rem; color: var(--ink-2); max-width: 54em; }
.bwm-content > p, .bwm-content > ul, .bwm-content > ol { max-width: 46em; }
.bwm-content li { margin: .3em 0; }
.bwm-dim { color: var(--muted); }
.bwm-links { padding-left: 1.2em; }
.bwm-source { font-size: .85rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 14px; margin-top: 36px; max-width: 60em !important; }
.bwm-subscribe { background: var(--yellow-2); border-radius: 12px; padding: 14px 18px; margin-top: 28px; }

/* ---- Stats --------------------------------------------------------------------- */
.bwm-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)); gap: 12px; margin: 20px 0 28px; }
.bwm-stats > div { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); }
.bwm-stats dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 700; }
.bwm-stats dd { margin: 2px 0 0; font-size: 1.55rem; font-weight: 800; line-height: 1.2; }
.bwm-stats p { margin: 2px 0 0; font-size: .85rem; color: var(--ink-2); line-height: 1.35; }

/* ---- Bars ---------------------------------------------------------------------- */
.bwm-bars { display: flex; align-items: flex-end; gap: 2px; height: 150px; padding: 10px 0 24px; border-bottom: 1px solid var(--line); margin-bottom: 1.4em; position: relative; }
.bwm-bar { flex: 1 1 0; min-width: 2px; height: 100%; position: relative; display: flex; align-items: flex-end; }
.bwm-bar i { display: block; width: 100%; height: var(--h); background: var(--red); border-radius: 3px 3px 0 0; opacity: .85; }
.bwm-bar:hover i { opacity: 1; background: var(--blue); }
.bwm-bar b { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); margin-top: 5px; font-size: .7rem; color: var(--muted); font-weight: 600; white-space: nowrap; }

/* ---- Chips, theme lists, years ---------------------------------------------------- */
.bwm-chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 1.5em; }
.bwm-chips a, .bwm-chips li > span { display: inline-flex; gap: 6px; align-items: center; padding: 6px 12px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-size: .92rem; font-weight: 600; }
.bwm-chips a:hover { border-color: var(--blue); color: var(--blue); }
.bwm-chips span span, .bwm-chips a span { color: var(--muted); font-weight: 500; }

.bwm-themes { list-style: none; padding: 0; margin: 0 0 1.5em; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.bwm-themes a { display: flex; flex-direction: column; padding: 12px 14px; background: var(--paper); border: 1px solid var(--line); border-left: 5px solid var(--yellow); border-radius: 10px; text-decoration: none; color: var(--ink); }
.bwm-themes li:nth-child(4n+2) a { border-left-color: var(--red); }
.bwm-themes li:nth-child(4n+3) a { border-left-color: var(--blue); }
.bwm-themes li:nth-child(4n+4) a { border-left-color: var(--green); }
.bwm-themes a:hover { box-shadow: var(--shadow); }
.bwm-themes span { color: var(--muted); font-size: .85rem; }
.bwm-themes--home { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }

.bwm-years { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; margin-bottom: 1.5em; }
.bwm-years > div { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; }
.bwm-years h3 { margin: 0 0 6px; font-size: .95rem; color: var(--muted); }
.bwm-years ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.bwm-years a, .bwm-years span { display: inline-block; padding: 3px 8px; border-radius: 6px; background: var(--line-2); text-decoration: none; color: var(--ink); font-weight: 600; font-size: .9rem; }
.bwm-years a:hover { background: var(--yellow); }
.bwm-years span[aria-current] { background: var(--ink); color: #fff; }

.bwm-prevnext { display: flex; justify-content: space-between; gap: 12px; margin: 28px 0; font-weight: 700; }

/* ---- Tables -------------------------------------------------------------------- */
.bwm-filter { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 0 0 12px; position: sticky; top: 64px; z-index: 5; background: var(--bg); padding: 8px 0; }
.bwm-filter input, .bwm-filter select, .bwm-tool input, .bwm-tool select { font: 500 1rem var(--font); padding: 10px 12px; border: 1px solid #cfc6b4; border-radius: 10px; background: #fff; color: var(--ink); }
.bwm-filter input { width: min(360px, 100%); }
.bwm-filter output { color: var(--muted); font-size: .9rem; }
.bwm-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); margin-bottom: 1.5em; }
.bwm-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.bwm-table caption { text-align: left; padding: 12px 14px; font-weight: 700; }
.bwm-table th, .bwm-table td { padding: 9px 12px; text-align: left; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.bwm-table th { background: #faf6ec; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-2); white-space: nowrap; position: sticky; top: 0; }
.bwm-table th[data-sort] { cursor: pointer; user-select: none; }
.bwm-table th[data-sort]::after { content: "↕"; margin-left: 4px; color: #c0b8a8; }
.bwm-table th[aria-sort="ascending"]::after { content: "↑"; color: var(--red); }
.bwm-table th[aria-sort="descending"]::after { content: "↓"; color: var(--red); }
.bwm-table tbody tr:hover { background: #fffaf0; }
.bwm-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bwm-table td.set { white-space: nowrap; font-variant-numeric: tabular-nums; font-weight: 600; }
.bwm-table tr[hidden] { display: none; }

/* ---- FAQ ------------------------------------------------------------------------ */
.bwm-faq details { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 0 16px; margin-bottom: 8px; max-width: 54em; }
.bwm-faq summary { cursor: pointer; padding: 14px 0; font-weight: 700; }
.bwm-faq details p { margin: 0 0 14px; color: var(--ink-2); }

/* ---- Videos ---------------------------------------------------------------------- */
.bwm-video { margin: 0 0 18px; }
.bwm-yt { position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: var(--radius); overflow: hidden; background: #000; cursor: pointer; aspect-ratio: 16 / 9; }
.bwm-yt img { width: 100%; height: 100%; object-fit: cover; opacity: .9; transition: opacity .2s; }
.bwm-yt:hover img { opacity: 1; }
.bwm-video iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius); display: block; background: #000; }
.bwm-video figcaption { font-size: .9rem; color: var(--ink-2); margin-top: 6px; font-weight: 600; line-height: 1.35; }
.bwm-video--lead { max-width: 940px; margin-bottom: 26px; }
.bwm-video--lead figcaption { display: none; }
.bwm-play { position: absolute; left: 50%; top: 50%; width: 68px; height: 48px; margin: -24px 0 0 -34px; border-radius: 14px; background: rgba(255, 0, 0, .92); box-shadow: 0 4px 14px rgba(0, 0, 0, .3); }
.bwm-play::after { content: ""; position: absolute; left: 27px; top: 14px; border-style: solid; border-width: 10px 0 10px 17px; border-color: transparent transparent transparent #fff; }
.bwm-play--sm { transform: scale(.7); }
.bwm-videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; margin-bottom: 1.5em; }
.bwm-videos .bwm-video { margin: 0; }

/* ---- Set box -------------------------------------------------------------------- */
.bwm-setbox { display: grid; grid-template-columns: 240px 1fr; gap: 22px; align-items: start; background: var(--paper); border: 1px solid var(--line); border-top: 5px solid var(--yellow); border-radius: var(--radius); padding: 18px; margin: 26px 0; box-shadow: var(--shadow); max-width: 940px; }
.bwm-setbox img { width: 100%; object-fit: contain; aspect-ratio: 4 / 3; }
.bwm-setbox h2 { margin: 0 0 10px; font-size: 1.3rem; }
.bwm-setbox-k { margin: 0; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.bwm-setbox dl { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px 16px; margin: 0 0 10px; }
.bwm-setbox dt { font-size: .78rem; color: var(--muted); }
.bwm-setbox dd { margin: 0; font-weight: 700; }
.bwm-setbox-figs, .bwm-setbox-links { font-size: .92rem; margin: 0 0 6px; }
@media (max-width: 640px) { .bwm-setbox { grid-template-columns: 1fr; } .bwm-setbox img { max-width: 260px; } }

.bwm-figs { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; margin: 0 0 1.5em; }
.bwm-figs li { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 10px; text-align: center; font-size: .88rem; font-weight: 600; }
.bwm-figs img { margin: 0 auto 6px; aspect-ratio: 1; object-fit: contain; }

/* ---- Tools ------------------------------------------------------------------------ */
.bwm-tool { background: var(--paper); border: 1px solid var(--line); border-top: 5px solid var(--blue); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); margin: 18px 0 30px; max-width: 940px; }
.bwm-tool-label { display: block; font-weight: 700; margin-bottom: 6px; }
#bwm-q { width: 100%; font-size: 1.15rem; padding: 14px 16px; border-width: 2px; }
.bwm-tool-status { color: var(--muted); font-size: .9rem; margin: 8px 0; }
.bwm-results { list-style: none; padding: 0; margin: 0; }
.bwm-results li { border-top: 1px solid var(--line-2); }
.bwm-results button { display: flex; gap: 12px; width: 100%; text-align: left; align-items: baseline; background: none; border: 0; padding: 10px 6px; font: inherit; color: var(--ink); cursor: pointer; border-radius: 8px; }
.bwm-results button:hover, .bwm-results button:focus { background: var(--yellow-2); }
.bwm-results b { min-width: 6.5em; font-variant-numeric: tabular-nums; }
.bwm-results small { color: var(--muted); margin-left: auto; white-space: nowrap; }
.bwm-detail { display: grid; grid-template-columns: 260px 1fr; gap: 22px; padding: 16px 0 18px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.bwm-detail img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: #fff; }
.bwm-detail h2 { margin: 0 0 8px; }
.bwm-detail dl { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px 16px; margin: 0 0 12px; }
.bwm-detail dt { font-size: .78rem; color: var(--muted); }
.bwm-detail dd { margin: 0; font-weight: 700; }
@media (max-width: 640px) { .bwm-detail { grid-template-columns: 1fr; } }
.bwm-ppp-row { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 12px; }
.bwm-ppp-row label { display: flex; flex-direction: column; gap: 4px; font-weight: 700; font-size: .9rem; }
.bwm-ppp-row input, .bwm-ppp-row select { width: 100%; }
@media (max-width: 720px) { .bwm-ppp-row { grid-template-columns: 1fr 1fr; } }
.ppp-name { min-height: 1.4em; margin: 8px 0; font-size: .95rem; }
.ppp-out { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 6px 0 14px; }
.ppp-big { font-size: 2.6rem; font-weight: 800; line-height: 1; }
.ppp-sub { color: var(--muted); }
.ppp-rate { display: inline-block; padding: 4px 10px; border-radius: 999px; font-weight: 700; font-size: .9rem; }
.ppp-rate--great { background: var(--green-2); color: var(--green); }
.ppp-rate--good { background: var(--blue-2); color: var(--blue); }
.ppp-rate--avg { background: var(--yellow-2); color: #8a6400; }
.ppp-rate--high { background: var(--red-2); color: var(--red); }
.ppp-table { margin-top: 16px; }
.ppp-table button { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 1.1rem; }

/* ---- WP bits ------------------------------------------------------------------------ */
.nav-links { display: flex; gap: 6px; flex-wrap: wrap; margin: 30px 0; }
.nav-links .page-numbers { padding: 8px 14px; border-radius: 10px; background: var(--paper); border: 1px solid var(--line); text-decoration: none; }
.nav-links .current { background: var(--ink); color: #fff; }
.wp-block-image, .wp-caption { margin: 0 0 1em; }
.aligncenter { margin-left: auto; margin-right: auto; }
