/* ==========================================================================
   Birthday Party Crafts — folha de estilo principal
   Sistema de design: tokens, tipografia, componentes, layouts, utilitários.
   Sem dependências externas. Sem fontes remotas. Mobile-first.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */

:root {
	/* Colors: warm cream paper, plum ink, party-pink accent */
	--bpc-paper: #fffaf3;
	--bpc-paper-deep: #fff0dc;
	--bpc-surface: #ffffff;
	--bpc-ink: #2a1f4e;
	--bpc-ink-soft: #4c4470;
	--bpc-ink-muted: #675f88;
	--bpc-line: #f0e4d3;
	--bpc-line-strong: #e2d1b9;
	--bpc-accent: #c41c5f;
	--bpc-accent-hover: #8f0f43;
	--bpc-accent-soft: #ffe4ed;
	--bpc-second: #0b7f7a;
	--bpc-second-soft: #dcf6f3;
	--bpc-focus: #5a3fd0;

	/* Tipografia — pilhas do sistema, nenhum download */
	--bpc-font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
	--bpc-font-head: ui-rounded, "Hiragino Maru Gothic ProN", "Quicksand", "Nunito", "Arial Rounded MT Bold", "Trebuchet MS", "Segoe UI", system-ui, sans-serif;
	--bpc-font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

	--bpc-text-xs: 0.78rem;
	--bpc-text-sm: 0.875rem;
	--bpc-text-base: 1rem;
	--bpc-text-md: 1.0625rem;
	--bpc-text-lg: 1.1875rem;
	--bpc-text-xl: 1.375rem;
	--bpc-text-2xl: 1.625rem;
	--bpc-text-3xl: 2rem;
	--bpc-text-4xl: 2.5rem;

	--bpc-leading-tight: 1.2;
	--bpc-leading-snug: 1.35;
	--bpc-leading-normal: 1.65;
	--bpc-leading-relaxed: 1.75;

	/* Espaçamento — escala de 4px */
	--bpc-s1: 0.25rem;
	--bpc-s2: 0.5rem;
	--bpc-s3: 0.75rem;
	--bpc-s4: 1rem;
	--bpc-s5: 1.5rem;
	--bpc-s6: 2rem;
	--bpc-s7: 2.5rem;
	--bpc-s8: 3rem;
	--bpc-s9: 4rem;
	--bpc-s10: 5rem;

	/* Formas e sombras */
	--bpc-radius-sm: 8px;
	--bpc-radius: 12px;
	--bpc-radius-lg: 18px;
	--bpc-shadow-sm: 0 1px 2px rgba(42, 31, 78, 0.06);
	--bpc-shadow: 0 10px 24px -14px rgba(42, 31, 78, 0.35);
	--bpc-shadow-lg: 0 18px 40px -18px rgba(42, 31, 78, 0.4);

	/* Layout */
	--bpc-container: 1180px;
	--bpc-container-narrow: 760px;
	--bpc-measure: 68ch;
	--bpc-gutter: var(--bpc-s4);

	/* Paper palette: decorative fills only; text uses --bpc-accent / --bpc-second for contrast */
	--bpc-pink: #f0437f;
	--bpc-teal: #17b8b0;
	--bpc-sunshine: #ffc93c;
	--bpc-violet: #7b5cf0;
	--bpc-orange: #ff8a3d;
	--bpc-green: #6cc24a;
	--bpc-kraft: #c9a47a;
	--bpc-butter: #ffe9a8;
	--bpc-aqua: #bfeeea;
	/* names kept for older rules */
	--bpc-cobalt: #7b5cf0;
	--bpc-poppy: #f0437f;
	--bpc-mint: #17b8b0;

	color-scheme: light;
}

@media (min-width: 48em) {
	:root {
		--bpc-gutter: var(--bpc-s6);
	}
}

/* --------------------------------------------------------------------------
   2. Reset moderado
   -------------------------------------------------------------------------- */

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: 5.5rem;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}

body {
	margin: 0;
	background-color: var(--bpc-paper);
	color: var(--bpc-ink);
	font-family: var(--bpc-font-body);
	font-size: var(--bpc-text-md);
	line-height: var(--bpc-leading-normal);
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

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

img {
	display: block;
}

figure {
	margin: 0;
}

hr {
	border: 0;
	border-top: 1px solid var(--bpc-line);
	margin: var(--bpc-s7) 0;
}

/* --------------------------------------------------------------------------
   3. Tipografia
   -------------------------------------------------------------------------- */

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: var(--bpc-font-head);
	color: var(--bpc-ink);
	line-height: var(--bpc-leading-tight);
	margin: 0 0 var(--bpc-s4);
	font-weight: 600;
	letter-spacing: -0.01em;
	overflow-wrap: break-word;
}

h1 {
	font-size: clamp(1.875rem, 1.35rem + 2.2vw, var(--bpc-text-4xl));
}

h2 {
	font-size: clamp(1.5rem, 1.2rem + 1.3vw, var(--bpc-text-3xl));
}

h3 {
	font-size: clamp(1.25rem, 1.1rem + 0.7vw, var(--bpc-text-xl));
}

h4 {
	font-size: var(--bpc-text-lg);
}

h5,
h6 {
	font-size: var(--bpc-text-base);
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: var(--bpc-ink-soft);
}

p {
	margin: 0 0 var(--bpc-s4);
}

a {
	color: var(--bpc-accent);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
}

a:hover,
a:focus {
	color: var(--bpc-accent-hover);
}

strong,
b {
	font-weight: 650;
}

small {
	font-size: var(--bpc-text-sm);
}

code,
kbd,
samp {
	font-family: var(--bpc-font-mono);
	font-size: 0.9em;
	background: var(--bpc-paper-deep);
	border: 1px solid var(--bpc-line);
	border-radius: var(--bpc-radius-sm);
	padding: 0.1em 0.35em;
}

pre {
	font-family: var(--bpc-font-mono);
	font-size: var(--bpc-text-sm);
	background: var(--bpc-paper-deep);
	border: 1px solid var(--bpc-line);
	border-radius: var(--bpc-radius);
	padding: var(--bpc-s4);
	overflow-x: auto;
	line-height: 1.5;
}

pre code {
	background: none;
	border: 0;
	padding: 0;
}

blockquote {
	margin: var(--bpc-s6) 0;
	padding: var(--bpc-s2) 0 var(--bpc-s2) var(--bpc-s5);
	border-left: 3px solid var(--bpc-accent);
	font-family: var(--bpc-font-head);
	font-size: var(--bpc-text-lg);
	color: var(--bpc-ink-soft);
}

blockquote p:last-child {
	margin-bottom: 0;
}

blockquote cite {
	display: block;
	margin-top: var(--bpc-s2);
	font-family: var(--bpc-font-body);
	font-size: var(--bpc-text-sm);
	font-style: normal;
	color: var(--bpc-ink-muted);
}

/* --------------------------------------------------------------------------
   4. Acessibilidade
   -------------------------------------------------------------------------- */

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 3px solid var(--bpc-focus);
	outline-offset: 2px;
	border-radius: 2px;
}

.screen-reader-text {
	border: 0;
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background-color: var(--bpc-surface);
	border-radius: var(--bpc-radius-sm);
	box-shadow: var(--bpc-shadow);
	clip-path: none;
	color: var(--bpc-accent);
	display: block;
	font-size: var(--bpc-text-sm);
	font-weight: 600;
	height: auto;
	left: var(--bpc-s4);
	line-height: normal;
	padding: var(--bpc-s3) var(--bpc-s4);
	text-decoration: none;
	top: var(--bpc-s4);
	width: auto;
	z-index: 100000;
}

.bpc-skip-link:focus {
	position: fixed;
}

/* --------------------------------------------------------------------------
   5. Layout
   -------------------------------------------------------------------------- */

.bpc-container {
	width: 100%;
	max-width: var(--bpc-container);
	margin-inline: auto;
	padding-inline: var(--bpc-gutter);
}

.bpc-container--narrow {
	max-width: var(--bpc-container-narrow);
}

.bpc-site-main {
	flex: 1 0 auto;
	padding-block: var(--bpc-s7) var(--bpc-s9);
}

/* Usado na home, onde o herói encosta no cabeçalho. */
.bpc-site-main--flush {
	padding-top: 0;
}

.bpc-layout {
	display: grid;
	gap: var(--bpc-s7);
}

@media (min-width: 62em) {
	.bpc-layout--with-sidebar {
		grid-template-columns: minmax(0, 1fr) 20rem;
		gap: var(--bpc-s8);
		align-items: start;
	}
}

