/* Brick Cafes directory parts, "Baseplate" (Claude Design, December 2026).
 * These are the plugin's own server-rendered blocks (cards, tiles, maps, the place page), so their
 * styles live here rather than in theme.json, which styles core blocks. Colours come from the
 * theme's palette variables. Rules: kind colours are fills with ink text; 3px ink borders on
 * things you press, 2px "line" borders on quiet things; solid ink shadows, never blurred;
 * studs (tabs on the top edge) only on kind tiles, heroes, the search bar and the place card. */

:root {
	--bc-ink: var(--wp--preset--color--contrast, #1a263f);
	--bc-paper: var(--wp--preset--color--base, #fbfaf6);
	--bc-card: var(--wp--preset--color--white, #fff);
	--bc-line: var(--wp--preset--color--border, #d1d8e5);
	--bc-tint: var(--wp--preset--color--tertiary, #ebeef5);
	--bc-field: #f0f6fa;
	--bc-soft-rule: #e4e8ef;
	--bc-dashed: #b4bed2;
	--bc-hover: var(--wp--preset--color--secondary, #bd4334);
	--bc-display: var(--wp--preset--font-family--display, Gabarito, system-ui, sans-serif);
	--bc-press: 0 4px 0 var(--bc-ink);
	--bc-press-lg: 0 6px 0 var(--bc-ink);
}

/* Kind colours: --k is the fill, --ks the soft panel. */
.bc-k--brick-cafe { --k: #f68675; --ks: #ffe6e1; --kd: #ffbeb2; }
.bc-k--parties-events { --k: #ebbd57; --ks: #f9edd5; --kd: #f3d79a; }
.bc-k--play-venue { --k: #8ed09c; --ks: #dff6e2; --kd: #b9e4c2; }
.bc-k--classes-club { --k: #c5b3ea; --ks: #f1eaff; --kd: #ddd0f6; }
.bc-k--rental-library { --k: #9ed3f2; --ks: #dcf2ff; --kd: #c3e5f8; }
.bc-k--tint { --k: var(--bc-tint); --ks: var(--bc-tint); --kd: var(--bc-line); }

/* ---------- Small parts ---------- */

.bc-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.bc-tag {
	display: inline-block; padding: 4px 10px; border-radius: 8px; background: var(--k, var(--bc-tint));
	font: 700 0.8125rem/1.3 var(--bc-display); color: var(--bc-ink);
}
.bc-tag--quiet { background: var(--bc-card); border: 2px solid var(--bc-line); padding: 2px 9px; }
.bc-tag--ink { background: var(--bc-ink); color: #fff; }

.bc-go { font: 700 1.0625rem var(--bc-display); }
.bc-go::after { content: " →"; }
a.bc-go { color: var(--bc-ink); }

.bc-btn, .bc-bar button[type="submit"] {
	display: inline-flex; align-items: center; justify-content: center; gap: 6px;
	padding: 14px 26px; border: 3px solid var(--bc-ink); border-radius: 12px; background: var(--wp--preset--color--primary, #f68675);
	color: var(--bc-ink); font: 800 1.125rem/1.2 var(--bc-display); text-decoration: none; box-shadow: var(--bc-press); cursor: pointer;
}
.bc-btn:hover { color: var(--bc-ink); }
.bc-btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--bc-ink); }
.bc-btn--ink { background: var(--bc-ink); color: #fff; border: 0; box-shadow: none; padding: 12px 20px; font-size: 1rem; font-weight: 700; }
.bc-btn--ink:hover { color: #fff; }

.bc-h { font-size: 1.875rem; margin: 0 0 18px; }
.bc-small, .bc-small p { font-size: 0.875rem; }
.bc-empty { font-size: 1.0625rem; }

/* Studs as tabs on the top edge of a tile, hero, search bar or the place card. */
.bc-tile > .bc-studs, .bc-hero > .bc-studs, .bc-bar > .bc-studs, .bc-sidecard > .bc-studs {
	position: absolute; display: flex; gap: 18px; top: -10px; left: 28px; pointer-events: none;
}
.bc-tile > .bc-studs i, .bc-hero > .bc-studs i { width: 44px; height: 12px; border-radius: 8px 8px 0 0; background: var(--k); }
.bc-hero > .bc-studs { top: -14px; left: clamp(24px, 5vw, 64px); gap: 28px; }
.bc-hero > .bc-studs i { width: 64px; height: 16px; border-radius: 10px 10px 0 0; }
.bc-bar > .bc-studs { left: 40px; right: 40px; justify-content: space-between; top: -12px; }
.bc-bar > .bc-studs i, .bc-sidecard > .bc-studs i {
	width: 40px; height: 14px; border-radius: 8px 8px 0 0; background: var(--bc-card); border: 3px solid var(--bc-ink); border-bottom: 0;
}
.bc-sidecard > .bc-studs { top: -13px; gap: 16px; }

/* Studs as round dots: where a photo goes until the place sends one. */
.bc-studs { display: inline-grid; grid-template-columns: repeat(2, 26px); gap: 10px; }
.bc-studs i { display: block; height: 26px; border-radius: 50%; background: var(--kd, var(--k)); }

/* ---------- Search bar (home) and the finder ---------- */

.bc-finder { width: 100%; max-width: 860px; margin: 16px auto 0; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.bc-bar {
	position: relative; display: flex; flex-wrap: wrap; gap: 10px; width: 100%; box-sizing: border-box;
	padding: 10px; background: var(--bc-card); border: 3px solid var(--bc-ink); border-radius: 16px; box-shadow: 0 5px 0 var(--bc-ink); text-align: left;
}
.bc-bar--studs { padding: 12px; border-radius: 18px; box-shadow: var(--bc-press-lg); }
.bc-bar input, .bc-bar select {
	flex: 1.2 1 220px; min-width: 0; padding: 14px 18px; border: 0; border-radius: 10px; background: var(--bc-field);
	font: 400 1.0625rem var(--wp--preset--font-family--body); color: var(--bc-ink);
}
.bc-bar select { flex: 1 1 170px; }
.bc-bar input::placeholder { color: #5c6884; }
.bc-bar input:focus-visible, .bc-bar select:focus-visible { outline: 3px solid var(--bc-ink); outline-offset: 1px; }
.bc-bar button[type="submit"] { flex: 0 1 auto; padding: 12px 32px; border: 0; border-radius: 10px; box-shadow: none; }
.bc-bar__me { flex: 0 1 auto; padding: 10px 16px; border: 0; border-radius: 10px; background: var(--bc-tint); font: 700 1rem var(--bc-display); color: var(--bc-ink); cursor: pointer; }
.bc-finder__me { margin: 0; }
.bc-finder__me a { font: 700 1.0625rem var(--bc-display); }

.bc-pill { display: inline-block; margin: 0; padding: 8px 18px; border-radius: 999px; background: var(--bc-card); font: 700 0.9375rem var(--bc-display); }

/* ---------- Kind tiles ---------- */

.bc-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 28px 20px; padding-top: 10px; }
.bc-tile {
	position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; min-height: 230px; box-sizing: border-box;
	padding: 32px; border-radius: 20px; background: var(--k); color: var(--bc-ink); text-decoration: none; transition: transform .15s;
}
.bc-tile:hover { transform: translateY(-3px); color: var(--bc-ink); }
.bc-tile__n { margin-bottom: auto; padding-bottom: 24px; font: 900 4.5rem/1 var(--bc-display); letter-spacing: -0.03em; }
.bc-tile__name { font: 800 1.75rem/1.15 var(--bc-display); }
.bc-tile__about { font-size: 1.0625rem; line-height: 1.45; }
.bc-tile--all { background: none; border: 3px dashed var(--bc-dashed); }
.bc-tile--all:hover { border-color: var(--bc-ink); transform: none; }

/* ---------- Place cards ---------- */

.bc-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.bc-card {
	display: flex; flex-direction: column; overflow: hidden; background: var(--bc-card); border: 3px solid var(--bc-ink); border-radius: 20px;
	color: var(--bc-ink); text-decoration: none; transition: transform .15s, box-shadow .15s;
}
.bc-card:hover { color: var(--bc-ink); transform: translateY(-3px); box-shadow: var(--bc-press-lg); }
.bc-card[hidden] { display: none; }
.bc-card.is-closed { opacity: .6; }
.bc-card__photo { display: flex; align-items: center; justify-content: center; height: 190px; background: var(--ks); }
.bc-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.bc-card__body { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 18px 20px 22px; }
.bc-card__name { font: 800 1.375rem/1.15 var(--bc-display); }
.bc-card__where { font-size: 0.9375rem; font-weight: 600; }
.bc-card__text { flex: 1; font-size: 0.9375rem; line-height: 1.45; }
.bc-card__price { padding-top: 8px; border-top: 2px solid var(--bc-tint); font: 700 0.9375rem/1.35 var(--bc-display); }

/* Quiet cards: nearby places. */
.bc-minis { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.bc-mini {
	display: flex; flex-direction: column; gap: 8px; padding: 22px; background: var(--bc-card); border: 2px solid var(--bc-line); border-radius: 20px;
	color: var(--bc-ink); text-decoration: none;
}
.bc-mini:hover { border-color: var(--bc-ink); color: var(--bc-ink); }
.bc-mini .bc-tags { align-items: center; font: 700 0.8125rem var(--bc-display); }
.bc-mini__name { font: 800 1.375rem/1.15 var(--bc-display); }
.bc-mini__where { font-size: 0.9375rem; }

.bc-section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px 20px; margin-bottom: 28px; }
.bc-section-head h2 { margin: 0; }

/* ---------- Chips and filters ---------- */

.bc-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.bc-chip {
	display: inline-flex; align-items: center; gap: 8px; min-height: 44px; box-sizing: border-box; padding: 8px 16px;
	border: 2px solid var(--bc-line); border-radius: 999px; background: var(--bc-card); color: var(--bc-ink); font: 700 1rem var(--bc-display); cursor: pointer;
}
.bc-chip:hover { border-color: var(--bc-ink); }
.bc-chip i { width: 12px; height: 12px; border-radius: 3px; background: var(--k); }
.bc-chip[aria-pressed="true"] { background: var(--bc-ink); border-color: var(--bc-ink); color: #fff; }
.bc-chip--toggle[aria-pressed="true"] { background: var(--wp--preset--color--cafe-soft, #ffe6e1); color: var(--bc-ink); }
.bc-chip--toggle[aria-pressed="true"]::before { content: "✓"; }
.bc-chip__n { font-weight: 700; opacity: .7; }
.bc-chips__rule { width: 2px; height: 28px; margin: 0 6px; background: var(--bc-line); }
.bc-filter__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-bottom: 28px; }
.bc-filter__bar .bc-chips { flex: 1 1 auto; }
.bc-filter__showing { margin: 0 0 0 auto; font-size: 0.9375rem; font-weight: 500; }

.bc-countries { display: flex; flex-wrap: wrap; gap: 12px; }
.bc-countries a {
	display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border: 2px solid var(--bc-line); border-radius: 14px; background: var(--bc-card);
	color: var(--bc-ink); font: 700 1.125rem var(--bc-display); text-decoration: none;
}
.bc-countries a:hover { border-color: var(--bc-ink); color: var(--bc-ink); }
.bc-countries span { padding: 2px 8px; border-radius: 6px; background: var(--bc-tint); font-size: 0.9375rem; }

.bc-cities { margin-top: 56px; }
.bc-cities p { display: flex; flex-wrap: wrap; gap: 8px 18px; font: 700 1.0625rem var(--bc-display); }

/* ---------- Places page: results beside a sticky map ---------- */

.bc-search { display: flex; flex-direction: column; gap: 20px; }
.bc-results { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 520px), 1fr)); gap: 32px; align-items: start; margin-top: 8px; }
.bc-results__list { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.bc-results__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 16px; }
.bc-results__head h1 { margin: 0; font-size: clamp(2rem, 3.4vw, 2.75rem); letter-spacing: -0.025em; line-height: 1.05; }
.bc-results__status { margin: 0; font-size: 0.9375rem; }
.bc-results__map { position: sticky; top: 20px; height: min(760px, calc(100vh - 40px)); min-height: 420px; }
.bc-rows { display: flex; flex-direction: column; gap: 16px; margin: 0; padding: 0; list-style: none; }
.bc-result[hidden] { display: none; }
.bc-result a {
	display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 20px; padding: 16px; background: var(--bc-card);
	border: 2px solid var(--bc-line); border-radius: 20px; color: var(--bc-ink); text-decoration: none;
}
.bc-result a:hover { border-color: var(--bc-ink); color: var(--bc-ink); }
.bc-result__photo { display: flex; align-items: center; justify-content: center; height: 116px; overflow: hidden; border-radius: 12px; background: var(--ks); }
.bc-result__photo img { width: 100%; height: 100%; object-fit: cover; }
.bc-result__photo .bc-studs { grid-template-columns: repeat(2, 18px); gap: 8px; }
.bc-result__photo .bc-studs i { height: 18px; }
.bc-result__body { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding-top: 2px; }
.bc-result__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font: 700 0.8125rem var(--bc-display); }
.bc-result__num { padding: 2px 8px; border-radius: 6px; background: var(--k); }
.bc-result__num:empty { width: 12px; height: 12px; padding: 0; border-radius: 3px; }
.bc-result__dist:not(:empty) { opacity: .75; }
.bc-result__dist:not(:empty)::before { content: "· "; }
.bc-result__name { font: 800 1.375rem/1.15 var(--bc-display); }
.bc-result__text { font-size: 0.9375rem; line-height: 1.45; }
.bc-result__price { font: 700 0.9375rem var(--bc-display); }
.bc-more { align-self: center; padding: 12px 22px; border: 0; border-radius: 12px; background: var(--bc-tint); font: 700 1rem var(--bc-display); color: var(--bc-ink); cursor: pointer; }
.bc-nudge { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 24px; border-radius: 20px; background: var(--bc-tint); }
.bc-nudge p { margin: 0; }

/* ---------- Maps ---------- */

.bc-map { position: relative; z-index: 0; overflow: hidden; border: 3px solid var(--bc-ink); border-radius: 24px; background: var(--bc-tint); }
.bc-map--search { height: 100%; }
.bc-map--place { height: 360px; }
.bc-map--world { position: absolute; inset: 0; border: 0; border-radius: 0; }
.bc-map--large { height: 460px; }
/* OpenStreetMap tiles are busy; quieten them so the pins lead. */
.bc-map .leaflet-tile-pane { filter: saturate(0.5) brightness(1.03); }
.bc-map .leaflet-control-zoom { border: 3px solid var(--bc-ink); border-radius: 12px; overflow: hidden; }
.bc-map .leaflet-control-zoom a { color: var(--bc-ink); font-family: var(--bc-display); }
.bc-map .leaflet-popup-content-wrapper { border: 3px solid var(--bc-ink); border-radius: 14px; box-shadow: var(--bc-press); font: 1rem var(--wp--preset--font-family--body); }
.bc-map .leaflet-popup-tip { background: var(--bc-ink); }
.bc-map .leaflet-popup-content a { color: var(--bc-ink); }

.bc-pin { position: relative; }
.bc-pin__brick {
	position: absolute; top: 6px; left: 0; display: flex; align-items: center; justify-content: center; box-sizing: border-box;
	background: var(--k); border: 2.5px solid var(--bc-ink); border-radius: 7px; font: 800 14px/1 var(--bc-display); color: var(--bc-ink);
}
.bc-pin--big .bc-pin__brick { font-size: 17px; }
.bc-pin__brick::before, .bc-pin__brick::after {
	content: ""; position: absolute; top: -8.5px; width: 9px; height: 6px; background: var(--k); border: 2.5px solid var(--bc-ink); border-bottom: 0; border-radius: 4px 4px 0 0;
}
.bc-pin__brick::before { left: 15%; }
.bc-pin__brick::after { right: 15%; }
.bc-pin::after {
	content: ""; position: absolute; bottom: 0; left: 50%; margin-left: -6px; border: 6px solid transparent; border-top: 8px solid var(--bc-ink); border-bottom: 0;
}
.bc-pin.is-closed { opacity: .45; }
.bc-cluster { display: flex !important; align-items: center; justify-content: center; }
.bc-cluster span {
	display: flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; box-sizing: border-box; padding: 0 8px;
	border: 3px solid #fff; border-radius: 12px; background: var(--bc-ink); color: #fff; font: 800 15px var(--bc-display); box-shadow: 0 3px 0 rgba(0, 0, 0, .18);
	transform: translate(-50%, -50%);
}

/* ---------- The place page ---------- */

.bc-place { display: flex; flex-direction: column; gap: 28px; }
.bc-place__head { display: flex; flex-direction: column; gap: 16px; }
.bc-place__title { margin: 0; font-size: clamp(2.75rem, 6vw, 5rem); }
.bc-place__where { margin: 0; font-size: 1.25rem; }

.bc-gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 200px 200px; gap: 12px; }
.bc-gallery__photo { margin: 0; overflow: hidden; border-radius: 20px; }
.bc-gallery__photo:first-child { grid-row: span 2; border-radius: 24px; }
.bc-gallery__photo img { width: 100%; height: 100%; object-fit: cover; }
.bc-gallery--1 .bc-gallery__more { grid-column: span 2; grid-row: span 2; }
.bc-gallery--2 .bc-gallery__more { grid-column: 3; grid-row: span 2; }
.bc-gallery--3 .bc-gallery__more { display: none; }
.bc-gallery__more {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; border-radius: 20px; background: var(--ks);
}
.bc-gallery__more p { margin: 0; font-size: 0.9375rem; }
.bc-gallery__more .bc-studs { grid-template-columns: repeat(4, 18px); gap: 7px; }
.bc-gallery__more .bc-studs i { height: 18px; background: var(--k); }
.bc-gallery__title { font: 800 1.125rem var(--bc-display) !important; }
.bc-gallery--none {
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; height: 260px; padding: 20px;
	border-radius: 24px; background: var(--ks); text-align: center;
}
.bc-gallery--none .bc-studs { grid-template-columns: repeat(4, 22px); gap: 8px; margin-bottom: 4px; }
.bc-gallery--none .bc-studs i { height: 22px; background: var(--k); }
.bc-gallery--none p { margin: 0; font-size: 0.9375rem; }

.bc-place__body { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 56px; padding-top: 20px; }
.bc-place__main { display: flex; flex-direction: column; gap: 48px; flex: 2 1 560px; min-width: 0; }
.bc-place__main section > p { margin: 0; }
.bc-place__summary { margin: 0; font-size: clamp(1.25rem, 2vw, 1.5rem); line-height: 1.45; text-wrap: pretty; }
.bc-place__note { margin: -32px 0 0; font-size: 1.125rem; line-height: 1.55; }
.bc-place__addr { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; margin: 18px 0 0 !important; font-size: 1.0625rem; }
.bc-place__side { display: flex; flex-direction: column; gap: 20px; flex: 1 1 320px; max-width: 440px; position: sticky; top: 24px; }

.bc-sidecard {
	position: relative; display: flex; flex-direction: column; gap: 22px; margin-top: 10px; padding: 28px;
	background: var(--bc-card); border: 3px solid var(--bc-ink); border-radius: 24px; box-shadow: var(--bc-press-lg);
}
.bc-price p { margin: 0; }
.bc-price__label { font: 700 0.875rem var(--bc-display); }
.bc-price__big { margin-top: 6px !important; font: 900 2rem/1.05 var(--bc-display); letter-spacing: -0.02em; }
.bc-price__unit { margin-top: 6px !important; font-size: 1rem; }
.bc-price__unit--whole { font: 700 1.25rem/1.3 var(--bc-display); }
.bc-primary { display: flex; flex-direction: column; gap: 12px; }
.bc-primary .bc-btn { padding: 16px 20px; font-size: 1.1875rem; }
.bc-primary p { margin: 0; font-size: 0.8125rem; text-align: center; }
.bc-quiet { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bc-quiet a {
	padding: 12px; border-radius: 12px; background: var(--bc-tint); color: var(--bc-ink); font: 700 1rem var(--bc-display); text-align: center; text-decoration: none;
}
.bc-quiet a:hover { background: var(--bc-line); color: var(--bc-ink); }
.bc-facts { display: flex; flex-direction: column; gap: 12px; margin: 0; padding-top: 18px; border-top: 2px solid var(--bc-soft-rule); font-size: 1rem; }
.bc-facts div { display: grid; grid-template-columns: 76px 1fr; gap: 10px; }
.bc-facts dt { font: 700 1rem var(--bc-display); }
.bc-facts dd { margin: 0; }
.bc-place__checked { padding: 0 6px; font-size: 0.875rem; line-height: 1.5; }
.bc-place__checked p { margin: 0 0 8px; }
.bc-place__links { display: flex; flex-wrap: wrap; gap: 6px 16px; font-weight: 600; }

.bc-bookbar { display: none; }

.bc-tips { display: flex; flex-direction: column; gap: 14px; margin: 0; padding: 0; list-style: none; font-size: 1.125rem; line-height: 1.5; }
.bc-tips li { position: relative; padding-left: 28px; }
.bc-tips li::before { content: ""; position: absolute; left: 0; top: 6px; width: 14px; height: 14px; border-radius: 4px; background: var(--k); }
.bc-tips--mixed li:nth-child(4n+1)::before { background: #f68675; }
.bc-tips--mixed li:nth-child(4n+2)::before { background: #ebbd57; }
.bc-tips--mixed li:nth-child(4n+3)::before { background: #8ed09c; }
.bc-tips--mixed li:nth-child(4n+4)::before { background: #9ed3f2; }

.bc-notice { margin: 0; padding: 14px 18px; border-radius: 14px; background: var(--wp--preset--color--party-soft, #f9edd5); border: 2px solid var(--wp--preset--color--accent, #ebbd57); }
.bc-notice--closed { background: var(--bc-ink); border-color: var(--bc-ink); color: #fff; }
.bc-notice--ok { background: var(--wp--preset--color--room-soft, #dff6e2); border-color: var(--wp--preset--color--room, #8ed09c); }

.bc-offer { padding: 18px 20px; border-radius: 20px; background: var(--wp--preset--color--party-soft, #f9edd5); }
.bc-offer p { margin: 0; }

.bc-nearby { margin-top: clamp(64px, 8vw, 104px); }

/* ---------- Area and type pages ---------- */

.bc-hero {
	position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); gap: 32px; align-items: end;
	margin-top: 14px; padding: clamp(40px, 6vw, 72px) clamp(24px, 5vw, 64px); border-radius: 32px; background: var(--k);
}
.bc-hero__text { display: flex; flex-direction: column; gap: 18px; }
.bc-hero h1 { margin: 0; font-size: clamp(2.75rem, 6vw, 5.5rem); text-wrap: balance; }
.bc-hero__line { margin: 0; max-width: 560px; font-size: clamp(1.125rem, 1.7vw, 1.375rem); line-height: 1.45; }
.bc-hero__stats { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 40px; }
.bc-hero__stat { display: flex; flex-direction: column; margin: 0; font: 700 1rem var(--bc-display); }
.bc-hero__stat strong { font-size: 4rem; font-weight: 900; line-height: 1; letter-spacing: -0.03em; }

.bc-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 0.9375rem; }

.bc-guide { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 56px; margin-top: clamp(64px, 8vw, 104px); }
.bc-guide__text { display: flex; flex-direction: column; gap: 20px; }
.bc-guide__text h2, .bc-guide__text p { margin: 0; }
.bc-guide__text p { font-size: 1.125rem; }
.bc-panel { padding: clamp(28px, 4vw, 44px); border-radius: 28px; }
.bc-panel--ink { background: var(--bc-ink); color: #fff; }
.bc-panel--ink .bc-h { font-size: 1.75rem; margin-bottom: 22px; }

/* ---------- Articles ---------- */

.bc-articles--index { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); gap: 24px; }
.bc-acard {
	display: flex; flex-direction: column; overflow: hidden; background: var(--bc-card); border: 3px solid var(--bc-ink); border-radius: 24px;
	color: var(--bc-ink); text-decoration: none; transition: box-shadow .15s;
}
.bc-acard:hover { box-shadow: var(--bc-press-lg); color: var(--bc-ink); }
.bc-acard__photo { display: flex; align-items: center; justify-content: center; height: 240px; background: var(--ks); }
.bc-acard__photo img { width: 100%; height: 100%; object-fit: cover; }
.bc-acard__body { display: flex; flex-direction: column; gap: 14px; padding: 28px; }
.bc-acard__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font: 700 0.875rem var(--bc-display); }
.bc-acard__title { font: 800 1.875rem/1.1 var(--bc-display); letter-spacing: -0.02em; }
.bc-acard__text { font-size: 1.0625rem; line-height: 1.5; }
.bc-acard--featured { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); border-radius: 28px; }
.bc-acard--featured .bc-acard__photo { height: auto; min-height: 380px; }
.bc-acard--featured .bc-acard__body { justify-content: center; gap: 18px; padding: clamp(28px, 4vw, 48px); }
.bc-acard--featured .bc-acard__title { font-size: clamp(2.125rem, 3.8vw, 3.25rem); font-weight: 900; letter-spacing: -0.025em; line-height: 1; }
.bc-acard--featured .bc-acard__text { font-size: 1.1875rem; }

.bc-articles--tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 24px; }
.bc-atile {
	display: flex; flex-direction: column; gap: 12px; min-height: 200px; box-sizing: border-box; padding: 28px; border-radius: 20px; background: var(--ks);
	color: var(--bc-ink); text-decoration: none;
}
.bc-atile:hover { background: var(--kd); color: var(--bc-ink); }
.bc-atile__topic { font: 700 0.875rem var(--bc-display); }
.bc-atile__title { font: 800 1.625rem/1.15 var(--bc-display); }
.bc-atile__text { font-size: 1rem; line-height: 1.5; }

.bc-ahead { display: flex; flex-direction: column; gap: 22px; }
.bc-ahead .bc-crumbs { font: 700 0.9375rem var(--bc-display); }
.bc-ahead h1 { margin: 0; font-size: clamp(3rem, 7vw, 5.75rem); text-wrap: balance; }
.bc-ahead__lead { margin: 0; font-size: clamp(1.25rem, 2vw, 1.5rem); line-height: 1.45; text-wrap: pretty; }
.bc-ahead__date { margin: 0; font-size: 0.9375rem; }

/* Article body parts, set by class on core blocks in the article content. */
.bc-steps { display: flex; flex-direction: column; gap: 14px; margin: 0; padding: 0; list-style: none; counter-reset: bc-step; }
.bc-steps li {
	position: relative; min-height: 52px; padding: 20px 20px 20px 90px; background: var(--bc-card); border: 2px solid var(--bc-line); border-radius: 20px;
	font-size: 1.125rem; line-height: 1.55; counter-increment: bc-step;
}
.bc-steps li::before {
	content: counter(bc-step); position: absolute; left: 20px; top: 20px; display: flex; align-items: center; justify-content: center;
	width: 52px; height: 52px; border-radius: 12px; background: #f68675; font: 900 1.5rem var(--bc-display);
}
.bc-steps li:nth-child(4n+2)::before { background: #ebbd57; }
.bc-steps li:nth-child(4n+3)::before { background: #8ed09c; }
.bc-steps li:nth-child(4n+4)::before { background: #9ed3f2; }
.bc-steps strong { font-family: var(--bc-display); }
.wp-block-table.bc-price-table { overflow: hidden; border: 3px solid var(--bc-ink); border-radius: 20px; background: var(--bc-card); font-size: 1.0625rem; }
.bc-price-table table { width: 100%; border-collapse: collapse; }
.bc-price-table th, .bc-price-table td { padding: 14px 20px; border: 0; border-top: 1px solid var(--bc-soft-rule); text-align: left; }
.bc-price-table thead { border: 0; }
.bc-price-table th { border-top: 0; background: var(--wp--preset--color--cafe-soft, #ffe6e1); font: 700 0.9375rem var(--bc-display); }
.bc-price-table td:last-child, .bc-price-table th:last-child { text-align: right; }
.bc-price-table td:last-child { font: 700 1.0625rem var(--bc-display); white-space: nowrap; }
.bc-kind-links { display: flex; flex-wrap: wrap; gap: 10px; }
.bc-kind-links a { padding: 10px 16px; border-radius: 12px; background: var(--k); color: var(--bc-ink); font: 700 1rem var(--bc-display); text-decoration: none; }
.bc-kind-links a:hover { color: var(--bc-ink); box-shadow: var(--bc-press); }

/* ---------- BrickSorter card: ours, after the listing, quieter than it ---------- */

.bc-bs {
	display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: center; box-sizing: border-box; margin-top: clamp(56px, 7vw, 80px);
	padding: clamp(24px, 4vw, 40px); border-radius: 24px; background: var(--wp--preset--color--party-soft, #f9edd5);
}
.bc-bs__text { display: flex; flex-direction: column; gap: 10px; max-width: 680px; font-size: 1.0625rem; line-height: 1.55; }
.bc-bs__text p { margin: 0; }
.bc-bs__title { font: 800 1.625rem var(--bc-display); }
.bc-bs__ours { font-size: 0.875rem; }
.bc-bs__phone { width: 150px; height: 190px; overflow: hidden; box-sizing: border-box; border: 3px solid var(--bc-ink); border-radius: 22px; background: #fff; }
.bc-bs__phone img { display: block; width: 100%; height: auto; margin-top: -8%; }
.bc-bs-line { margin: 0; }

/* ---------- The form ---------- */

.bc-form { display: flex; flex-direction: column; gap: 4px; }
.bc-form fieldset { margin: 0 0 12px; padding: 18px 20px; border: 2px solid var(--bc-line); border-radius: 16px; background: var(--bc-card); }
.bc-form legend { padding: 0 6px; font: 800 1.125rem var(--bc-display); }
.bc-form fieldset label { display: block; padding: 6px 0; }
.bc-form p > label { display: block; margin-bottom: 6px; font: 700 1rem var(--bc-display); }
.bc-form input[type="text"], .bc-form input[type="url"], .bc-form input[type="email"], .bc-form textarea {
	width: 100%; box-sizing: border-box; padding: 14px 16px; border: 2px solid var(--bc-line); border-radius: 12px; background: var(--bc-card);
	font: 1.0625rem var(--wp--preset--font-family--body); color: var(--bc-ink);
}
.bc-form input:focus-visible, .bc-form textarea:focus-visible { outline: 3px solid var(--bc-ink); outline-offset: 0; border-color: var(--bc-ink); }
.bc-form button[type="submit"] { box-shadow: var(--bc-press); }
.bc-hp { position: absolute; left: -9999px; }

/* ---------- Phones ---------- */

@media (max-width: 781px) {
	.bc-place__side { position: static; max-width: none; order: -1; }
	.bc-place__body { gap: 40px; padding-top: 0; }
	.bc-gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 220px 120px; margin-inline: calc(-1 * clamp(20px, 4vw, 56px)); }
	.bc-gallery__photo, .bc-gallery__photo:first-child { border-radius: 0; }
	.bc-gallery__photo:first-child { grid-column: span 2; grid-row: auto; }
	.bc-gallery--1 .bc-gallery__more, .bc-gallery--2 .bc-gallery__more { grid-column: span 2; grid-row: auto; border-radius: 0; }
	.bc-gallery--2 .bc-gallery__more { grid-column: auto; }
	.bc-gallery--none { margin-inline: 0; height: 200px; }
	.bc-map--place { height: 220px; }
	.bc-chips { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(-1 * clamp(20px, 4vw, 56px)); padding-inline: clamp(20px, 4vw, 56px); scrollbar-width: none; }
	.bc-chip { flex: none; }
	.bc-results__map { position: relative; top: 0; height: 440px; min-height: 0; order: -1; margin-inline: calc(-1 * clamp(20px, 4vw, 56px)); }
	.bc-results__map .bc-map { border-radius: 0; border-width: 3px 0; }
	.bc-result a { grid-template-columns: 96px minmax(0, 1fr); gap: 14px; padding: 12px; }
	.bc-result__photo { height: 96px; }
	.bc-cards--scroll { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 16px; padding: 4px 4px 12px; margin-inline: -4px; }
	.bc-cards--scroll .bc-card { flex: 0 0 78%; scroll-snap-align: start; }
	.bc-cards--scroll .bc-card:hover { transform: none; box-shadow: none; }
	.bc-tiles { grid-template-columns: 1fr 1fr; gap: 22px 12px; }
	.bc-tile { min-height: 150px; padding: 18px 16px; }
	.bc-tile:first-child { grid-column: span 2; flex-direction: row; align-items: center; min-height: 0; }
	.bc-tile:first-child .bc-tile__n { order: 2; margin: 0 0 0 auto; padding: 0; font-size: 2.5rem; }
	.bc-tile:first-child .bc-tile__about { display: none; }
	.bc-tile__n { padding-bottom: 12px; font-size: 2.5rem; }
	.bc-tile__name { font-size: 1.125rem; }
	.bc-tile__about { font-size: 0.875rem; }
	.bc-tile--all { grid-column: span 2; min-height: 0; }
	.bc-tile > .bc-studs { left: 16px; gap: 12px; }
	.bc-tile > .bc-studs i { width: 28px; height: 10px; }
	.bc-hero > .bc-studs { left: 24px; gap: 14px; top: -12px; }
	.bc-hero > .bc-studs i { width: 44px; height: 13px; }
	.bc-hero__stats { justify-content: flex-start; }
	.bc-hero__stat strong { font-size: 3rem; }
	.bc-bs { grid-template-columns: 1fr; }
	.bc-bs__phone { width: 120px; height: 150px; }
	.has-bookbar { padding-bottom: 96px; }
	.bc-bookbar {
		position: fixed; z-index: 1000; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px;
		padding: 12px clamp(16px, 4vw, 24px) calc(12px + env(safe-area-inset-bottom)); background: var(--bc-card); border-top: 3px solid var(--bc-ink);
	}
	.bc-bookbar p { margin: 0; min-width: 0; font-size: 0.8125rem; line-height: 1.25; }
	.bc-bookbar strong { display: block; font: 900 1.25rem var(--bc-display); }
	.bc-bookbar .bc-btn { flex: none; padding: 12px 18px; font-size: 1rem; }
}