.bpc-stack > * + * {
	margin-top: var(--bpc-s4);
}

.bpc-section {
	margin-block: var(--bpc-s9);
}

.bpc-section:first-child {
	margin-top: 0;
}

.bpc-section__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: var(--bpc-s3);
	margin-bottom: var(--bpc-s5);
	padding-bottom: var(--bpc-s3);
	border-bottom: 1px solid var(--bpc-line);
}

.bpc-section__title {
	margin: 0;
	font-size: var(--bpc-text-2xl);
}

.bpc-section__description {
	flex-basis: 100%;
	margin: 0;
	color: var(--bpc-ink-soft);
	font-size: var(--bpc-text-base);
	max-width: var(--bpc-measure);
}

.bpc-section__link {
	font-family: var(--bpc-font-body);
	font-size: var(--bpc-text-sm);
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}

.bpc-section__link:hover {
	text-decoration: underline;
}

.bpc-section__link::after {
	content: " →";
}

/* --------------------------------------------------------------------------
   6. Cabeçalho e navegação
   -------------------------------------------------------------------------- */

.bpc-site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--bpc-surface);
	border-bottom: 1px solid var(--bpc-line);
}

.bpc-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--bpc-s4);
	min-height: 4.25rem;
}

.bpc-branding {
	display: flex;
	align-items: center;
	gap: var(--bpc-s3);
	min-width: 0;
}

.bpc-branding__mark {
	flex: 0 0 auto;
	width: 2.25rem;
	height: 2.25rem;
}

.bpc-branding__text {
	min-width: 0;
}

.bpc-branding__title {
	font-family: var(--bpc-font-head);
	font-size: var(--bpc-text-xl);
	font-weight: 600;
	line-height: 1.1;
	margin: 0;
	letter-spacing: -0.015em;
}

.bpc-branding__title a {
	color: var(--bpc-ink);
	text-decoration: none;
}

.bpc-branding__title a:hover {
	color: var(--bpc-accent);
}

.bpc-branding__tagline {
	margin: 0.15rem 0 0;
	font-size: var(--bpc-text-xs);
	color: var(--bpc-ink-muted);
	line-height: 1.3;
}

.bpc-custom-logo-link img {
	max-height: 3rem;
	width: auto;
}

/* Botão do menu móvel */
.bpc-menu-toggle {
	display: inline-flex;
	align-items: center;
	gap: var(--bpc-s2);
	background: var(--bpc-surface);
	border: 1px solid var(--bpc-line-strong);
	border-radius: var(--bpc-radius-sm);
	color: var(--bpc-ink);
	cursor: pointer;
	font: inherit;
	font-size: var(--bpc-text-sm);
	font-weight: 600;
	padding: var(--bpc-s2) var(--bpc-s3);
}

.bpc-menu-toggle:hover {
	border-color: var(--bpc-accent);
	color: var(--bpc-accent);
}

.bpc-menu-toggle__bars {
	display: block;
	position: relative;
	width: 1.125rem;
	height: 2px;
	background: currentColor;
}

.bpc-menu-toggle__bars::before,
.bpc-menu-toggle__bars::after {
	content: "";
	position: absolute;
	left: 0;
	width: 100%;
	height: 2px;
	background: currentColor;
}

.bpc-menu-toggle__bars::before {
	top: -6px;
}

.bpc-menu-toggle__bars::after {
	top: 6px;
}

.bpc-header__panel {
	display: none;
	padding-bottom: var(--bpc-s5);
}

.bpc-header__panel.is-open {
	display: block;
}

.bpc-nav__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.bpc-nav__list li {
	position: relative;
}

.bpc-nav__list a {
	display: block;
	padding: var(--bpc-s3) 0;
	border-bottom: 1px solid var(--bpc-line);
	color: var(--bpc-ink);
	font-size: var(--bpc-text-base);
	font-weight: 550;
	text-decoration: none;
}

.bpc-nav__list a:hover {
	color: var(--bpc-accent);
}

.bpc-nav .current-menu-item > a,
.bpc-nav .current-menu-ancestor > a,
.bpc-nav .current_page_item > a {
	color: var(--bpc-accent);
}

.bpc-header__search {
	margin-top: var(--bpc-s4);
}

/* Aviso exibido apenas para quem pode editar menus, quando nenhum menu foi
   atribuído à posição principal. O visitante nunca vê este bloco. */
.bpc-nav--empty {
	margin: 0;
	padding: var(--bpc-s3) 0;
	font-size: var(--bpc-text-sm);
}

@media (min-width: 62em) {
	.bpc-menu-toggle {
		display: none;
	}

	/* Cabeçalho em uma única linha: marca à esquerda, navegação e busca à
	   direita. Mantém a barra fixa baixa e previsível durante a leitura.
	   `flex-wrap` é o escape: quando o menu cresce e a linha única deixa de
	   caber, o painel desce para uma segunda linha em vez de estourar a
	   largura da página. */
	.bpc-site-header .bpc-container {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		gap: 0 var(--bpc-s6);
	}

	.bpc-header__inner {
		flex: 0 0 auto;
		min-height: 4.5rem;
	}

	.bpc-header__panel {
		display: flex !important;
		flex: 1 1 auto;
		flex-wrap: wrap;
		min-width: 0;
		align-items: center;
		justify-content: flex-end;
		gap: var(--bpc-s3) var(--bpc-s5);
		padding-bottom: var(--bpc-s3);
	}

	.bpc-nav__list {
		flex-wrap: wrap;
	}

	.bpc-nav__list {
		display: flex;
		align-items: center;
		gap: var(--bpc-s1);
	}

	.bpc-nav__list a {
		border-bottom: 0;
		border-radius: var(--bpc-radius-sm);
		padding: var(--bpc-s2) var(--bpc-s3);
		font-size: var(--bpc-text-sm);
		white-space: nowrap;
	}

	.bpc-nav__list a:hover {
		background: var(--bpc-accent-soft);
	}

	.bpc-nav .current-menu-item > a,
	.bpc-nav .current-menu-ancestor > a {
		background: var(--bpc-accent-soft);
	}

	/* Submenus (um nível) */
	.bpc-nav__list .sub-menu {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		min-width: 13rem;
		background: var(--bpc-surface);
		border: 1px solid var(--bpc-line);
		border-radius: var(--bpc-radius);
		box-shadow: var(--bpc-shadow-lg);
		list-style: none;
		margin: 0;
		padding: var(--bpc-s2);
		z-index: 60;
	}

	.bpc-nav__list li:hover > .sub-menu,
	.bpc-nav__list li:focus-within > .sub-menu {
		display: block;
	}

	.bpc-nav__list .sub-menu a {
		white-space: normal;
	}

	.bpc-header__search {
		margin-top: 0;
		flex: 0 1 13.5rem;
		min-width: 9rem;
	}
}

/* --------------------------------------------------------------------------
   7. Formulários
   -------------------------------------------------------------------------- */

label {
	display: block;
	font-size: var(--bpc-text-sm);
	font-weight: 600;
	margin-bottom: var(--bpc-s2);
}

.bpc-field {
	margin-bottom: var(--bpc-s5);
}

.bpc-field__hint {
	display: block;
	margin-top: var(--bpc-s2);
	font-size: var(--bpc-text-xs);
	font-weight: 400;
	color: var(--bpc-ink-muted);
}

.bpc-required {
	color: var(--bpc-accent);
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="search"],
input[type="tel"],
input[type="number"],
input[type="password"],
select,
textarea {
	width: 100%;
	background: var(--bpc-surface);
	border: 1px solid var(--bpc-line-strong);
	border-radius: var(--bpc-radius-sm);
	color: var(--bpc-ink);
	font: inherit;
	font-size: var(--bpc-text-base);
	padding: var(--bpc-s3);
}

input:focus,
select:focus,
textarea:focus {
	border-color: var(--bpc-focus);
}

textarea {
	min-height: 11rem;
	resize: vertical;
	line-height: var(--bpc-leading-normal);
}

input::placeholder,
textarea::placeholder {
	color: var(--bpc-ink-muted);
	opacity: 1;
}

/* Campo de busca */
.bpc-search-form {
	display: flex;
	gap: var(--bpc-s2);
}

.bpc-search-form__field {
	flex: 1 1 auto;
	min-width: 0;
}

.bpc-search-form input[type="search"] {
	padding-block: var(--bpc-s2);
}

.bpc-search-form__submit {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--bpc-paper-deep);
	border: 1px solid var(--bpc-line-strong);
	border-radius: var(--bpc-radius-sm);
	color: var(--bpc-ink);
	cursor: pointer;
	padding-inline: var(--bpc-s3);
}

.bpc-search-form__submit:hover {
	background: var(--bpc-accent-soft);
	border-color: var(--bpc-accent);
	color: var(--bpc-accent);
}

/* --------------------------------------------------------------------------
   8. Botões
   -------------------------------------------------------------------------- */

.bpc-button,
.bpc-button--primary,
button,
input[type="submit"],
input[type="button"],
.wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--bpc-s2);
	background: var(--bpc-accent);
	border: 1px solid var(--bpc-accent);
	border-radius: var(--bpc-radius-sm);
	color: #fff;
	cursor: pointer;
	font-family: var(--bpc-font-body);
	font-size: var(--bpc-text-base);
	font-weight: 600;
	line-height: 1.3;
	padding: var(--bpc-s3) var(--bpc-s5);
	text-align: center;
	text-decoration: none;
	transition: background-color 0.15s ease, border-color 0.15s ease;
}

.bpc-button:hover,
button:hover,
input[type="submit"]:hover,
.wp-block-button__link:hover {
	background: var(--bpc-accent-hover);
	border-color: var(--bpc-accent-hover);
	color: #fff;
}

.bpc-button--secondary {
	background: transparent;
	border-color: var(--bpc-line-strong);
	color: var(--bpc-ink);
}

.bpc-button--secondary:hover {
	background: var(--bpc-accent-soft);
	border-color: var(--bpc-accent);
	color: var(--bpc-accent);
}

.bpc-button--small {
	font-size: var(--bpc-text-sm);
	padding: var(--bpc-s2) var(--bpc-s4);
}

.bpc-button[disabled],
button[disabled] {
	cursor: not-allowed;
	opacity: 0.55;
}

/* --------------------------------------------------------------------------
   9. Rótulos, categorias, metadados
   -------------------------------------------------------------------------- */

.bpc-eyebrow {
	display: inline-block;
	font-family: var(--bpc-font-body);
	font-size: var(--bpc-text-xs);
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--bpc-accent);
	text-decoration: none;
	margin-bottom: var(--bpc-s2);
}

a.bpc-eyebrow:hover {
	text-decoration: underline;
}

.bpc-chip {
	display: inline-flex;
	align-items: center;
	gap: var(--bpc-s1);
	background: var(--bpc-second-soft);
	border-radius: 999px;
	color: var(--bpc-second);
	font-size: var(--bpc-text-xs);
	font-weight: 600;
	padding: 0.2rem 0.65rem;
	text-decoration: none;
}

a.bpc-chip:hover {
	background: var(--bpc-accent-soft);
	color: var(--bpc-accent);
}

.bpc-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--bpc-s2) var(--bpc-s4);
	color: var(--bpc-ink-muted);
	font-size: var(--bpc-text-sm);
	list-style: none;
	margin: 0;
	padding: 0;
}

.bpc-meta__item {
	display: inline-flex;
	align-items: center;
	gap: var(--bpc-s2);
}

.bpc-meta a {
	color: inherit;
}

.bpc-meta svg {
	flex: 0 0 auto;
	color: var(--bpc-ink-muted);
}

.bpc-icon {
	width: 1em;
	height: 1em;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.7;
	stroke-linecap: round;
	stroke-linejoin: round;
	vertical-align: -0.125em;
}

/* --------------------------------------------------------------------------
   10. Cards e grades
   -------------------------------------------------------------------------- */

.bpc-grid {
	display: grid;
	gap: var(--bpc-s5);
	grid-template-columns: 1fr;
}

@media (min-width: 36em) {
	.bpc-grid--2,
	.bpc-grid--3,
	.bpc-grid--4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 62em) {
	.bpc-grid--3 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.bpc-grid--4 {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.bpc-card {
	display: flex;
	flex-direction: column;
	background: var(--bpc-surface);
	border: 1px solid var(--bpc-line);
	border-radius: var(--bpc-radius);
	box-shadow: var(--bpc-shadow-sm);
	overflow: hidden;
	height: 100%;
	transition: box-shadow 0.18s ease, transform 0.18s ease;
}

.bpc-card:hover {
	box-shadow: var(--bpc-shadow);
	transform: translateY(-2px);
}

.bpc-card__media {
	display: block;
	background: var(--bpc-paper-deep);
	aspect-ratio: 16 / 9;
	overflow: hidden;
}

.bpc-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.bpc-card__media--placeholder {
	background:
		repeating-linear-gradient(135deg, var(--bpc-paper-deep) 0 14px, #ffe6c4 14px 28px);
}

.bpc-card__body {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	gap: var(--bpc-s2);
	padding: var(--bpc-s4) var(--bpc-s4) var(--bpc-s5);
}

.bpc-card__title {
	font-size: var(--bpc-text-lg);
	line-height: var(--bpc-leading-snug);
	margin: 0;
}

.bpc-card__title a {
	color: var(--bpc-ink);
	text-decoration: none;
}

.bpc-card__title a:hover {
	color: var(--bpc-accent);
	text-decoration: underline;
}

.bpc-card__excerpt {
	color: var(--bpc-ink-soft);
	font-size: var(--bpc-text-sm);
	line-height: var(--bpc-leading-normal);
	margin: 0;
}

.bpc-card__footer {
	margin-top: auto;
	padding-top: var(--bpc-s3);
}

/* Card horizontal (listas e resultados de busca) */
.bpc-card-row {
	display: grid;
	gap: var(--bpc-s4);
	padding-bottom: var(--bpc-s5);
	border-bottom: 1px solid var(--bpc-line);
}

.bpc-card-row:last-child {
	border-bottom: 0;
	padding-bottom: 0;
}

@media (min-width: 36em) {
	.bpc-card-row {
		grid-template-columns: 13rem minmax(0, 1fr);
		align-items: start;
	}
}

.bpc-card-row__media {
	display: block;
	background: var(--bpc-paper-deep);
	border-radius: var(--bpc-radius);
	aspect-ratio: 4 / 3;
	overflow: hidden;
}

.bpc-card-row__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* min-width: 0 impede que títulos longos estourem a coluna da grade. */
.bpc-card-row__body {
	min-width: 0;
}

.bpc-card-row__title {
	font-size: var(--bpc-text-xl);
	margin: var(--bpc-s1) 0 var(--bpc-s2);
	overflow-wrap: break-word;
}

.bpc-card-row__title a {
	color: var(--bpc-ink);
	text-decoration: none;
}

.bpc-card-row__title a:hover {
	color: var(--bpc-accent);
	text-decoration: underline;
}

.bpc-card-row__excerpt {
	color: var(--bpc-ink-soft);
	font-size: var(--bpc-text-base);
	margin: 0 0 var(--bpc-s3);
}

.bpc-card-list {
	display: grid;
	gap: var(--bpc-s5);
}

/* Lista compacta numerada (Comece por aqui / Guias populares) */
.bpc-steps {
	list-style: none;
	counter-reset: bpc-step;
	display: grid;
	gap: var(--bpc-s4);
	margin: 0;
	padding: 0;
}

.bpc-steps > li {
	counter-increment: bpc-step;
	display: grid;
	grid-template-columns: 2.25rem minmax(0, 1fr);
	gap: var(--bpc-s4);
	align-items: start;
	background: var(--bpc-surface);
	border: 1px solid var(--bpc-line);
	border-radius: var(--bpc-radius);
	padding: var(--bpc-s4);
}

.bpc-steps > li::before {
	content: counter(bpc-step);
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.25rem;
	height: 2.25rem;
	background: var(--bpc-accent-soft);
	border-radius: 50%;
	color: var(--bpc-accent);
	font-family: var(--bpc-font-head);
	font-size: var(--bpc-text-base);
	font-weight: 700;
}

.bpc-steps__title {
	font-size: var(--bpc-text-base);
	margin: 0 0 var(--bpc-s1);
}

.bpc-steps__title a {
	color: var(--bpc-ink);
	text-decoration: none;
}

.bpc-steps__title a:hover {
	color: var(--bpc-accent);
	text-decoration: underline;
}

.bpc-steps p {
	color: var(--bpc-ink-soft);
	font-size: var(--bpc-text-sm);
	margin: 0;
}

/* --------------------------------------------------------------------------
   11. Home — herói e seções
   -------------------------------------------------------------------------- */

.bpc-hero {
	background: linear-gradient(180deg, var(--bpc-paper-deep), var(--bpc-paper));
	border-bottom: 1px solid var(--bpc-line);
	padding-block: var(--bpc-s8);
}

.bpc-hero__inner {
	display: grid;
	gap: var(--bpc-s6);
	align-items: center;
}

@media (min-width: 62em) {
	.bpc-hero {
		padding-block: var(--bpc-s10);
	}

	.bpc-hero__inner {
		grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
		gap: var(--bpc-s9);
	}
}

.bpc-hero__title {
	font-size: clamp(2rem, 1.4rem + 2.6vw, 3rem);
	margin-bottom: var(--bpc-s4);
}

.bpc-hero__text {
	color: var(--bpc-ink-soft);
	font-size: var(--bpc-text-lg);
	line-height: var(--bpc-leading-relaxed);
	max-width: 46ch;
	margin-bottom: var(--bpc-s5);
}

.bpc-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--bpc-s3);
}

/* Decorative stack of paper cards, inline SVG (no image request, no JS) */
.bpc-hero__figure {
	position: relative;
	display: none;
	max-width: 25rem;
	margin-inline: auto;
	width: 100%;
}

.bpc-hero__figure svg {
	display: block;
	width: 100%;
	height: auto;
	overflow: visible;
}

@media (min-width: 62em) {
	.bpc-hero__figure {
		display: block;
	}
}

.bpc-pp { filter: drop-shadow(0 6px 8px rgba(42, 31, 78, 0.16)); }
.bpc-pp + .bpc-pp { filter: none; }
.bpc-pp--white { fill: #fff; }
.bpc-pp--cobalt { fill: var(--bpc-cobalt); }
.bpc-pp--poppy { fill: var(--bpc-poppy); }
.bpc-pp--sunshine { fill: var(--bpc-sunshine); }
.bpc-pp--mint { fill: var(--bpc-mint); }
.bpc-pp--pink { fill: var(--bpc-pink); }
.bpc-pp--kraft { fill: var(--bpc-kraft); }
.bpc-pp--kraft-deep { fill: #b58e62; }

/* Faixa de categorias */
.bpc-topics {
	display: grid;
	gap: var(--bpc-s4);
	grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
	list-style: none;
	margin: 0;
	padding: 0;
}

.bpc-topic {
	display: flex;
	flex-direction: column;
	gap: var(--bpc-s2);
	background: var(--bpc-surface);
	border: 1px solid var(--bpc-line);
	border-radius: var(--bpc-radius);
	padding: var(--bpc-s5) var(--bpc-s4);
	text-decoration: none;
	height: 100%;
}

.bpc-topic:hover {
	border-color: var(--bpc-accent);
	box-shadow: var(--bpc-shadow);
}

.bpc-topic__name {
	font-family: var(--bpc-font-head);
	font-size: var(--bpc-text-lg);
	font-weight: 600;
	color: var(--bpc-ink);
}

.bpc-topic:hover .bpc-topic__name {
	color: var(--bpc-accent);
}

.bpc-topic__desc {
	color: var(--bpc-ink-soft);
	font-size: var(--bpc-text-sm);
	line-height: var(--bpc-leading-normal);
}

.bpc-topic__count {
	margin-top: auto;
	padding-top: var(--bpc-s2);
	color: var(--bpc-ink-muted);
	font-size: var(--bpc-text-xs);
}

/* Bloco de chamada (CTA) */
.bpc-cta {
	display: grid;
	gap: var(--bpc-s5);
	align-items: center;
	background: var(--bpc-second);
	border-radius: var(--bpc-radius-lg);
	color: #f4f7f9;
	padding: var(--bpc-s7) var(--bpc-s6);
}

@media (min-width: 48em) {
	.bpc-cta {
		grid-template-columns: minmax(0, 1fr) auto;
		padding: var(--bpc-s8);
	}
}

.bpc-cta__title {
	color: #fff;
	margin-bottom: var(--bpc-s3);
}

.bpc-cta__text {
	color: #dce5ea;
	margin: 0;
	max-width: 52ch;
}

.bpc-cta .bpc-button {
	background: var(--bpc-surface);
	border-color: var(--bpc-surface);
	color: var(--bpc-second);
	white-space: nowrap;
}

.bpc-cta .bpc-button:hover {
	background: var(--bpc-accent-soft);
	border-color: var(--bpc-accent-soft);
	color: var(--bpc-accent-hover);
}

/* --------------------------------------------------------------------------
   12. Artigo
   -------------------------------------------------------------------------- */

.bpc-breadcrumbs {
	margin-bottom: var(--bpc-s5);
	font-size: var(--bpc-text-sm);
	color: var(--bpc-ink-muted);
}

.bpc-breadcrumbs ol {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--bpc-s2);
	list-style: none;
	margin: 0;
	padding: 0;
}

.bpc-breadcrumbs li {
	display: inline-flex;
	align-items: center;
	gap: var(--bpc-s2);
}

.bpc-breadcrumbs li + li::before {
	content: "/";
	color: var(--bpc-line-strong);
}

.bpc-breadcrumbs a {
	color: var(--bpc-ink-soft);
	text-decoration: none;
}

.bpc-breadcrumbs a:hover {
	color: var(--bpc-accent);
	text-decoration: underline;
}

.bpc-breadcrumbs [aria-current="page"] {
	color: var(--bpc-ink-muted);
}

.bpc-article__header {
	margin-bottom: var(--bpc-s6);
}

.bpc-article__title {
	margin-bottom: var(--bpc-s4);
}

.bpc-article__summary {
	color: var(--bpc-ink-soft);
	font-size: var(--bpc-text-lg);
	line-height: var(--bpc-leading-relaxed);
	max-width: var(--bpc-measure);
	margin-bottom: var(--bpc-s4);
}

.bpc-article__meta {
	padding-top: var(--bpc-s4);
	border-top: 1px solid var(--bpc-line);
}

.bpc-article__figure {
	margin-bottom: var(--bpc-s6);
}

.bpc-article__figure img {
	border-radius: var(--bpc-radius);
	width: 100%;
}

.bpc-article__figure figcaption,
.wp-block-image figcaption,
.wp-caption-text {
	margin-top: var(--bpc-s2);
	color: var(--bpc-ink-muted);
	font-size: var(--bpc-text-sm);
	line-height: var(--bpc-leading-snug);
	text-align: left;
}

/* Corpo do texto */
.bpc-content {
	font-size: var(--bpc-text-md);
	line-height: var(--bpc-leading-relaxed);
}

.bpc-content > * {
	max-width: var(--bpc-measure);
}

.bpc-content > .alignwide,
.bpc-content > .alignfull,
.bpc-content > .bpc-tutorial-facts,
.bpc-content > .bpc-toc,
.bpc-content > figure,
.bpc-content > .wp-block-image,
.bpc-content > .wp-block-gallery,
.bpc-content > .wp-block-table,
.bpc-content > .bpc-ad-slot {
	max-width: none;
}

.bpc-content h2 {
	margin-top: var(--bpc-s8);
	padding-bottom: var(--bpc-s2);
	border-bottom: 1px solid var(--bpc-line);
}

.bpc-content h3 {
	margin-top: var(--bpc-s6);
}

.bpc-content h4 {
	margin-top: var(--bpc-s5);
}

.bpc-content > h2:first-child,
.bpc-content > h3:first-child {
	margin-top: 0;
}

.bpc-content ul,
.bpc-content ol {
	margin: 0 0 var(--bpc-s4);
	padding-left: 1.4em;
}

.bpc-content li + li {
	margin-top: var(--bpc-s2);
}

.bpc-content li > ul,
.bpc-content li > ol {
	margin-top: var(--bpc-s2);
	margin-bottom: 0;
}

.bpc-content ol {
	padding-left: 1.3em;
}

.bpc-content ol li::marker {
	color: var(--bpc-accent);
	font-weight: 700;
}

.bpc-content figure,
.bpc-content .wp-block-image {
	margin-block: var(--bpc-s6);
}

.bpc-content img {
	border-radius: var(--bpc-radius);
}

.bpc-content a {
	text-decoration: underline;
}

/* Tabelas */
.bpc-content table,
.wp-block-table table {
	width: 100%;
	border-collapse: collapse;
	font-size: var(--bpc-text-sm);
	margin-block: var(--bpc-s6);
}

.bpc-content th,
.bpc-content td,
.wp-block-table th,
.wp-block-table td {
	border: 1px solid var(--bpc-line);
	padding: var(--bpc-s3);
	text-align: left;
	vertical-align: top;
}

.bpc-content thead th,
.wp-block-table thead th {
	background: var(--bpc-paper-deep);
	font-family: var(--bpc-font-body);
	font-size: var(--bpc-text-xs);
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.wp-block-table {
	overflow-x: auto;
}

/* Caixas de destaque — classes utilizáveis no editor de blocos */
.bpc-callout {
	background: var(--bpc-surface);
	border: 1px solid var(--bpc-line);
	border-left: 4px solid var(--bpc-second);
	border-radius: var(--bpc-radius);
	padding: var(--bpc-s5);
	margin-block: var(--bpc-s6);
}

.bpc-callout > :last-child {
	margin-bottom: 0;
}

.bpc-callout__title {
	display: flex;
	align-items: center;
	gap: var(--bpc-s2);
	font-family: var(--bpc-font-body);
	font-size: var(--bpc-text-sm);
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--bpc-second);
	margin-bottom: var(--bpc-s3);
}

.bpc-callout--tip {
	background: var(--bpc-accent-soft);
	border-color: #f0dbd0;
	border-left-color: var(--bpc-accent);
}

.bpc-callout--tip .bpc-callout__title {
	color: var(--bpc-accent);
}

.bpc-callout--warning {
	background: #fdf6e3;
	border-color: #f0e3bf;
	border-left-color: #a9801f;
}

.bpc-callout--warning .bpc-callout__title {
	color: #8a6715;
}

/* Fatos do tutorial (dificuldade, tempo, papel, materiais) */
.bpc-tutorial-facts {
	background: var(--bpc-surface);
	border: 1px solid var(--bpc-line);
	border-radius: var(--bpc-radius);
	padding: var(--bpc-s5);
	margin-bottom: var(--bpc-s6);
}

.bpc-tutorial-facts__title {
	font-family: var(--bpc-font-body);
	font-size: var(--bpc-text-sm);
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--bpc-ink-soft);
	margin: 0 0 var(--bpc-s4);
}

.bpc-facts {
	display: grid;
	gap: var(--bpc-s4);
	grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
	margin: 0;
}

.bpc-facts__item {
	display: flex;
	align-items: flex-start;
	gap: var(--bpc-s3);
}

.bpc-facts__icon {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.25rem;
	height: 2.25rem;
	background: var(--bpc-accent-soft);
	border-radius: var(--bpc-radius-sm);
	color: var(--bpc-accent);
}

.bpc-facts__icon .bpc-icon {
	width: 1.125rem;
	height: 1.125rem;
}

.bpc-facts__label {
	display: block;
	font-size: var(--bpc-text-xs);
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--bpc-ink-muted);
}

.bpc-facts__value {
	display: block;
	font-size: var(--bpc-text-base);
	font-weight: 600;
	line-height: var(--bpc-leading-snug);
	margin-top: 0.1rem;
}

.bpc-materials {
	margin-top: var(--bpc-s5);
	padding-top: var(--bpc-s4);
	border-top: 1px solid var(--bpc-line);
}

.bpc-materials__list {
	list-style: none;
	display: grid;
	gap: var(--bpc-s2);
	grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
	margin: 0;
	padding: 0;
	font-size: var(--bpc-text-base);
}

.bpc-materials__list li {
	display: flex;
	align-items: flex-start;
	gap: var(--bpc-s2);
	margin: 0;
}

.bpc-materials__list li::before {
	content: "";
	flex: 0 0 auto;
	width: 0.5rem;
	height: 0.5rem;
	margin-top: 0.55em;
	background: var(--bpc-accent);
	transform: rotate(45deg);
}

/* Sumário */
.bpc-toc {
	background: var(--bpc-paper-deep);
	border: 1px solid var(--bpc-line);
	border-radius: var(--bpc-radius);
	padding: var(--bpc-s5);
	margin-bottom: var(--bpc-s6);
}

.bpc-toc__title {
	font-family: var(--bpc-font-body);
	font-size: var(--bpc-text-sm);
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--bpc-ink-soft);
	margin: 0 0 var(--bpc-s3);
}

.bpc-toc ol {
	counter-reset: bpc-toc;
	list-style: none;
	margin: 0;
	padding: 0;
	font-size: var(--bpc-text-base);
}

.bpc-toc > ol > li {
	counter-increment: bpc-toc;
	margin: 0;
}

.bpc-toc > ol > li + li {
	margin-top: var(--bpc-s2);
}

.bpc-toc > ol > li > a::before {
	content: counter(bpc-toc) ". ";
	color: var(--bpc-ink-muted);
}

.bpc-toc a {
	color: var(--bpc-ink);
	text-decoration: none;
}

.bpc-toc a:hover {
	color: var(--bpc-accent);
	text-decoration: underline;
}

.bpc-toc ol ol {
	margin: var(--bpc-s2) 0 0 var(--bpc-s4);
	font-size: var(--bpc-text-sm);
}

.bpc-toc ol ol li + li {
	margin-top: var(--bpc-s1);
}

.bpc-toc ol ol a {
	color: var(--bpc-ink-soft);
}

/* FAQ */
.bpc-faq {
	margin-top: var(--bpc-s8);
}

.bpc-faq__item {
	background: var(--bpc-surface);
	border: 1px solid var(--bpc-line);
	border-radius: var(--bpc-radius);
	margin-bottom: var(--bpc-s3);
	padding: var(--bpc-s4) var(--bpc-s5);
}

.bpc-faq__question {
	font-family: var(--bpc-font-head);
	font-size: var(--bpc-text-lg);
	font-weight: 600;
	margin: 0 0 var(--bpc-s2);
}

.bpc-faq__answer > :last-child {
	margin-bottom: 0;
}

/* Rodapé do artigo */
.bpc-article__footer {
	margin-top: var(--bpc-s8);
	padding-top: var(--bpc-s5);
	border-top: 1px solid var(--bpc-line);
}

.bpc-tags {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--bpc-s2);
	list-style: none;
	margin: 0;
	padding: 0;
}

.bpc-tags__label {
	font-size: var(--bpc-text-sm);
	font-weight: 600;
	color: var(--bpc-ink-soft);
}

.bpc-author-box {
	display: grid;
	gap: var(--bpc-s4);
	align-items: start;
	background: var(--bpc-paper-deep);
	border-radius: var(--bpc-radius);
	padding: var(--bpc-s5);
	margin-top: var(--bpc-s6);
}

@media (min-width: 36em) {
	.bpc-author-box {
		grid-template-columns: auto minmax(0, 1fr);
	}
}

.bpc-author-box img {
	border-radius: 50%;
}

.bpc-author-box__name {
	font-size: var(--bpc-text-lg);
	margin: 0 0 var(--bpc-s2);
}

.bpc-author-box__bio {
	color: var(--bpc-ink-soft);
	font-size: var(--bpc-text-sm);
	margin: 0;
}

/* Navegação anterior/próximo */
.bpc-post-nav {
	margin-top: var(--bpc-s7);
}

.bpc-post-nav__links {
	display: grid;
	gap: var(--bpc-s4);
}

@media (min-width: 48em) {
	.bpc-post-nav__links {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	/* Existindo só o "próximo", ele vai para a coluna da direita — é lá que
	   o alinhamento do texto e a seta mental do leitor esperam encontrá-lo. */
	.bpc-post-nav__link--next:only-child {
		grid-column: 2;
	}
}

.bpc-post-nav__link {
	display: block;
	background: var(--bpc-surface);
	border: 1px solid var(--bpc-line);
	border-radius: var(--bpc-radius);
	padding: var(--bpc-s4);
	text-decoration: none;
	height: 100%;
}

.bpc-post-nav__link:hover {
	border-color: var(--bpc-accent);
}

.bpc-post-nav__direction {
	display: block;
	font-size: var(--bpc-text-xs);
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--bpc-ink-muted);
	margin-bottom: var(--bpc-s2);
}

.bpc-post-nav__title {
	display: block;
	font-family: var(--bpc-font-head);
	font-size: var(--bpc-text-base);
	font-weight: 600;
	color: var(--bpc-ink);
	line-height: var(--bpc-leading-snug);
}

.bpc-post-nav__link:hover .bpc-post-nav__title {
	color: var(--bpc-accent);
}

.bpc-post-nav__link--prev {
	text-align: left;
}

.bpc-post-nav__link--next {
	text-align: right;
}

/* --------------------------------------------------------------------------
   13. Barra lateral e widgets
   -------------------------------------------------------------------------- */

.bpc-sidebar {
	display: grid;
	gap: var(--bpc-s5);
}

@media (min-width: 62em) {
	.bpc-sidebar--sticky {
		position: sticky;
		top: 6rem;
	}
}

.bpc-widget {
	background: var(--bpc-surface);
	border: 1px solid var(--bpc-line);
	border-radius: var(--bpc-radius);
	padding: var(--bpc-s5);
	font-size: var(--bpc-text-base);
}

.bpc-widget__title,
.bpc-widget .widget-title {
	font-family: var(--bpc-font-body);
	font-size: var(--bpc-text-sm);
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--bpc-ink-soft);
	margin: 0 0 var(--bpc-s4);
}

.bpc-widget ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.bpc-widget li + li {
	margin-top: var(--bpc-s3);
	padding-top: var(--bpc-s3);
	border-top: 1px solid var(--bpc-line);
}

.bpc-widget a {
	color: var(--bpc-ink);
	text-decoration: none;
}

.bpc-widget a:hover {
	color: var(--bpc-accent);
	text-decoration: underline;
}

.bpc-widget .children,
.bpc-widget .sub-menu {
	margin-top: var(--bpc-s3);
	padding-left: var(--bpc-s4);
}

/* --------------------------------------------------------------------------
   14. Arquivos, paginação, busca, 404
   -------------------------------------------------------------------------- */

.bpc-archive-header {
	margin-bottom: var(--bpc-s7);
	padding-bottom: var(--bpc-s5);
	border-bottom: 1px solid var(--bpc-line);
}

.bpc-archive-header__title {
	margin-bottom: var(--bpc-s3);
}

.bpc-archive-header__description {
	color: var(--bpc-ink-soft);
	font-size: var(--bpc-text-lg);
	line-height: var(--bpc-leading-relaxed);
	max-width: var(--bpc-measure);
}

.bpc-archive-header__description > :last-child {
	margin-bottom: 0;
}

.bpc-archive-header__count {
	margin: var(--bpc-s3) 0 0;
	color: var(--bpc-ink-muted);
	font-size: var(--bpc-text-sm);
}

.bpc-subcategories {
	display: flex;
	flex-wrap: wrap;
	gap: var(--bpc-s2);
	list-style: none;
	margin: var(--bpc-s4) 0 0;
	padding: 0;
}

.bpc-pagination {
	margin-top: var(--bpc-s8);
	padding-top: var(--bpc-s5);
	border-top: 1px solid var(--bpc-line);
}

.bpc-pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--bpc-s2);
}

.bpc-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.5rem;
	height: 2.5rem;
	padding-inline: var(--bpc-s3);
	background: var(--bpc-surface);
	border: 1px solid var(--bpc-line-strong);
	border-radius: var(--bpc-radius-sm);
	color: var(--bpc-ink);
	font-size: var(--bpc-text-sm);
	font-weight: 600;
	text-decoration: none;
}

.bpc-pagination a.page-numbers:hover {
	border-color: var(--bpc-accent);
	color: var(--bpc-accent);
}

.bpc-pagination .page-numbers.current {
	background: var(--bpc-accent);
	border-color: var(--bpc-accent);
	color: #fff;
}

.bpc-pagination .page-numbers.dots {
	border-color: transparent;
	background: none;
}

/* Busca */
.bpc-search-intro {
	margin-bottom: var(--bpc-s6);
}

.bpc-search-intro .bpc-search-form {
	max-width: 32rem;
	margin-top: var(--bpc-s4);
}

.bpc-no-results {
	background: var(--bpc-surface);
	border: 1px solid var(--bpc-line);
	border-radius: var(--bpc-radius);
	padding: var(--bpc-s6);
}

.bpc-no-results__suggestions {
	display: grid;
	gap: var(--bpc-s2);
	list-style: none;
	margin: var(--bpc-s4) 0 0;
	padding: 0;
}

.bpc-no-results__suggestions li {
	padding-left: 1.2em;
	position: relative;
}

.bpc-no-results__suggestions li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.6em;
	width: 0.45rem;
	height: 0.45rem;
	background: var(--bpc-accent);
	transform: rotate(45deg);
}

/* 404 */
.bpc-error-404 {
	text-align: center;
	max-width: 42rem;
	margin-inline: auto;
}

.bpc-error-404__code {
	font-family: var(--bpc-font-head);
	font-size: clamp(3.5rem, 2rem + 8vw, 6rem);
	line-height: 1;
	color: var(--bpc-line-strong);
	margin: 0 0 var(--bpc-s4);
}

.bpc-error-404 .bpc-search-form {
	max-width: 26rem;
	margin: var(--bpc-s5) auto 0;
	text-align: left;
}

.bpc-error-404 .bpc-subcategories {
	justify-content: center;
	margin-top: var(--bpc-s4);
}

.bpc-error-404 .bpc-section__head {
	justify-content: center;
}

.bpc-error-404 .bpc-grid {
	text-align: left;
}

.bpc-error-404__headline {
	margin-top: var(--bpc-s7);
	font-size: var(--bpc-text-xl);
}

/* --------------------------------------------------------------------------
   15. Páginas e formulário de contato
   -------------------------------------------------------------------------- */

.bpc-page__header {
	margin-bottom: var(--bpc-s6);
	padding-bottom: var(--bpc-s5);
	border-bottom: 1px solid var(--bpc-line);
}

.bpc-page__header .bpc-page__title {
	margin-bottom: 0;
}

.bpc-page__updated {
	margin: var(--bpc-s3) 0 0;
	color: var(--bpc-ink-muted);
	font-size: var(--bpc-text-sm);
}

.bpc-form-notice {
	border-radius: var(--bpc-radius);
	padding: var(--bpc-s4) var(--bpc-s5);
	margin-bottom: var(--bpc-s5);
	border: 1px solid;
}

.bpc-form-notice > :last-child {
	margin-bottom: 0;
}

.bpc-form-notice--success {
	background: #eef7ef;
	border-color: #c6e2c9;
	color: #1f5128;
}

.bpc-form-notice--error {
	background: #fdeeec;
	border-color: #f2c9c3;
	color: #7d2418;
}

.bpc-form-notice__list {
	margin: var(--bpc-s2) 0 0;
	padding-left: 1.2em;
}

.bpc-form {
	max-width: 36rem;
}

.bpc-form input[aria-invalid="true"],
.bpc-form textarea[aria-invalid="true"] {
	border-color: #b3372a;
}

.bpc-field__error {
	display: block;
	margin-top: var(--bpc-s2);
	color: #8c2b20;
	font-size: var(--bpc-text-sm);
	font-weight: 600;
}

.bpc-form__honeypot {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* --------------------------------------------------------------------------
   16. Comentários
   -------------------------------------------------------------------------- */

.bpc-comments {
	margin-top: var(--bpc-s9);
	padding-top: var(--bpc-s6);
	border-top: 1px solid var(--bpc-line);
}

.bpc-comments__title {
	font-size: var(--bpc-text-2xl);
}

.bpc-comments .comment-list {
	list-style: none;
	margin: 0 0 var(--bpc-s7);
	padding: 0;
}

.bpc-comments .comment-list ol.children {
	list-style: none;
	margin: var(--bpc-s4) 0 0 var(--bpc-s5);
	padding: 0;
}

.bpc-comments .comment-body {
	background: var(--bpc-surface);
	border: 1px solid var(--bpc-line);
	border-radius: var(--bpc-radius);
	padding: var(--bpc-s5);
	margin-bottom: var(--bpc-s4);
}

.bpc-comments .comment-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--bpc-s2) var(--bpc-s3);
	font-size: var(--bpc-text-sm);
	color: var(--bpc-ink-muted);
	margin-bottom: var(--bpc-s3);
}

.bpc-comments .comment-author img {
	border-radius: 50%;
	margin-right: var(--bpc-s2);
	vertical-align: middle;
}

.bpc-comments .reply {
	font-size: var(--bpc-text-sm);
	font-weight: 600;
}

.comment-respond .comment-form-cookies-consent label,
.comment-respond .comment-notes {
	font-weight: 400;
	font-size: var(--bpc-text-sm);
	color: var(--bpc-ink-soft);
	display: inline;
}

.comment-form p {
	margin-bottom: var(--bpc-s4);
}

/* --------------------------------------------------------------------------
   17. Espaços de anúncio (vazios e desativados por padrão)
   -------------------------------------------------------------------------- */

.bpc-ad-slot {
	margin-block: var(--bpc-s6);
	text-align: center;
}

.bpc-ad-slot__label {
	display: block;
	margin-bottom: var(--bpc-s2);
	color: var(--bpc-ink-muted);
	font-size: var(--bpc-text-xs);
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.bpc-ad-slot--sidebar {
	margin-block: 0;
}

/* --------------------------------------------------------------------------
   18. Rodapé
   -------------------------------------------------------------------------- */

.bpc-site-footer {
	background: var(--bpc-surface);
	border-top: 1px solid var(--bpc-line);
	margin-top: auto;
	padding-block: var(--bpc-s8) var(--bpc-s6);
}

.bpc-footer__grid {
	display: grid;
	gap: var(--bpc-s6);
	margin-bottom: var(--bpc-s6);
}

@media (min-width: 48em) {
	.bpc-footer__grid {
		grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
		gap: var(--bpc-s8);
	}
}

.bpc-footer__about p {
	color: var(--bpc-ink-soft);
	font-size: var(--bpc-text-sm);
	max-width: 42ch;
	margin-bottom: 0;
}

.bpc-footer__nav {
	min-width: 0;
}

.bpc-footer__heading {
	font-family: var(--bpc-font-body);
	font-size: var(--bpc-text-sm);
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--bpc-ink-soft);
	margin: 0 0 var(--bpc-s3);
}

.bpc-footer__menu {
	list-style: none;
	margin: 0;
	padding: 0;
	font-size: var(--bpc-text-sm);
}

.bpc-footer__menu li + li {
	margin-top: var(--bpc-s2);
}

.bpc-footer__menu a {
	color: var(--bpc-ink-soft);
	text-decoration: none;
}

.bpc-footer__menu a:hover {
	color: var(--bpc-accent);
	text-decoration: underline;
}

.bpc-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--bpc-s3);
	padding-top: var(--bpc-s5);
	border-top: 1px solid var(--bpc-line);
	color: var(--bpc-ink-muted);
	font-size: var(--bpc-text-sm);
}

.bpc-footer__bottom p {
	margin: 0;
}

/* --------------------------------------------------------------------------
   19. Utilitários e alinhamentos do editor
   -------------------------------------------------------------------------- */

.bpc-visually-balanced {
	max-width: var(--bpc-measure);
}

.bpc-text-center {
	text-align: center;
}

.bpc-mt-0 {
	margin-top: 0;
}

.bpc-mb-0 {
	margin-bottom: 0;
}

.alignleft {
	float: left;
	margin: 0 var(--bpc-s5) var(--bpc-s4) 0;
}

.alignright {
	float: right;
	margin: 0 0 var(--bpc-s4) var(--bpc-s5);
}

.aligncenter {
	display: block;
	margin-inline: auto;
}

.alignwide,
.alignfull {
	margin-inline: auto;
}

.bpc-content > .alignfull {
	margin-inline: calc(-1 * var(--bpc-gutter));
	width: calc(100% + (2 * var(--bpc-gutter)));
	max-width: none;
}

.wp-block-embed__wrapper {
	position: relative;
}

.wp-block-embed.wp-embed-aspect-16-9 .wp-block-embed__wrapper {
	aspect-ratio: 16 / 9;
}

.wp-block-embed.wp-embed-aspect-16-9 iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	border-radius: var(--bpc-radius);
}

.sticky .bpc-card__title::after {
	content: " ★";
	color: var(--bpc-accent);
}

/* --------------------------------------------------------------------------
   20. Impressão — artigos legíveis no papel
   -------------------------------------------------------------------------- */

@media print {
	.bpc-site-header,
	.bpc-site-footer,
	.bpc-ad-slot,
	.bpc-post-nav,
	.bpc-comments,
	.bpc-sidebar,
	.bpc-related,
	.bpc-skip-link,
	.bpc-breadcrumbs {
		display: none !important;
	}

	body {
		background: #fff;
		font-size: 11pt;
	}

	.bpc-content > * {
		max-width: none;
	}

	a {
		color: inherit;
		text-decoration: underline;
	}

	.bpc-content h2,
	.bpc-content h3 {
		break-after: avoid;
	}

	figure,
	.bpc-tutorial-facts,
	.bpc-facts__item {
		break-inside: avoid;
	}
}

/* ==========================================================================
   20. Party skin
   Cut-paper party colors on warm cream: a bunting strip under the header, a
   confetti hero, pill buttons, rounded paper cards. Layout rules above stay
   untouched; this section only restyles surfaces.
   ========================================================================== */

h1,
h2,
h3,
h4 {
	font-weight: 800;
	letter-spacing: -0.015em;
}

/* Header: white paper with a string of pennants hanging from its lower edge */
.bpc-site-header {
	background: var(--bpc-surface);
	border-bottom: 3px solid var(--bpc-ink);
}

.bpc-site-header::after {
	content: "";
	position: absolute;
	inset: 100% 0 auto 0;
	height: 16px;
	margin-top: 3px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='168' height='16' viewBox='0 0 168 16'%3E%3Cpath d='M2 0h24L14 16z' fill='%23f0437f'/%3E%3Cpath d='M30 0h24L42 16z' fill='%23ffc93c'/%3E%3Cpath d='M58 0h24L70 16z' fill='%2317b8b0'/%3E%3Cpath d='M86 0h24L98 16z' fill='%237b5cf0'/%3E%3Cpath d='M114 0h24l-12 16z' fill='%23ff8a3d'/%3E%3Cpath d='M142 0h24l-12 16z' fill='%236cc24a'/%3E%3C/svg%3E") repeat-x left top;
	pointer-events: none;
}

.bpc-branding__title {
	font-family: var(--bpc-font-head);
	font-weight: 800;
	letter-spacing: -0.02em;
}

.bpc-branding__mark {
	width: 2.75rem;
	height: 2.75rem;
}

@media (min-width: 62em) {
	.bpc-nav__list a {
		border-radius: 999px;
		font-weight: 600;
	}
}

/* Buttons: chunky pills that press down */
.bpc-button,
.bpc-button--primary,
button,
input[type="submit"],
input[type="button"],
.wp-block-button__link {
	border-radius: 999px;
	border-width: 2px;
	font-weight: 800;
	box-shadow: 0 4px 0 var(--bpc-accent-hover);
	transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.12s ease, box-shadow 0.12s ease;
}

.bpc-button:hover,
button:hover,
input[type="submit"]:hover,
.wp-block-button__link:hover {
	transform: translateY(2px);
	box-shadow: 0 2px 0 var(--bpc-accent-hover);
}

.bpc-button--secondary {
	background: var(--bpc-surface);
	border-color: var(--bpc-ink);
	color: var(--bpc-ink);
	box-shadow: 0 4px 0 var(--bpc-ink);
}

.bpc-button--secondary:hover {
	background: var(--bpc-butter);
	border-color: var(--bpc-ink);
	color: var(--bpc-ink);
	box-shadow: 0 2px 0 var(--bpc-ink);
}

/* Menu toggle and other bare buttons keep a flat look */
.bpc-menu-toggle,
.bpc-menu-toggle:hover {
	box-shadow: none;
	transform: none;
}

/* Hero: confetti on butter-yellow paper */
.bpc-hero {
	background-color: #fff1cf;
	background-image: radial-gradient(circle at 12% 22%, #f0437f 0 6px, transparent 7px), radial-gradient(circle at 78% 14%, #17b8b0 0 5px, transparent 6px), radial-gradient(circle at 34% 78%, #ffc93c 0 7px, transparent 8px), radial-gradient(circle at 90% 68%, #7b5cf0 0 5px, transparent 6px), radial-gradient(circle at 58% 44%, #ff8a3d 0 4px, transparent 5px), radial-gradient(circle at 6% 88%, #6cc24a 0 4px, transparent 5px);
	background-size: 340px 300px;
	border-bottom: 3px solid var(--bpc-ink);
	padding-top: calc(var(--bpc-s8) + 12px);
}

.bpc-hero__inner > div:first-child {
	background: rgba(255, 250, 243, 0.94);
	border: 3px solid var(--bpc-ink);
	border-radius: var(--bpc-radius-lg);
	box-shadow: 8px 8px 0 var(--bpc-pink);
	padding: var(--bpc-s5);
}

@media (min-width: 48em) {
	.bpc-hero__inner > div:first-child {
		padding: var(--bpc-s7);
	}
}

.bpc-hero__title {
	font-size: clamp(2.1rem, 1.4rem + 3vw, 3.4rem);
	line-height: 1.06;
	letter-spacing: -0.025em;
}

.bpc-hero__text {
	color: var(--bpc-ink-soft);
}

.bpc-hero__figure {
	max-width: 27rem;
}

.bpc-pp { filter: drop-shadow(0 5px 6px rgba(42, 31, 78, 0.2)); }
.bpc-pp--teal { fill: var(--bpc-teal); }
.bpc-pp--violet { fill: var(--bpc-violet); }
.bpc-pp--orange { fill: var(--bpc-orange); }
.bpc-pp--green { fill: var(--bpc-green); }
.bpc-pp--ink { fill: var(--bpc-ink); }
.bpc-pp--shade { fill: rgba(42, 31, 78, 0.14); filter: none; }
.bpc-pp--string { fill: none; stroke: var(--bpc-ink); stroke-width: 3; stroke-linecap: round; filter: none; }

/* Section headings: a paper dot and its smaller neighbour */
.bpc-section__head {
	border-bottom: 3px dotted var(--bpc-line-strong);
}

.bpc-section__title {
	display: flex;
	align-items: center;
	gap: var(--bpc-s4);
}

.bpc-section__title::before {
	content: "";
	flex: 0 0 auto;
	width: 1rem;
	height: 1rem;
	border-radius: 50%;
	background: var(--bpc-pink);
	box-shadow: 0.62rem 0.42rem 0 -0.2rem var(--bpc-sunshine);
}

.bpc-section:nth-of-type(5n + 2) .bpc-section__title::before { background: var(--bpc-teal); box-shadow: 0.62rem 0.42rem 0 -0.2rem var(--bpc-pink); }
.bpc-section:nth-of-type(5n + 3) .bpc-section__title::before { background: var(--bpc-violet); box-shadow: 0.62rem 0.42rem 0 -0.2rem var(--bpc-teal); }
.bpc-section:nth-of-type(5n + 4) .bpc-section__title::before { background: var(--bpc-orange); box-shadow: 0.62rem 0.42rem 0 -0.2rem var(--bpc-violet); }
.bpc-section:nth-of-type(5n + 5) .bpc-section__title::before { background: var(--bpc-green); box-shadow: 0.62rem 0.42rem 0 -0.2rem var(--bpc-orange); }

.bpc-section__link {
	font-weight: 800;
}

/* Cards: rounded paper with an ink outline */
.bpc-card {
	border: 2px solid var(--bpc-ink);
	border-radius: var(--bpc-radius-lg);
	box-shadow: 5px 5px 0 var(--bpc-line-strong);
	overflow: hidden;
}

.bpc-card:hover {
	box-shadow: 7px 7px 0 var(--bpc-sunshine);
	transform: translate(-2px, -2px);
}

.bpc-grid > .bpc-card:nth-child(4n + 2):hover { box-shadow: 7px 7px 0 var(--bpc-pink); }
.bpc-grid > .bpc-card:nth-child(4n + 3):hover { box-shadow: 7px 7px 0 var(--bpc-teal); }
.bpc-grid > .bpc-card:nth-child(4n + 4):hover { box-shadow: 7px 7px 0 var(--bpc-violet); }

.bpc-card__media {
	border-bottom: 2px solid var(--bpc-ink);
}

.bpc-eyebrow {
	background: var(--bpc-butter);
	border-radius: 999px;
	color: #5a4200;
	letter-spacing: 0.03em;
	padding: 0.2rem 0.7rem;
}

.bpc-grid > .bpc-card:nth-child(4n + 2) .bpc-eyebrow { background: var(--bpc-accent-soft); color: #8a1244; }
.bpc-grid > .bpc-card:nth-child(4n + 3) .bpc-eyebrow { background: var(--bpc-second-soft); color: #085a56; }
.bpc-grid > .bpc-card:nth-child(4n + 4) .bpc-eyebrow { background: #ebe5ff; color: #43299e; }

/* Start here: numbered party tickets */
.bpc-steps > li {
	border: 2px solid var(--bpc-ink);
	border-radius: var(--bpc-radius-lg);
	box-shadow: 5px 5px 0 var(--bpc-pink);
}

.bpc-steps > li::before {
	background: var(--bpc-accent);
	border-radius: 50%;
	color: #fff;
	font-weight: 800;
}

.bpc-steps > li:nth-child(4n + 2) { box-shadow: 5px 5px 0 var(--bpc-sunshine); }
.bpc-steps > li:nth-child(4n + 2)::before { background: var(--bpc-sunshine); color: var(--bpc-ink); }
.bpc-steps > li:nth-child(4n + 3) { box-shadow: 5px 5px 0 var(--bpc-teal); }
.bpc-steps > li:nth-child(4n + 3)::before { background: var(--bpc-second); }
.bpc-steps > li:nth-child(4n + 4) { box-shadow: 5px 5px 0 var(--bpc-violet); }
.bpc-steps > li:nth-child(4n + 4)::before { background: #5a3fd0; }

@media (min-width: 48em) {
	.bpc-steps {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* Call to action: a violet party invitation with confetti */
.bpc-cta {
	position: relative;
	overflow: hidden;
	background-color: #4a2fb8;
	background-image: radial-gradient(circle at 10% 20%, rgba(255, 201, 60, 0.9) 0 6px, transparent 7px), radial-gradient(circle at 88% 30%, rgba(240, 67, 127, 0.9) 0 7px, transparent 8px), radial-gradient(circle at 70% 84%, rgba(23, 184, 176, 0.9) 0 5px, transparent 6px), radial-gradient(circle at 24% 80%, rgba(255, 255, 255, 0.7) 0 4px, transparent 5px);
	border: 3px solid var(--bpc-ink);
	border-radius: var(--bpc-radius-lg);
	color: #f4f0ff;
}

.bpc-cta > * {
	position: relative;
	z-index: 1;
}

.bpc-cta__title {
	color: #fff;
}

.bpc-cta__text {
	color: #ece6ff;
}

.bpc-cta .bpc-button {
	background: var(--bpc-sunshine);
	border-color: var(--bpc-ink);
	color: var(--bpc-ink);
	box-shadow: 0 4px 0 var(--bpc-ink);
}

.bpc-cta .bpc-button:hover {
	background: #fff;
	border-color: var(--bpc-ink);
	color: var(--bpc-ink);
	box-shadow: 0 2px 0 var(--bpc-ink);
}

/* Article furniture */
.bpc-tutorial-facts,
.bpc-toc {
	border: 2px solid var(--bpc-ink);
	border-radius: var(--bpc-radius-lg);
}

.bpc-tutorial-facts {
	background: #fffdf8;
	box-shadow: 5px 5px 0 var(--bpc-sunshine);
}

.bpc-toc {
	box-shadow: 5px 5px 0 var(--bpc-aqua);
}

.bpc-callout {
	border-radius: var(--bpc-radius);
}

.bpc-callout--tip {
	background: var(--bpc-second-soft);
	border-color: #b5e6e2;
	border-left-color: var(--bpc-teal);
}

.bpc-callout--tip .bpc-callout__title {
	color: #085a56;
}

.bpc-callout--warning {
	background: #fff3cf;
	border-color: #f2dc9a;
	border-left-color: var(--bpc-orange);
}

.bpc-callout--warning .bpc-callout__title {
	color: #7a3d00;
}

/* Figures: rounded, outlined like a cut-out */
.bpc-content figure img,
.bpc-article__figure img {
	background: #fff;
	border: 2px solid var(--bpc-ink);
	border-radius: var(--bpc-radius-lg);
	box-shadow: 5px 5px 0 var(--bpc-line-strong);
}

/* A wide table must scroll inside the column instead of widening the page. */
.bpc-layout {
	grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 62em) {
	.bpc-layout--with-sidebar {
		grid-template-columns: minmax(0, 1fr) 20rem;
	}
}

.bpc-content th {
	background: var(--bpc-butter);
	color: var(--bpc-ink);
}

/* Footer: the same bunting, hung along its top edge */
.bpc-site-footer {
	position: relative;
	background: var(--bpc-paper-deep);
	border-top: 3px solid var(--bpc-ink);
	padding-top: calc(var(--bpc-s8) + 16px);
}

.bpc-site-footer::before {
	content: "";
	position: absolute;
	inset: 0 0 auto 0;
	height: 16px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='168' height='16' viewBox='0 0 168 16'%3E%3Cpath d='M2 0h24L14 16z' fill='%23f0437f'/%3E%3Cpath d='M30 0h24L42 16z' fill='%23ffc93c'/%3E%3Cpath d='M58 0h24L70 16z' fill='%2317b8b0'/%3E%3Cpath d='M86 0h24L98 16z' fill='%237b5cf0'/%3E%3Cpath d='M114 0h24l-12 16z' fill='%23ff8a3d'/%3E%3Cpath d='M142 0h24l-12 16z' fill='%236cc24a'/%3E%3C/svg%3E") repeat-x left top;
	pointer-events: none;
}
