/*
Theme Name: Batibull Base
Theme URI: https://associaciobatibull.org/
Author: Batibull / Pau
Description: Tema propio ligero de bloques para la reconstrucción de Batibull.
Version: 1.0.35
Requires at least: 6.6
Requires PHP: 8.1
Text Domain: batibull-base
*/

/* The visual system lives in theme.json and this file. Keep selectors intentional. */
:root {
  --bb-brand: #380d38;
  --bb-brand-deep: #230823;
  --bb-action: #e9a825;
  --bb-action-strong: #b87900;
  --bb-ink: #2f2930;
  --bb-muted: #6b646c;
  --bb-surface: #ffffff;
  --bb-surface-soft: #faf7f2;
  --bb-border: #e6ded6;
  --bb-focus: #005fcc;
  --bb-content: 72rem;
  --bb-reading: 46rem;
  --bb-radius-sm: 0.25rem;
  --bb-radius-md: 1rem;
  --bb-radius-lg: 1.5rem;
  --bb-shadow-card: 0 1.25rem 3rem rgb(56 13 56 / 9%);
  --bb-shadow-image: 0 1.5rem 3.5rem rgb(35 8 35 / 22%);
}

html { scroll-behavior: smooth; }
body { color: var(--bb-ink); background: var(--bb-surface); }
.wp-site-blocks { gap: 0; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
a { text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 0.14em; }

.bb-container { width: min(100% - 2rem, var(--bb-content)); margin-inline: auto; }
.wp-site-blocks > main.wp-block-group { max-width: none; margin-inline: 0; }
.wp-site-blocks > main.wp-block-group > .alignfull { width: 100%; max-width: none; margin-inline: 0; }
.wp-site-blocks > main.wp-block-group > .alignfull > .bb-container { width: min(100% - 2rem, var(--bb-content)); }
.bb-reading { max-width: var(--bb-reading); }
.bb-skip-link { position: absolute; left: -9999px; z-index: 100; padding: .75rem 1rem; background: var(--bb-surface); color: var(--bb-brand); }
.bb-skip-link:focus { left: 1rem; top: 1rem; }

.bb-site-header-shell { position: sticky; top: 0; z-index: 20; transform: translateY(0); transition: transform .28s cubic-bezier(.2,.7,.2,1); }
.bb-site-header { position: relative; border-bottom: 1px solid rgb(230 222 214 / 90%); background: rgb(255 255 255 / 94%); backdrop-filter: blur(14px); transition: box-shadow .25s ease, background-color .25s ease; }
.bb-site-header--scrolled .bb-site-header { box-shadow: 0 .5rem 1.5rem rgb(56 13 56 / 8%); background: rgb(255 255 255 / 97%); }
.bb-site-header--compact .bb-header__inner { min-height: 4.25rem; }
.bb-site-header--compact .bb-logo img { width: clamp(8.5rem, 13vw, 11rem); }
.bb-site-header--hidden { transform: translateY(-105%); }
.bb-header__inner { display: flex; align-items: center; gap: clamp(1rem, 2vw, 2.5rem); min-height: 5.75rem; transition: min-height .25s ease; }
.bb-logo { display: inline-flex; flex: 0 0 auto; align-items: center; }
.bb-logo img { display: block; width: clamp(9.5rem, 15vw, 12.75rem); height: auto; transition: width .25s ease; }
body.admin-bar .bb-site-header-shell { top: 32px; }
.bb-nav { display: flex; flex: 1 1 auto; align-items: center; justify-content: flex-end; gap: clamp(.65rem, 1.3vw, 1.35rem); }
.bb-nav a, .bb-languages a { color: var(--bb-ink); font-size: .84rem; font-weight: 750; letter-spacing: .01em; text-decoration: none; }
.bb-nav a:hover, .bb-languages a:hover { color: var(--bb-brand); }
.bb-nav__group { position: relative; }
.bb-nav__group summary { cursor: pointer; list-style: none; color: var(--bb-ink); font-size: .84rem; font-weight: 750; }
.bb-nav__group summary::-webkit-details-marker { display: none; }
.bb-nav__group summary::after { display: inline-block; margin-left: .28rem; content: '⌄'; font-size: .8rem; }
.bb-nav__panel { position: absolute; top: calc(100% + 1.15rem); left: 50%; display: grid; min-width: 12rem; gap: .1rem; padding: .65rem; border: 1px solid var(--bb-border); border-radius: .7rem; background: #fff; box-shadow: var(--bb-shadow-card); transform: translateX(-50%); }
.bb-nav__panel a { display: block; padding: .55rem .65rem; border-radius: .35rem; }
.bb-nav__panel a:hover { background: var(--bb-surface-soft); }
@media (hover: hover) and (min-width: 48.01rem) {
  .bb-nav__group::after { position: absolute; top: 100%; right: 0; left: 0; height: 1.15rem; content: ''; }
  .bb-nav__group:hover > .bb-nav__panel,
  .bb-nav__group:focus-within > .bb-nav__panel { display: grid; }
  .bb-nav__group:hover > summary::after,
  .bb-nav__group:focus-within > summary::after { transform: rotate(225deg) translate(-.08rem, -.08rem); }
}
.bb-nav__cta { display: inline-flex; align-items: center; justify-content: center; min-width: 6.3rem; padding: .7rem 1.1rem; border: 1px solid var(--bb-brand); border-radius: .45rem; background: var(--bb-brand); color: #fff !important; text-decoration: none; }
.bb-nav__cta > span:first-child { font-size: .86rem; }
.bb-nav__cta:hover { border-color: var(--bb-action); background: var(--bb-action); color: var(--bb-brand-deep) !important; }
.bb-languages { display: flex; flex: 0 0 auto; align-items: center; gap: .4rem; color: var(--bb-muted); font-size: .76rem; }
.bb-languages a:first-child { color: var(--bb-brand); }
.bb-header-tools { display: flex; flex: 0 0 auto; align-items: center; gap: 1.25rem; }
.bb-mobile-menu { display: none; }
.bb-mobile-menu summary { list-style: none; cursor: pointer; }
.bb-mobile-menu summary::-webkit-details-marker { display: none; }
.bb-mobile-menu__panel { position: absolute; right: .75rem; left: .75rem; top: calc(100% + .5rem); padding: 1rem; border: 1px solid var(--bb-border); border-radius: var(--bb-radius-md); background: #fff; box-shadow: var(--bb-shadow-card); }
.bb-mobile-nav { display: grid; gap: .25rem; }
.bb-mobile-nav a { display: block; padding: .8rem .7rem; border-radius: .5rem; color: var(--bb-brand); font-weight: 800; text-decoration: none; }
.bb-mobile-nav a { min-width: 0; overflow-wrap: anywhere; white-space: normal; }
.bb-mobile-nav a:hover { background: var(--bb-surface-soft); }
.bb-mobile-nav__label { margin: .8rem .7rem .2rem; color: var(--bb-gold-dark); font-size: .7rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.bb-mobile-nav .bb-nav__cta { margin-top: .5rem; text-align: center; }
.bb-mobile-menu__languages { display: flex; gap: .45rem; margin-top: .85rem; padding: .8rem .7rem 0; border-top: 1px solid var(--bb-border); color: var(--bb-muted); font-size: .8rem; font-weight: 800; }
.bb-mobile-menu__languages a { color: var(--bb-brand); text-decoration: none; }

@keyframes bb-rise-in {
  from { opacity: 0; transform: translateY(1rem); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes bb-soft-reveal {
  from { opacity: 0; transform: scale(.985); }
  to { opacity: 1; transform: scale(1); }
}
.bb-hero__copy > * { animation: bb-rise-in .7s cubic-bezier(.2,.7,.2,1) both; }
.bb-hero__copy > *:nth-child(2) { animation-delay: .08s; }
.bb-hero__copy > *:nth-child(3) { animation-delay: .16s; }
.bb-hero__copy > *:nth-child(4) { animation-delay: .24s; }
.bb-hero__media { animation: bb-soft-reveal .9s .12s cubic-bezier(.2,.7,.2,1) both; }
.bb-project-page__hero > div { animation: bb-rise-in .7s cubic-bezier(.2,.7,.2,1) both; }
.bb-project-page__media { animation: bb-soft-reveal .9s .12s cubic-bezier(.2,.7,.2,1) both; }

.bb-hero { position: relative; overflow: hidden; min-height: min(47rem, 80vh); display: grid; align-items: center; background: var(--bb-brand); color: #fff; }
.bb-hero::before { position: absolute; right: -10rem; bottom: -16rem; width: 34rem; height: 34rem; border: 1px solid rgb(233 168 37 / 35%); border-radius: 50%; box-shadow: 0 0 0 4rem rgb(233 168 37 / 7%), 0 0 0 8rem rgb(233 168 37 / 4%); content: ""; }
.bb-hero > .bb-container { position: relative; z-index: 1; }
.bb-hero__layout { display: grid; grid-template-columns: minmax(0, .92fr) minmax(22rem, 1.08fr); align-items: center; gap: clamp(2.5rem, 7vw, 7rem); padding-block: clamp(4rem, 8vw, 8rem); }
.bb-hero h1 { max-width: 10ch; margin: .65rem 0 1.25rem; color: #fff; font-size: clamp(3.25rem, 7vw, 7.1rem); letter-spacing: -.055em; line-height: .91; }
.bb-hero h1 em { color: var(--bb-action); font-style: normal; }
.bb-hero__lead { max-width: 34rem; margin: 0; color: rgb(255 255 255 / 82%); font-size: clamp(1.05rem, 1.5vw, 1.35rem); line-height: 1.45; }
.bb-hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.bb-button { display: inline-flex; align-items: center; gap: .55rem; padding: .9rem 1.15rem; border: 1px solid transparent; border-radius: 999px; font-weight: 800; text-decoration: none; transition: transform .2s ease, background-color .2s ease, color .2s ease; }
.bb-button:hover { transform: translateY(-2px); text-decoration: none; }
.bb-button--primary { background: var(--bb-action); color: var(--bb-brand-deep); }
.bb-button--primary:hover { background: #ffd267; color: var(--bb-brand-deep); }
.bb-button--ghost { border-color: rgb(255 255 255 / 48%); color: #fff; }
.bb-button--ghost:hover { border-color: #fff; background: #fff; color: var(--bb-brand); }
.bb-button--dark { background: var(--bb-brand); color: #fff; }
.bb-button--dark:hover { background: var(--bb-action); color: var(--bb-brand-deep); }
.bb-hero__note { display: flex; align-items: center; gap: .55rem; margin: 2.3rem 0 0; color: rgb(255 255 255 / 58%); font-size: .8rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.bb-dot { width: .45rem; height: .45rem; border-radius: 50%; background: var(--bb-action); }
.bb-hero__media { position: relative; margin: 0; transform: rotate(2deg); }
.bb-hero__media img { display: block; width: 100%; height: clamp(22rem, 42vw, 38rem); border: .55rem solid #fff; border-radius: var(--bb-radius-lg); box-shadow: var(--bb-shadow-image); object-fit: cover; }
.bb-hero__media figcaption { position: absolute; right: -1rem; bottom: -1.25rem; max-width: 14rem; padding: .8rem 1rem; border-radius: .5rem; background: var(--bb-action); color: var(--bb-brand-deep); font-size: .78rem; font-weight: 800; line-height: 1.25; transform: rotate(-4deg); }

.bb-section { padding-block: clamp(3.5rem, 8vw, 7rem); }
.bb-section--soft { background: var(--bb-surface-soft); }
.bb-section--cream { background: #f3e9dc; }
.bb-about { background: #fff; }
.bb-about__layout { display: grid; grid-template-columns: minmax(0, .95fr) minmax(22rem, 1.05fr); gap: clamp(3rem, 8vw, 8rem); align-items: start; }
.bb-about__copy h2 { max-width: 12ch; margin: .7rem 0 1.25rem; color: var(--bb-brand); font-size: clamp(2.7rem, 5vw, 4.9rem); letter-spacing: -.055em; line-height: .94; }
.bb-about__copy > p:not(.bb-eyebrow) { max-width: 39rem; color: var(--bb-muted); font-size: 1.08rem; line-height: 1.7; }
.bb-link--inline { margin-top: 1rem; padding-top: 0; text-decoration: none; }
.bb-link--inline::after { content: ''; width: 1.7rem; border-top: 1px solid currentColor; transform: translateY(.7rem); }
.bb-about__proof { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
.bb-about__proof article { min-height: 10rem; padding: 1.15rem; border-radius: var(--bb-radius-md); background: var(--bb-brand); color: #fff; }
.bb-about__proof article:nth-child(2) { background: var(--bb-action); color: var(--bb-brand-deep); }
.bb-about__proof article span { display: block; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(2rem, 4vw, 3.3rem); font-weight: 700; line-height: 1; }
.bb-about__proof article p { margin: 2.6rem 0 0; font-size: .82rem; font-weight: 750; line-height: 1.35; }
.bb-about__proof ul { grid-column: 1 / -1; display: grid; gap: 0; margin: .7rem 0 0; padding: 0; border-top: 1px solid var(--bb-border); }
.bb-about__proof li { display: grid; grid-template-columns: 1.2rem 1fr; gap: .7rem; padding: .9rem 0; border-bottom: 1px solid var(--bb-border); color: var(--bb-ink); list-style: none; }
.bb-about__proof li::before { color: var(--bb-action-strong); content: '●'; font-size: .55rem; transform: translateY(.35rem); }
.bb-section-heading { max-width: 44rem; }
.bb-eyebrow { color: var(--bb-action-strong); font-size: .8rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.bb-section-intro { max-width: 44rem; }
.bb-section-intro h2 { margin: .7rem 0 1rem; font-size: clamp(2.3rem, 5vw, 4.4rem); letter-spacing: -.045em; line-height: .98; }
.bb-section-intro > p:last-child { max-width: 40rem; color: var(--bb-muted); font-size: 1.1rem; }
.bb-intentions__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 3rem; }
.bb-intention { min-height: 19rem; display: flex; flex-direction: column; padding: 1.5rem; border: 1px solid var(--bb-border); border-radius: var(--bb-radius-md); background: #fff; color: var(--bb-ink); text-decoration: none; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.bb-intention:hover { border-color: var(--bb-action); box-shadow: var(--bb-shadow-card); color: var(--bb-ink); transform: translateY(-5px); text-decoration: none; }
.bb-intention__number { color: var(--bb-action-strong); font-size: .8rem; font-weight: 850; }
.bb-intention h3 { margin: 3.5rem 0 .7rem; color: var(--bb-brand); font-size: 1.55rem; }
.bb-intention p { margin: 0; color: var(--bb-muted); }
.bb-link { display: inline-flex; gap: .35rem; margin-top: auto; padding-top: 1.5rem; color: var(--bb-brand); font-size: .9rem; font-weight: 800; }
.bb-method { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 8vw, 8rem); align-items: start; }
.bb-method__intro h2 { margin: .7rem 0 1.2rem; color: var(--bb-brand); font-size: clamp(3.2rem, 7vw, 6.5rem); letter-spacing: -.07em; line-height: .84; }
.bb-method__intro h2 span { color: var(--bb-action-strong); }
.bb-method__intro p:last-child { max-width: 20rem; color: var(--bb-muted); font-size: 1.05rem; }
.bb-method__steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; padding-top: 4rem; }
.bb-method__steps article { min-height: 13rem; padding-top: 1.1rem; border-top: 3px solid var(--bb-action); }
.bb-method__steps article > span { color: var(--bb-action-strong); font-size: .8rem; font-weight: 850; }
.bb-method__steps h3 { margin: 3.2rem 0 .55rem; color: var(--bb-brand); font-size: 1.35rem; }
.bb-method__steps p { margin: 0; color: var(--bb-muted); font-size: .94rem; }
.bb-section-intro--row { display: grid; grid-template-columns: 1fr .7fr; align-items: end; gap: 3rem; }
.bb-section-intro--row > p { margin: 0 0 .6rem; color: var(--bb-muted); }
.bb-projects__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 3rem; }
.bb-project { overflow: hidden; border-radius: var(--bb-radius-md); background: var(--bb-brand-deep); color: #fff; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.bb-project:hover { box-shadow: var(--bb-shadow-image); color: #fff; transform: translateY(-5px); text-decoration: none; }
.bb-project__image { height: 14rem; overflow: hidden; background: #efe8e0; }
.bb-project__image img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.bb-project:hover .bb-project__image img { transform: scale(1.04); }
.bb-project__image--logo { display: grid; place-items: center; }
.bb-project__image--logo img { width: 58%; height: auto; object-fit: contain; mix-blend-mode: multiply; }
.bb-project__body { padding: 1.4rem 1.4rem 1.55rem; }
.bb-project__body > span { color: var(--bb-action); font-size: .72rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.bb-project__body h3 { margin: .6rem 0 .55rem; color: #fff; font-size: 1.5rem; }
.bb-project__body p { min-height: 3.2rem; margin: 0; color: rgb(255 255 255 / 70%); font-size: .94rem; }
.bb-project__body b { display: inline-flex; gap: .35rem; margin-top: 1.3rem; color: #fff; font-size: .86rem; }
.bb-school { display: grid; grid-template-columns: minmax(18rem, .85fr) 1.15fr; align-items: center; gap: clamp(2rem, 7vw, 7rem); }
.bb-school__image { overflow: hidden; border-radius: var(--bb-radius-lg); transform: rotate(-2deg); box-shadow: var(--bb-shadow-image); }
.bb-school__image img { display: block; width: 100%; height: 25rem; object-fit: cover; }
.bb-school__copy h2 { max-width: 12ch; margin: .7rem 0 1rem; color: var(--bb-brand); font-size: clamp(2.25rem, 4.2vw, 4rem); letter-spacing: -.055em; line-height: .96; }
.bb-school__copy p:not(.bb-eyebrow) { max-width: 37rem; margin-bottom: 1.75rem; color: var(--bb-muted); font-size: 1.06rem; }

.bb-site-footer { background: var(--bb-brand-deep); color: rgb(255 255 255 / 74%); }
.bb-footer__grid { display: grid; grid-template-columns: 1.35fr repeat(3, .75fr); gap: clamp(1.5rem, 4vw, 3.5rem); padding-block: 4rem 3.5rem; }
.bb-footer__logo { display: inline-flex; padding: .4rem .7rem; border-radius: .35rem; background: #fff; }
.bb-footer__logo img { display: block; width: 10.5rem; height: auto; }
.bb-footer__claim { max-width: 17rem; margin-top: 1.2rem; color: rgb(255 255 255 / 62%); font-size: .95rem; }
.bb-footer__label { margin: 0 0 1rem; color: var(--bb-action); font-size: .75rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.bb-footer__grid a:not(.bb-footer__logo) { display: block; margin-bottom: .65rem; color: #fff; font-size: .92rem; text-decoration: none; }
.bb-footer__grid a:hover { color: var(--bb-action); }
.bb-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding: 1rem 0 1.4rem; border-top: 1px solid rgb(255 255 255 / 18%); color: rgb(255 255 255 / 52%); font-size: .78rem; }
.bb-footer__bottom a { color: rgb(255 255 255 / 72%); }

.wp-block-button__link:focus-visible,
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible { outline: 3px solid var(--bb-focus); outline-offset: 3px; }

@media (max-width: 48rem) {
  .bb-utility-bar { display: none; }
  .bb-container { width: min(100% - 1.25rem, var(--bb-content)); }
  .bb-header__inner { position: relative; gap: .6rem 1rem; padding-block: .7rem; }
  .bb-logo img { width: 9.5rem; }
  body.admin-bar .bb-site-header-shell { top: 46px; }
  .bb-nav, .bb-header-tools { display: none; }
  .bb-nav__group { display: none; }
  .bb-mobile-menu { display: block; margin-left: auto; }
  .bb-mobile-menu summary { padding: .6rem .8rem; border: 1px solid var(--bb-brand); border-radius: 999px; color: var(--bb-brand); font-size: .8rem; font-weight: 850; }
  .bb-mobile-menu[open] summary { background: var(--bb-brand); color: #fff; }
  .bb-mobile-nav .bb-nav__cta { display: flex; justify-content: center; margin-top: .5rem; text-align: center; }
  .bb-mobile-nav .bb-nav__cta small { display: inline; }
  .bb-hero { min-height: 0; }
  .bb-hero__layout { grid-template-columns: 1fr; gap: 2.5rem; padding-block: 4rem 5rem; }
  .bb-hero h1 { max-width: 11ch; font-size: clamp(3.45rem, 16vw, 5.6rem); }
  .bb-hero__media { width: min(100%, 34rem); margin-inline: auto; }
  .bb-hero__media img { height: 21rem; }
  .bb-intentions__grid, .bb-projects__grid { grid-template-columns: 1fr; }
  .bb-about__layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .bb-about__proof { grid-template-columns: 1fr 1fr; }
  .bb-about__proof article:last-of-type { grid-column: 1 / -1; }
  .bb-intention { min-height: 15rem; }
  .bb-method, .bb-school { grid-template-columns: 1fr; gap: 2rem; }
  .bb-method__steps { padding-top: 1rem; }
  .bb-section-intro--row { grid-template-columns: 1fr; gap: .4rem; }
  .bb-school__image { order: 2; }
  .bb-school__image img { height: 20rem; }
  .bb-footer__grid { grid-template-columns: 1fr 1fr; gap: 2rem 1.5rem; }
  .bb-footer__grid > div:first-child { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Shared content system for pages, news, projects and native blocks. */
.wp-site-blocks > main:not(.bb-homepage):not(.bb-hero):not(.bb-project-page) { padding-block: clamp(3.5rem, 7vw, 6.5rem); }
.wp-site-blocks > main:not(.bb-homepage):not(.bb-hero):not(.bb-project-page) > .wp-block-group:not(.alignfull),
.wp-site-blocks > main:not(.bb-homepage):not(.bb-hero):not(.bb-project-page) > .wp-block-query { width: min(100% - 2rem, var(--bb-content)); margin-inline: auto; }
.wp-block-post-title { max-width: 14ch; margin: 0 0 2rem; color: var(--bb-brand); font-size: clamp(2.8rem, 7vw, 6rem); letter-spacing: -.065em; line-height: .92; }
.wp-block-post-featured-image { overflow: hidden; margin: 0 0 2.5rem; border-radius: var(--bb-radius-lg); background: var(--bb-surface-soft); }
.wp-block-post-featured-image img { display: block; width: 100%; max-height: 34rem; object-fit: cover; }
.wp-block-post-content { max-width: var(--bb-reading); color: var(--bb-muted); font-size: 1.05rem; line-height: 1.72; }
.wp-block-post-content h2, .wp-block-post-content h3, .wp-block-post-content h4 { color: var(--bb-brand); letter-spacing: -.035em; line-height: 1.05; }
.wp-block-post-content h2 { margin-top: 3.2rem; font-size: clamp(2rem, 4vw, 3.4rem); }
.wp-block-post-content h3 { margin-top: 2.4rem; font-size: 1.55rem; }
.wp-block-post-content a { color: var(--bb-brand); font-weight: 750; }
.wp-block-post-content img { border-radius: var(--bb-radius-md); }
.wp-block-post-content blockquote { margin-inline: 0; padding: 1.25rem 1.5rem; border-left: 4px solid var(--bb-action); border-radius: 0 var(--bb-radius-sm) var(--bb-radius-sm) 0; background: var(--bb-surface-soft); color: var(--bb-brand); font-size: 1.2rem; }
.bb-reading .wp-block-post-date { margin-bottom: 1rem; color: var(--bb-action-strong); font-size: .78rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.wp-block-query-title { width: min(100% - 2rem, var(--bb-content)); margin: 0 auto 2rem; color: var(--bb-brand); font-size: clamp(2.5rem, 6vw, 5.2rem); letter-spacing: -.06em; line-height: .95; }
.wp-block-post-template { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; width: min(100% - 2rem, var(--bb-content)); margin-inline: auto; }
.wp-block-post-template > li { list-style: none; margin: 0; }
.wp-block-post-template .bb-card { height: 100%; padding: 1.5rem; border: 1px solid var(--bb-border); border-radius: var(--bb-radius-md); background: #fff; transition: transform .2s ease, box-shadow .2s ease; }
.wp-block-post-template .bb-card:hover { transform: translateY(-4px); box-shadow: var(--bb-shadow-card); }
.wp-block-post-template .bb-card h2 { margin: 0 0 .75rem; color: var(--bb-brand); font-size: 1.35rem; line-height: 1.05; }
.wp-block-post-template .bb-card h2 a { color: inherit; text-decoration: none; }
.wp-block-post-template .bb-card p { margin: 0; color: var(--bb-muted); line-height: 1.55; }
.wp-block-query-pagination { width: min(100% - 2rem, var(--bb-content)); margin: 2.5rem auto 0; color: var(--bb-brand); }
.wp-block-buttons { gap: .75rem; }
.wp-block-button__link { border-radius: .7rem; font-weight: 800; }
.wp-block-separator { max-width: var(--bb-content); margin-block: 3rem; border-color: var(--bb-border); }
.wp-block-table { overflow-x: auto; }
.wp-block-table table { border-color: var(--bb-border); }
.wp-block-table th { background: var(--bb-brand); color: #fff; }
.wp-block-table td, .wp-block-table th { padding: .75rem 1rem; }
input, textarea, select { width: 100%; border: 1px solid var(--bb-border); border-radius: .55rem; background: #fff; color: var(--bb-ink); }
input:focus, textarea:focus, select:focus { border-color: var(--bb-brand); box-shadow: 0 0 0 3px rgb(239 181 71 / 25%); outline: 0; }

@media (max-width: 48rem) {
  .bb-utility-bar { display: none; }
  .wp-block-post-template { grid-template-columns: 1fr; }
  .wp-block-post-title { max-width: 11ch; }
  .wp-block-post-featured-image img { max-height: 22rem; }
  .wp-block-post-content { font-size: 1rem; }
}

/* Scroll reveal is applied by the tiny theme script only after the DOM is ready. */
.bb-reveal { opacity: 0; translate: 0 1.15rem; transition: opacity .65s cubic-bezier(.2,.7,.2,1) var(--bb-reveal-delay, 0ms), translate .65s cubic-bezier(.2,.7,.2,1) var(--bb-reveal-delay, 0ms); }
.bb-reveal.is-visible { opacity: 1; translate: 0 0; }

.bb-project-page { padding-block: clamp(3rem, 7vw, 6rem); }

/* Area pages preserve the original page content and give it a consistent editorial frame. */
.bb-area-page { padding: 0 !important; }
.bb-area-hero { padding-block: clamp(3.5rem, 8vw, 7rem); background: var(--bb-brand); color: #fff; }
.bb-area-hero__layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(20rem, 1.2fr); align-items: center; gap: clamp(2.5rem, 7vw, 7rem); }
.bb-area-hero--text-only { padding-block: clamp(3rem, 6vw, 5rem); }
.bb-area-hero__layout--text-only { grid-template-columns: minmax(0, 1fr); min-height: clamp(12rem, 24vw, 18rem); align-content: center; }
.bb-area-hero__layout--text-only > .wp-block-group { width: 100%; max-width: 68rem; }
.bb-area-hero__layout--text-only .wp-block-post-title { max-width: 12ch; font-size: clamp(4rem, 9vw, 7.25rem); overflow-wrap: normal; word-break: normal; }
.bb-area-hero__layout--text-only .bb-area-hero__image { display: none; }
.bb-area-hero .bb-eyebrow { color: var(--bb-action); }
.bb-area-hero .wp-block-post-title { margin: .65rem 0 0; color: #fff; }
.bb-area-hero__image { margin: 0; transform: rotate(1.5deg); }
.bb-area-hero__image img { height: clamp(20rem, 38vw, 34rem); border: .5rem solid #fff; border-radius: var(--bb-radius-lg); box-shadow: var(--bb-shadow-image); object-fit: cover; }
.bb-area-content { padding-block: clamp(3.5rem, 8vw, 7rem); }
.bb-area-content > .wp-block-post-content { max-width: var(--bb-content); margin-left: 0; }
.bb-area-content .wp-block-post-content > p:not(.bb-legacy-project), .bb-area-content .wp-block-post-content > ul, .bb-area-content .wp-block-post-content > ol { max-width: var(--bb-reading); }
.bb-area-content .wp-block-post-content > p > img:only-child { display: block; width: 100%; max-height: 32rem; object-fit: cover; }
.bb-legacy-projects { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; max-width: var(--bb-content); margin-top: 2.5rem; }
.bb-legacy-project { margin: 0; padding: 1.25rem; border: 1px solid var(--bb-border); border-radius: var(--bb-radius-md); background: #fff; color: var(--bb-muted); line-height: 1.6; text-align: left !important; box-shadow: 0 .5rem 1.8rem rgb(56 13 56 / 3%); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.bb-legacy-section-title { max-width: var(--bb-content); margin: clamp(3rem, 7vw, 5rem) 0 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--bb-border); color: var(--bb-brand); font-size: clamp(2rem, 4vw, 3.5rem); letter-spacing: -.045em; line-height: 1; }
.bb-legacy-section-title:first-child { margin-top: 0; }
.bb-legacy-project--title-only { grid-column: 1 / -1; padding-block: 1rem; background: var(--bb-surface-soft); box-shadow: none; }
.bb-legacy-project--title-only strong:first-of-type, .bb-legacy-project--title-only b:first-of-type { display: block; }
.bb-legacy-project:hover { border-color: var(--bb-action); box-shadow: var(--bb-shadow-card); transform: translateY(-3px); }
.bb-legacy-project strong:first-of-type, .bb-legacy-project b:first-of-type { color: var(--bb-brand); font-size: 1.08rem; letter-spacing: -.01em; }
.bb-legacy-project em { color: var(--bb-action-strong); font-size: .88rem; }
.bb-legacy-project a { color: var(--bb-brand); font-weight: 800; }
.bb-area-links { display: flex; flex-wrap: wrap; gap: .65rem; max-width: var(--bb-reading); margin-top: 3.5rem; padding-top: 1.5rem; border-top: 1px solid var(--bb-border); }
.bb-area-links span { flex-basis: 100%; color: var(--bb-muted); font-size: .75rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.bb-area-links a { padding: .55rem .8rem; border: 1px solid var(--bb-border); border-radius: 999px; color: var(--bb-brand); font-size: .88rem; font-weight: 800; text-decoration: none; }
.bb-area-links a:hover { border-color: var(--bb-action); background: var(--bb-surface-soft); }

/* Generic fallback so every existing page inherits the redesign. */
.bb-standard-page, .bb-search-page { padding: 0 !important; }
.bb-standard-page__head { padding-block: clamp(3rem, 7vw, 5.5rem); background: var(--bb-surface-soft); }
.bb-standard-page__head .wp-block-post-title, .bb-standard-page__head .wp-block-query-title { margin: .65rem 0 0; }
.bb-standard-page__body { padding-block: clamp(3rem, 7vw, 6rem); }
.bb-standard-page__body > .wp-block-post-featured-image { max-width: var(--bb-content); }
.bb-standard-page__body > .wp-block-post-content { margin-inline: auto; }
.bb-legal-page .bb-standard-page__body > .wp-block-post-content { max-width: var(--bb-reading); }
.bb-legal-page .wp-block-post-content h2 { margin-top: 3rem; padding-top: 1.25rem; border-top: 1px solid var(--bb-border); color: var(--bb-brand); font-size: clamp(1.65rem, 3vw, 2.45rem); }
.bb-legal-page .wp-block-post-content h3 { margin-top: 2rem; color: var(--bb-brand); font-size: 1.3rem; }
.bb-legal-page .wp-block-post-content p, .bb-legal-page .wp-block-post-content li { color: var(--bb-muted); line-height: 1.75; }
.bb-search-page .wp-block-search { max-width: 42rem; margin-top: 2rem; }
.bb-search-page .wp-block-search__inside-wrapper { padding: .35rem; border: 1px solid var(--bb-border); border-radius: .7rem; background: #fff; }
.bb-search-page .wp-block-search__input { border: 0; box-shadow: none; }
.bb-search-page .wp-block-search__button { border-radius: .45rem; background: var(--bb-brand); color: #fff; }
.bb-search-results { width: min(100% - 2rem, var(--bb-content)); margin-inline: auto; padding-block: clamp(3rem, 7vw, 6rem); }
.bb-search-results .wp-block-post-template { display: grid; grid-template-columns: 1fr; width: 100%; max-width: var(--bb-reading); margin-inline: 0; }
.bb-search-result { padding: 1.4rem 0; border-bottom: 1px solid var(--bb-border); }
.bb-search-result .wp-block-post-type { color: var(--bb-action-strong); font-size: .72rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.bb-search-result .wp-block-post-title { margin: .35rem 0 .6rem; font-size: clamp(1.55rem, 3vw, 2.3rem); }
.bb-search-result .wp-block-post-title a { color: var(--bb-brand); text-decoration: none; }

/* Program, trust and course templates. */
.bb-program-page, .bb-trust-page, .bb-course-landing { padding: 0 !important; }
.bb-program-hero { padding-block: clamp(3.5rem, 8vw, 7rem); background: #f3e9dc; }
.bb-program-hero__layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(20rem, 1.1fr); align-items: center; gap: clamp(2.5rem, 7vw, 7rem); }
.bb-program-hero .wp-block-post-title, .bb-course-landing__hero .wp-block-post-title { margin: .65rem 0 1.2rem; }
.bb-program-hero p:not(.bb-eyebrow), .bb-course-landing__hero p:not(.bb-eyebrow) { max-width: 36rem; color: var(--bb-muted); font-size: 1.08rem; }
.bb-program-hero__image, .bb-course-landing__image { margin: 0; }
.bb-program-hero__image img, .bb-course-landing__image img { height: clamp(21rem, 38vw, 34rem); border-radius: var(--bb-radius-lg); object-fit: cover; box-shadow: var(--bb-shadow-image); }
.bb-program-content, .bb-trust-content, .bb-course-landing__content { padding-block: clamp(3.5rem, 8vw, 7rem); }
.bb-program-content > .wp-block-post-content, .bb-trust-content > .wp-block-post-content, .bb-course-landing__content > .wp-block-post-content { margin-inline: auto; }
.bb-inline-cta { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; max-width: var(--bb-content); margin-top: 4rem; padding: clamp(1.4rem, 3vw, 2rem); border-radius: var(--bb-radius-md); background: var(--bb-surface-soft); }
.bb-inline-cta span, .bb-course-contact span { display: block; margin-bottom: .3rem; color: var(--bb-action-strong); font-size: .75rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.bb-inline-cta strong { display: block; max-width: 36rem; color: var(--bb-brand); font-size: clamp(1.25rem, 2vw, 1.7rem); line-height: 1.2; }
.bb-trust-hero { padding-block: clamp(3.5rem, 8vw, 6.5rem); background: var(--bb-brand); color: #fff; }
.bb-trust-hero .bb-eyebrow { color: var(--bb-action); }
.bb-trust-hero .wp-block-post-title { margin: .65rem 0 1rem; color: #fff; }
.bb-trust-hero .bb-reading { color: rgb(255 255 255 / 74%); font-size: 1.1rem; }
.bb-course-landing__hero { padding-block: clamp(3.5rem, 8vw, 7rem); background: var(--bb-surface-soft); }
.bb-course-landing__layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(20rem, 1fr); align-items: center; gap: clamp(2.5rem, 7vw, 7rem); }
.bb-course-contact { display: flex; align-items: center; justify-content: space-between; gap: 1rem; max-width: var(--bb-reading); margin: 3.5rem auto 0; padding-top: 1.5rem; border-top: 1px solid var(--bb-border); }
.bb-not-found { display: grid; min-height: 68vh; place-items: center; padding-block: clamp(4rem, 10vw, 8rem); background: var(--bb-surface-soft); }
.bb-not-found__layout { text-align: center; }
.bb-not-found__code { margin: 0; color: var(--bb-action); font-family: Georgia, 'Times New Roman', serif; font-size: clamp(5rem, 15vw, 11rem); font-weight: 700; letter-spacing: -.08em; line-height: .75; }
.bb-not-found h1 { margin: 1.4rem auto 1rem; color: var(--bb-brand); font-size: clamp(2.5rem, 6vw, 5rem); letter-spacing: -.055em; }
.bb-not-found .bb-reading { margin-inline: auto; color: var(--bb-muted); }
.bb-not-found .wp-block-search { max-width: 38rem; margin: 2rem auto; }
.bb-not-found .wp-block-search__inside-wrapper { padding: .35rem; border: 1px solid var(--bb-border); border-radius: .7rem; background: #fff; }
.bb-not-found .wp-block-search__input { border: 0; box-shadow: none; }
.bb-not-found .wp-block-search__button { border-radius: .45rem; background: var(--bb-brand); color: #fff; }
.bb-not-found .wp-block-buttons { justify-content: center; }

/* Reusable project template for the historical multilingual catalogue. */
.bb-dynamic-project { padding: 0 !important; }
.bb-dynamic-hero { padding-block: clamp(3.5rem, 8vw, 7rem); background: var(--bb-surface-soft); }
.bb-dynamic-hero__layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(20rem, 1.1fr); align-items: center; gap: clamp(2.5rem, 7vw, 7rem); }
.bb-dynamic-hero__layout--text-only { grid-template-columns: minmax(0, 1fr); min-height: clamp(18rem, 38vw, 30rem); align-content: center; }
.bb-dynamic-hero .wp-block-post-title { max-width: 12ch; margin: .65rem 0 0; font-size: clamp(3.4rem, 7vw, 6.8rem); }
.bb-dynamic-hero__image { margin: 0; }
.bb-dynamic-hero__image img { height: clamp(21rem, 38vw, 34rem); border-radius: var(--bb-radius-lg); object-fit: cover; box-shadow: var(--bb-shadow-image); }
.bb-dynamic-project__content { padding-block: clamp(3.5rem, 8vw, 7rem); }
.bb-dynamic-project__content > .wp-block-post-content { margin-inline: auto; }
@media (max-width: 48rem) { .bb-dynamic-hero__layout { grid-template-columns: 1fr; } .bb-dynamic-hero__layout--text-only { min-height: 18rem; } .bb-dynamic-hero__image img { height: 21rem; } }

/* News and article system: visible authorship, dates and editorial accountability. */
.bb-news-index { padding: 0 !important; }
.bb-news-index__head { padding-block: clamp(3.5rem, 8vw, 6.5rem); background: var(--bb-surface-soft); }
.bb-news-index__head h1, .bb-news-index__head .wp-block-query-title { max-width: 13ch; margin: .7rem 0 1rem; color: var(--bb-brand); font-size: clamp(3rem, 7vw, 6rem); letter-spacing: -.06em; line-height: .92; }
.bb-news-query { width: min(100% - 2rem, var(--bb-content)); margin: 0 auto; padding-block: clamp(3.5rem, 7vw, 6rem); }
.bb-news-query .wp-block-post-template { width: 100%; }
.bb-news-card { overflow: hidden; height: 100%; border: 1px solid var(--bb-border); border-radius: var(--bb-radius-md); background: #fff; }
.bb-news-card > *:not(.wp-block-post-featured-image) { margin-inline: 1.25rem; }
.bb-news-card .wp-block-post-featured-image { margin: 0 0 1.25rem; border-radius: 0; }
.bb-news-card .wp-block-post-date, .bb-news-card .wp-block-post-author-name { color: var(--bb-muted); font-size: .75rem; }
.bb-news-card .wp-block-post-title { margin-top: .4rem; font-size: 1.45rem; letter-spacing: -.03em; line-height: 1.05; }
.bb-news-card .wp-block-post-title a { color: var(--bb-brand); text-decoration: none; }
.bb-news-card .wp-block-post-excerpt { padding-bottom: 1.25rem; color: var(--bb-muted); font-size: .93rem; }
.bb-article { padding: 0 !important; }
.bb-article__head { padding-block: clamp(3.5rem, 8vw, 6.5rem); background: var(--bb-surface-soft); }
.bb-article__head .wp-block-post-title { max-width: 18ch; font-size: clamp(2.8rem, 5.8vw, 5.4rem); text-wrap: balance; }
.bb-article__terms a { color: var(--bb-action-strong); font-size: .78rem; font-weight: 850; letter-spacing: .08em; text-decoration: none; text-transform: uppercase; }
.bb-article__meta { gap: .5rem 1.2rem; color: var(--bb-muted); font-size: .86rem; }
.bb-article__meta a { color: var(--bb-brand); font-weight: 800; text-decoration: none; }
.bb-article__body { padding-block: clamp(3rem, 7vw, 6rem); }
.bb-article__body > .wp-block-post-content { margin-inline: auto; }
.bb-author-box { max-width: var(--bb-reading); margin: 4rem auto 0; padding: 1.5rem; border: 1px solid var(--bb-border); border-radius: var(--bb-radius-md); background: var(--bb-surface-soft); }
.bb-author-box .wp-block-post-author { align-items: center; }
.bb-author-box p:last-child { margin-bottom: 0; color: var(--bb-muted); font-size: .9rem; }
.bb-author-identity { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); align-items: center; gap: 1.4rem; }
.bb-author-identity img { display: block; width: 100%; height: auto; padding: .55rem; border-radius: .5rem; background: #fff; }
.bb-author-identity strong { color: var(--bb-brand); font-size: 1.15rem; }
.bb-author-identity p { margin: .3rem 0 .5rem; }
.bb-author-identity a { color: var(--bb-brand); font-size: .86rem; font-weight: 800; }
@media (max-width: 36rem) { .bb-author-identity { grid-template-columns: 1fr; } .bb-author-identity img { width: 8.5rem; } }
.bb-article__navigation { max-width: var(--bb-reading); margin: 2rem auto 0; padding-top: 1.5rem; border-top: 1px solid var(--bb-border); }
.bb-article__navigation a { color: var(--bb-brand); font-weight: 800; text-decoration: none; }
.bb-project-page__hero { display: grid; grid-template-columns: minmax(0, .85fr) minmax(18rem, 1.15fr); align-items: center; gap: clamp(2rem, 7vw, 7rem); padding-bottom: clamp(3rem, 7vw, 6rem); }
.bb-project-page__hero h1 { max-width: 10ch; margin: .6rem 0 1.2rem; color: var(--bb-brand); font-size: clamp(3rem, 7vw, 6.7rem); letter-spacing: -.06em; line-height: .9; }
.bb-project-page__lead { max-width: 38rem; color: var(--bb-muted); font-size: clamp(1.1rem, 1.6vw, 1.35rem); line-height: 1.5; }
.bb-project-page__media { overflow: hidden; margin: 0; border-radius: var(--bb-radius-lg); box-shadow: var(--bb-shadow-image); transform: rotate(2deg); }
.bb-project-page__media img { display: block; width: 100%; height: clamp(20rem, 42vw, 36rem); object-fit: cover; }
.bb-project-page__content { display: grid; grid-template-columns: minmax(12rem, .6fr) minmax(0, 1.4fr); gap: clamp(2rem, 8vw, 8rem); padding-top: clamp(3rem, 7vw, 6rem); border-top: 1px solid var(--bb-border); }
.bb-project-page__facts { display: grid; align-content: start; gap: 1rem; }
.bb-project-page__fact { padding-top: .85rem; border-top: 2px solid var(--bb-action); }
.bb-project-page__fact strong { display: block; color: var(--bb-brand); font-size: 1.05rem; }
.bb-project-page__fact span { display: block; margin-top: .25rem; color: var(--bb-muted); font-size: .9rem; }
.bb-project-page__prose { max-width: var(--bb-reading); }
.bb-project-page__prose h2 { margin: 0 0 1rem; color: var(--bb-brand); font-size: clamp(2rem, 4vw, 3.4rem); letter-spacing: -.04em; line-height: 1; }
.bb-project-page__prose h3 { margin: 2.6rem 0 .7rem; color: var(--bb-brand); font-size: 1.35rem; }
.bb-project-page__prose p, .bb-project-page__prose li { color: var(--bb-muted); font-size: 1.05rem; line-height: 1.7; }
.bb-institution-page .bb-project-page__prose > p { text-align: justify; text-justify: inter-word; }
.bb-project-page__prose ul { padding-left: 1.25rem; }
.bb-project-page__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.2rem; }
@media (max-width: 48rem) { .bb-project-page__hero, .bb-project-page__content { grid-template-columns: 1fr; gap: 2rem; } .bb-project-page__hero h1 { max-width: 12ch; } .bb-project-page__media { order: -1; transform: none; } .bb-project-page__media img { height: 20rem; } }
@media (max-width: 48rem) { .bb-area-hero__layout { grid-template-columns: 1fr; } .bb-area-hero__layout--text-only { min-height: 13rem; } .bb-area-hero__layout--text-only .wp-block-post-title { max-width: none; font-size: clamp(3.25rem, 16vw, 5.25rem); } .bb-area-hero__image { transform: none; } .bb-area-hero__image img { height: 21rem; } .bb-legacy-projects { grid-template-columns: 1fr; } .bb-news-query .wp-block-post-template { grid-template-columns: 1fr; } }
@media (max-width: 48rem) { .bb-program-hero__layout, .bb-course-landing__layout { grid-template-columns: 1fr; } .bb-inline-cta, .bb-course-contact { align-items: flex-start; flex-direction: column; } }

.bb-team-grid { padding-top: clamp(3rem, 7vw, 6rem); border-top: 1px solid var(--bb-border); }
.bb-team-grid > h2 { margin: 0 0 2rem; color: var(--bb-brand); font-size: clamp(2rem, 4vw, 3.4rem); letter-spacing: -.04em; }
.bb-team-grid__items { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.bb-team-card { min-height: 13rem; padding: 1.4rem; border: 1px solid var(--bb-border); border-radius: var(--bb-radius-md); background: var(--bb-surface-soft); }
.bb-team-card h3 { margin: 0 0 .8rem; color: var(--bb-brand); font-size: 1.3rem; }
.bb-team-card p { margin: 0; color: var(--bb-muted); line-height: 1.6; }
.bb-form-card { margin-top: 2.2rem; padding: clamp(1.25rem, 3vw, 2rem); border-radius: var(--bb-radius-md); background: var(--bb-surface-soft); }
.bb-form-card h3 { margin-top: 0; }
@media (max-width: 48rem) { .bb-team-grid__items { grid-template-columns: 1fr; } }

/* Escola de lleure: course-led page, using the same visual system as the home. */
.bb-school-page { overflow: clip; }
.bb-school-hero { background: var(--bb-surface-soft); }
.bb-school-hero__layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(20rem, 1.1fr); align-items: center; gap: clamp(2.5rem, 7vw, 7rem); padding-block: clamp(3.5rem, 8vw, 7rem); }
.bb-school-hero__copy h1 { max-width: 9ch; margin: .65rem 0 1.25rem; color: var(--bb-brand); font-size: clamp(3.2rem, 7vw, 6.7rem); letter-spacing: -.065em; line-height: .9; }
.bb-school-hero__lead { max-width: 35rem; margin: 0; color: var(--bb-muted); font-size: clamp(1.08rem, 1.55vw, 1.32rem); line-height: 1.5; }
.bb-school-hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.bb-button--outline { border-color: var(--bb-brand); color: var(--bb-brand); }
.bb-button--outline:hover { background: var(--bb-brand); color: #fff; }
.bb-school-hero__media { position: relative; margin: 0; transform: rotate(2deg); animation: bb-soft-reveal .9s .12s cubic-bezier(.2,.7,.2,1) both; }
.bb-school-hero__media img { display: block; width: 100%; height: clamp(22rem, 42vw, 38rem); border: .55rem solid #fff; border-radius: var(--bb-radius-lg); box-shadow: var(--bb-shadow-image); object-fit: cover; }
.bb-school-hero__media figcaption { position: absolute; right: -1rem; bottom: -1.1rem; max-width: 14rem; padding: .8rem 1rem; border-radius: .5rem; background: var(--bb-action); color: var(--bb-brand-deep); font-size: .78rem; font-weight: 800; line-height: 1.25; transform: rotate(-4deg); }
.bb-school-hero__copy > * { animation: bb-rise-in .7s cubic-bezier(.2,.7,.2,1) both; }
.bb-school-hero__copy > *:nth-child(2) { animation-delay: .08s; }
.bb-school-hero__copy > *:nth-child(3) { animation-delay: .16s; }
.bb-school-hero__copy > *:nth-child(4) { animation-delay: .24s; }
.bb-school-section-heading { max-width: 48rem; }
.bb-school-section-heading h2, .bb-school-method h2 { margin: .7rem 0 1rem; color: var(--bb-brand); font-size: clamp(2.5rem, 5vw, 4.6rem); letter-spacing: -.055em; line-height: .94; }
.bb-school-section-heading > p:last-child { max-width: 43rem; color: var(--bb-muted); font-size: 1.08rem; line-height: 1.6; }
.bb-course-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 3rem; }
.bb-course-card { display: flex; min-height: 20rem; flex-direction: column; padding: 1.5rem; border: 1px solid var(--bb-border); border-radius: var(--bb-radius-md); background: #fff; box-shadow: 0 .6rem 2rem rgb(56 13 56 / 3%); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.bb-course-card:hover { border-color: var(--bb-action); box-shadow: var(--bb-shadow-card); transform: translateY(-5px); }
.bb-course-card__number { color: var(--bb-action-strong); font-size: .8rem; font-weight: 850; }
.bb-course-card h3 { max-width: 10ch; margin: 3.5rem 0 .7rem; color: var(--bb-brand); font-size: 1.6rem; line-height: 1; }
.bb-course-card p { margin: 0; color: var(--bb-muted); line-height: 1.55; }
.bb-course-card a { display: inline-flex; gap: .35rem; margin-top: auto; padding-top: 1.5rem; color: var(--bb-brand); font-size: .9rem; font-weight: 800; text-decoration: none; }
.bb-course-card a:hover { color: var(--bb-action-strong); }
.bb-school-method { background: #fff; }
.bb-school-method__layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 8vw, 8rem); align-items: start; }
.bb-school-method__content > p { max-width: 42rem; margin: .8rem 0 2rem; color: var(--bb-muted); font-size: 1.12rem; line-height: 1.7; }
.bb-school-method__steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.bb-school-method__steps span { padding-top: 1rem; border-top: 3px solid var(--bb-action); color: var(--bb-brand); font-size: clamp(1.3rem, 2.5vw, 2rem); font-weight: 850; }
@media (max-width: 48rem) {
  .bb-school-hero__layout, .bb-school-method__layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .bb-school-hero__copy h1 { max-width: 10ch; font-size: clamp(3.3rem, 15vw, 5.5rem); }
  .bb-school-hero__media { order: 2; transform: none; }
  .bb-school-hero__media img { height: 21rem; }
  .bb-school-hero__media figcaption { right: .5rem; }
  .bb-course-grid { grid-template-columns: 1fr; }
  .bb-course-card { min-height: 16rem; }
  .bb-course-card h3 { margin-top: 2.5rem; }
}

/* Final CAT pass: remove template-part gaps and keep every hero useful. */
.wp-site-blocks > .wp-block-template-part,
.wp-site-blocks > .wp-block-template-part + main,
.wp-site-blocks > main { margin-block-start: 0 !important; }
.bb-site-header-shell { margin-block: 0 !important; }
.bb-hero { min-height: min(38rem, 68vh); }
.bb-hero__layout { padding-block: clamp(3rem, 5vw, 5rem); }
.bb-hero h1 { font-size: clamp(3rem, 6vw, 6rem); }
.bb-hero__media img { height: clamp(18rem, 32vw, 30rem); }
.bb-area-hero { padding-block: clamp(2.75rem, 5vw, 4.5rem); }
.bb-area-hero__layout--text-only { min-height: clamp(10rem, 20vw, 15rem); }
.bb-area-hero__layout--text-only .wp-block-post-title { font-size: clamp(3rem, 7vw, 5.75rem); }
.bb-program-hero, .bb-course-landing__hero, .bb-dynamic-hero { padding-block: clamp(2.75rem, 5vw, 4.75rem); }
.bb-program-hero__image img, .bb-course-landing__image img, .bb-dynamic-hero__image img { height: clamp(18rem, 32vw, 29rem); }
.bb-trust-hero { padding-block: clamp(2.5rem, 4.5vw, 4rem); }
.bb-trust-hero--compact { min-height: 0; }
.bb-trust-hero .wp-block-post-title, .bb-trust-hero h1 { max-width: none; font-size: clamp(3rem, 6.4vw, 5.75rem); }
.bb-trust-hero__lead { max-width: 42rem; margin: 0; color: rgb(255 255 255 / 76%); font-size: clamp(1rem, 1.5vw, 1.2rem); line-height: 1.5; }
.bb-content-intro { max-width: 47rem; margin-bottom: 3rem; }
.bb-content-intro h2 { max-width: 15ch; margin: .65rem 0 1rem; color: var(--bb-brand); font-size: clamp(2.25rem, 4.5vw, 4rem); letter-spacing: -.05em; line-height: .98; }
.bb-content-intro p:last-child { max-width: 42rem; color: var(--bb-muted); font-size: 1.08rem; line-height: 1.7; }
.bb-trust-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.bb-trust-card { min-height: 14rem; padding: 1.5rem; border: 1px solid var(--bb-border); border-radius: var(--bb-radius-md); background: #fff; box-shadow: 0 .6rem 2rem rgb(56 13 56 / 4%); }
.bb-trust-card:nth-child(3n) { background: var(--bb-surface-soft); }
.bb-trust-card__number { display: block; margin-bottom: 2.4rem; color: var(--bb-action-strong); font-size: .78rem; font-weight: 850; letter-spacing: .1em; }
.bb-trust-card h3 { margin: 0 0 .65rem; color: var(--bb-brand); font-size: 1.45rem; line-height: 1.05; }
.bb-trust-card p { margin: 0; color: var(--bb-muted); line-height: 1.6; }
.bb-recognition-list { display: grid; gap: .75rem; }
.bb-recognition-card { display: flex; align-items: flex-start; justify-content: space-between; gap: 2rem; padding: 1.35rem 1.5rem; border: 1px solid var(--bb-border); border-left: 4px solid var(--bb-action); border-radius: .7rem; background: #fff; }
.bb-recognition-card--featured { border-left-color: var(--bb-brand); background: var(--bb-surface-soft); }
.bb-recognition-card__year, .bb-recognition-card__place { color: var(--bb-action-strong); font-size: .76rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.bb-recognition-card h3 { margin: .35rem 0 .5rem; color: var(--bb-brand); font-size: 1.45rem; line-height: 1.1; }
.bb-recognition-card p { max-width: 43rem; margin: 0; color: var(--bb-muted); line-height: 1.6; }
.bb-recognition-card__place { flex: 0 0 auto; padding-top: .25rem; text-align: right; }
.bb-news-card__body { display: flex; flex-direction: column; height: calc(100% - 0rem); padding: 0 1.35rem 1.4rem; }
.bb-news-card__body .wp-block-post-date { margin: 0 0 .45rem; color: var(--bb-action-strong); font-size: .75rem; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.bb-news-card__body .wp-block-post-title { max-width: none; margin: 0 0 .7rem; font-size: clamp(1.25rem, 1.7vw, 1.55rem); line-height: 1.08; }
.bb-news-card__body .wp-block-post-excerpt { margin: 0; padding: 0; color: var(--bb-muted); font-size: .95rem; line-height: 1.55; }
.bb-news-card__body .wp-block-post-excerpt__more-text { display: block; margin-top: .8rem; color: var(--bb-brand); font-weight: 850; }
.bb-news-card .wp-block-post-featured-image { min-height: 9rem; background: var(--bb-surface-soft); }
.bb-projects-section .bb-projects__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bb-project__image--letter { display: grid; place-items: center; background: linear-gradient(135deg, var(--bb-action), #f6d58a); }
.bb-project__image--letter span { color: var(--bb-brand); font-family: Georgia, 'Times New Roman', serif; font-size: clamp(3.2rem, 7vw, 6rem); font-weight: 700; letter-spacing: -.08em; }
.bb-projects__footer { margin-top: 1.75rem; }
.bb-projects__footer .bb-link { color: var(--bb-brand); }
@media (max-width: 48rem) {
  .bb-hero__layout { padding-block: 3rem 4rem; }
  .bb-trust-grid, .bb-projects-section .bb-projects__grid { grid-template-columns: 1fr; }
  .bb-trust-card { min-height: 0; }
  .bb-recognition-card { flex-direction: column; gap: .65rem; }
  .bb-recognition-card__place { padding-top: 0; text-align: left; }
}

/* Final polish pass: visible headings, cleaner navigation and tighter pages. */
.bb-trust-hero h1 { display: block; margin: .55rem 0 .9rem; color: #fff !important; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(3rem, 6.4vw, 5.75rem); letter-spacing: -.065em; line-height: .92; }
.bb-nav > a, .bb-nav__group > summary { position: relative; padding-block: .45rem; }
.bb-nav__group > summary { display: inline-flex; align-items: center; gap: .45rem; }
.bb-nav__group summary::after { width: .42rem; height: .42rem; margin: -.2rem 0 0 .05rem; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; content: ''; transform: rotate(45deg); transition: transform .2s ease; }
.bb-nav__group[open] summary::after { transform: rotate(225deg) translate(-.08rem, -.08rem); }
.bb-nav > a::after, .bb-nav__group > summary::before { position: absolute; right: 0; bottom: 0; left: 0; height: 2px; background: var(--bb-action); content: ''; transform: scaleX(0); transform-origin: left; transition: transform .2s ease; }
.bb-nav > a:hover::after, .bb-nav > a:focus-visible::after, .bb-nav__group:hover > summary::before, .bb-nav__group:focus-within > summary::before { transform: scaleX(1); }
.bb-nav__group > summary:focus-visible { outline: 3px solid var(--bb-focus); outline-offset: 4px; }
.bb-news-card .wp-block-post-excerpt__more-link { display: inline-flex; width: fit-content; align-items: center; margin-top: .85rem; padding: .58rem .8rem; border-radius: .5rem; background: var(--bb-brand); color: #fff; font-size: .82rem; font-weight: 850; text-decoration: none; }
.bb-news-card .wp-block-post-excerpt__more-link:hover { background: var(--bb-action); color: var(--bb-brand-deep); }
.bb-news-query .wp-block-query-pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .5rem; }
.bb-news-query .wp-block-query-pagination a, .bb-news-query .wp-block-query-pagination .page-numbers { display: inline-flex; align-items: center; min-height: 2.35rem; padding: .45rem .7rem; border: 1px solid var(--bb-border); border-radius: .45rem; color: var(--bb-brand); font-size: .86rem; text-decoration: none; }
.bb-news-query .wp-block-query-pagination a:hover { border-color: var(--bb-action); background: var(--bb-surface-soft); }
.bb-news-query .wp-block-query-pagination .current { border-color: var(--bb-brand); background: var(--bb-brand); color: #fff; }
.wpcf7 form { display: grid; gap: 1rem; }
.wpcf7 input:not([type='submit']):not([type='checkbox']):not([type='file']), .wpcf7 textarea, .wpcf7 select { min-height: 3rem; padding: .75rem .9rem; border: 1px solid var(--bb-border); border-radius: .55rem; font: inherit; }
.wpcf7 textarea { min-height: 10rem; resize: vertical; }
.wpcf7 input[type='file'] { width: 100%; padding: .65rem; border: 1px dashed var(--bb-border); border-radius: .55rem; background: #fff; font: inherit; }
.wpcf7 input[type='submit'], .wpcf7 button[type='submit'] { width: fit-content; min-height: 3rem; padding: .75rem 1.15rem; border: 1px solid var(--bb-brand); border-radius: .55rem; background: var(--bb-brand); color: #fff; font: inherit; font-weight: 850; cursor: pointer; }
.wpcf7 input[type='submit']:hover, .wpcf7 button[type='submit']:hover { border-color: var(--bb-action); background: var(--bb-action); color: var(--bb-brand-deep); }
.wpcf7-acceptance label, .wpcf7-list-item label { display: flex; align-items: flex-start; gap: .55rem; color: var(--bb-muted); font-size: .86rem; line-height: 1.45; }
.wpcf7-acceptance input[type='checkbox'], .wpcf7-list-item input[type='checkbox'] { width: 1.1rem; min-width: 1.1rem; height: 1.1rem; margin-top: .1rem; }
.bb-area-hero { padding-block: clamp(2rem, 3.5vw, 3.25rem); }
.bb-area-hero__layout--text-only { min-height: clamp(8rem, 15vw, 12rem); }
.bb-area-hero__layout--text-only .wp-block-post-title { font-size: clamp(2.8rem, 6vw, 5rem); }
.bb-dynamic-hero { padding-block: clamp(2rem, 3.5vw, 3.25rem); }
.bb-dynamic-hero__layout--text-only { min-height: clamp(8rem, 15vw, 12rem); }
.bb-dynamic-hero .wp-block-post-title { font-size: clamp(2.8rem, 6vw, 5rem); }
.bb-project-page { padding-block: clamp(2rem, 4vw, 3.5rem); }
.bb-project-page__hero { gap: clamp(1.75rem, 5vw, 4.5rem); }
.bb-project-page__hero h1 { font-size: clamp(2.6rem, 5.3vw, 5rem); }
.bb-project-page__media img { height: clamp(17rem, 30vw, 25rem); }
@media (max-width: 48rem) {
  .bb-area-hero, .bb-dynamic-hero { padding-block: 2rem; }
  .bb-project-page__media img { height: 18rem; }
}
.bb-courses-hero { padding-block: clamp(2.5rem, 4vw, 4rem); background: var(--bb-surface-soft); }
.bb-courses-hero h1 { max-width: none; margin: .55rem 0 .8rem; color: var(--bb-brand); font-family: Georgia, 'Times New Roman', serif; font-size: clamp(3rem, 6vw, 5.5rem); letter-spacing: -.065em; line-height: .92; }
.bb-standard-page__lead { max-width: 42rem; margin: 0; color: var(--bb-muted); font-size: clamp(1rem, 1.5vw, 1.2rem); line-height: 1.55; }
.bb-courses-body { padding-block: clamp(3rem, 6vw, 5rem); }
.bb-course-archive { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.bb-course-archive__card { display: flex; min-height: 17rem; flex-direction: column; padding: 1.5rem; border: 1px solid var(--bb-border); border-radius: var(--bb-radius-md); background: #fff; box-shadow: 0 .6rem 2rem rgb(56 13 56 / 4%); }
.bb-course-archive__status { color: var(--bb-action-strong); font-size: .76rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.bb-course-archive__card h3 { max-width: 19ch; margin: 2rem 0 .8rem; color: var(--bb-brand); font-size: 1.45rem; line-height: 1.08; }
.bb-course-archive__card p { margin: 0 0 .4rem; color: var(--bb-muted); line-height: 1.55; }
.bb-course-archive__card .bb-button { margin-top: auto; align-self: flex-start; }
@media (max-width: 48rem) { .bb-course-archive { grid-template-columns: 1fr; } }

/* Final CAT refinement: remove the school-page top padding, tighten CF7 and
   give every historical course page a compact editorial entry point. */
.bb-school-page { padding-block: 0 !important; }
.bb-course-landing__hero { padding-block: clamp(2rem, 3vw, 3.25rem); }
.bb-course-landing__layout { gap: clamp(1.5rem, 4vw, 4rem); }
.bb-course-landing__hero .wp-block-post-title { max-width: 12ch; margin: .55rem 0 .8rem; font-size: clamp(2.5rem, 4.8vw, 4.75rem); line-height: .94; }
.bb-course-landing__hero > .bb-course-landing__layout > .wp-block-group { max-width: 46rem; }
.bb-course-landing__content { padding-block: clamp(2.75rem, 5vw, 4.75rem); }
.bb-course-landing__content > .wp-block-post-content h2 { margin-top: 2.6rem; }
.bb-course-landing__content > .wp-block-post-content h3 { margin-top: 1.8rem; }
.wpcf7 form { gap: .7rem; }
.wpcf7 form > p { margin: 0; }
.wpcf7 form > p + p { margin-top: 0; }
.wpcf7 .wpcf7-form-control-wrap { display: block; }
.wpcf7 input:not([type='submit']):not([type='checkbox']):not([type='file']), .wpcf7 textarea, .wpcf7 select { display: block; width: 100%; box-sizing: border-box; }
.wpcf7 form .penviar { margin-top: .2rem; }
.wpcf7 form .wpcf7-response-output { margin: 0; padding: .7rem .85rem; border-radius: .45rem; }
.bb-course-cta__actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.bb-course-cta__actions .bb-button { white-space: nowrap; }
.bb-course-archive__card--featured { border-color: var(--bb-action); box-shadow: 0 .8rem 2rem rgb(56 13 56 / 8%); }
.bb-course-archive__card--featured .bb-course-archive__status { color: var(--bb-brand); }

/* Web 2: course path and readable, native disclosure FAQ. */
.bb-course-journey { display: grid; gap: 1rem; }
.bb-course-journey__stage { position: relative; padding: clamp(1.25rem, 3vw, 2rem); border: 1px solid var(--bb-border); border-radius: var(--bb-radius-md); background: #fff; }
.bb-course-journey__stage--theory { border-top: 4px solid var(--bb-action); }
.bb-course-journey__stage--practice { border-top: 4px solid #6f9cdb; }
.bb-course-journey__stage--memory { border-top: 4px solid #8abd75; }
.bb-course-journey__step { display: inline-block; margin-bottom: .6rem; color: var(--bb-action-strong); font-size: .75rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.bb-course-journey__stage h3 { margin: 0 0 .8rem; color: var(--bb-brand); font-size: clamp(1.35rem, 2.2vw, 1.8rem); line-height: 1.15; }
.bb-course-journey__stage h4 { margin: 1.3rem 0 .5rem; color: var(--bb-brand); font-size: 1rem; }
.bb-course-journey__stage p, .bb-course-journey__stage li { color: var(--bb-muted); line-height: 1.65; }
.bb-course-journey__hours { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.bb-course-journey__hours p { margin: 0; }
.bb-course-journey__stage ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem 1.5rem; margin: .5rem 0 0; padding-left: 1.2rem; }
.bb-course-waitlist { margin-top: 1.5rem; }
.bb-course-faq { margin-top: clamp(3.5rem, 7vw, 6rem); }
.bb-course-faq__list { display: grid; gap: .7rem; }
.bb-course-faq__list details { border: 1px solid var(--bb-border); border-radius: .7rem; background: #fff; box-shadow: 0 .45rem 1.5rem rgb(56 13 56 / 5%); }
.bb-course-faq__list summary { position: relative; padding: 1.05rem 3.25rem 1.05rem 1.2rem; color: var(--bb-brand); cursor: pointer; font-weight: 800; line-height: 1.45; list-style: none; }
.bb-course-faq__list summary::-webkit-details-marker { display: none; }
.bb-course-faq__list summary::after { position: absolute; top: .9rem; right: 1.2rem; color: var(--bb-action-strong); content: '+'; font-size: 1.4rem; line-height: 1; }
.bb-course-faq__list details[open] summary::after { content: '−'; }
.bb-course-faq__list summary:focus-visible { outline: 3px solid var(--bb-focus); outline-offset: 3px; border-radius: .55rem; }
.bb-course-faq__list details > div { padding: 0 1.2rem 1.1rem; }
.bb-course-faq__list p { max-width: 58rem; margin: 0; color: var(--bb-muted); line-height: 1.65; }
.bb-course-faq__list a { color: var(--bb-brand); font-weight: 750; }

/* Center the two lower homepage cards beneath the three priority cards. */
html[lang^="ca"] .bb-homepage .bb-projects__grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
html[lang^="ca"] .bb-homepage .bb-projects__grid > .bb-project { grid-column: span 2; }
html[lang^="ca"] .bb-homepage .bb-projects__grid > .bb-project:nth-child(4) { grid-column: 2 / span 2; }
html[lang^="ca"] .bb-homepage .bb-projects__grid > .bb-project:nth-child(5) { grid-column: 4 / span 2; }
.bb-projects-index__grid > .bb-project-index-card:last-child:nth-child(7) { grid-column: 2; }

@media (max-width: 48rem) {
  .bb-homepage .bb-projects__grid { grid-template-columns: 1fr; }
  .bb-homepage .bb-projects__grid > .bb-project,
  .bb-homepage .bb-projects__grid > .bb-project:nth-child(4),
  .bb-projects-index__grid > .bb-project-index-card:last-child:nth-child(7) { grid-column: 1; }
  .bb-course-journey__stage ul { grid-template-columns: 1fr; gap: .2rem; }
}
.bb-projects-section { background: var(--bb-surface-soft); }
.bb-projects-section .bb-intention:nth-child(2) { border-color: var(--bb-action); background: var(--bb-action); color: var(--bb-brand-deep); }
.bb-projects-section .bb-intention:nth-child(2) h3, .bb-projects-section .bb-intention:nth-child(2) p, .bb-projects-section .bb-intention:nth-child(2) .bb-link { color: var(--bb-brand-deep); }
.bb-projects-section .bb-intention:nth-child(3) { border-color: var(--bb-brand); background: var(--bb-brand); color: #fff; }
.bb-projects-section .bb-intention:nth-child(3) h3, .bb-projects-section .bb-intention:nth-child(3) p, .bb-projects-section .bb-intention:nth-child(3) .bb-link { color: #fff; }
.bb-dynamic-hero__image img { height: clamp(15rem, 24vw, 23rem); }
.bb-school-hero__layout { padding-block: clamp(2rem, 4vw, 3.5rem); gap: clamp(1.75rem, 4vw, 4rem); }
.bb-school-hero__media img { height: clamp(18rem, 30vw, 28rem); }
@media (max-width: 48rem) {
  .bb-course-landing__hero { padding-block: 2rem; }
  .bb-course-landing__layout { grid-template-columns: 1fr; }
  .bb-course-landing__hero .wp-block-post-title { font-size: clamp(2.5rem, 12vw, 4rem); }
  .bb-course-landing__content { padding-block: 2.5rem 3.5rem; }
  .bb-course-cta__actions { align-items: flex-start; flex-direction: column; }
  .bb-school-hero__layout { padding-block: 2rem; }
  .bb-school-hero__media img { height: 18rem; }
}

/* 1.0.4: unmistakable CTAs, distinct homepage bands, aligned news cards and
   a proper project/casals landing experience. */
.bb-about__copy .bb-link--inline,
.bb-projects__footer .bb-link--inline { display: inline-flex; align-items: center; gap: .55rem; margin-top: 1.3rem; padding: .8rem 1.05rem; border: 1px solid var(--bb-brand); border-radius: .55rem; background: var(--bb-brand); color: #fff; font-size: .86rem; font-weight: 850; text-decoration: none; }
.bb-about__copy .bb-link--inline:hover,
.bb-projects__footer .bb-link--inline:hover { border-color: var(--bb-action); background: var(--bb-action); color: var(--bb-brand-deep); transform: translateY(-2px); }
.bb-link--inline::after { width: auto; border: 0; content: ''; transform: none; }
.bb-projects-section { background: #f3e9dc; }
.bb-projects-section .bb-intention { background: #fff; }
.bb-projects-section .bb-intention:nth-child(2) { background: var(--bb-action); }
.bb-projects-section .bb-intention:nth-child(3) { background: var(--bb-brand); }
.bb-projects-section .bb-intention .bb-button { width: fit-content; margin-top: auto; padding: .72rem .95rem; border-radius: .5rem; }
.bb-projects-section .bb-intention:nth-child(2) .bb-button { border-color: var(--bb-brand-deep); background: var(--bb-brand-deep); color: #fff; }
.bb-projects-section .bb-intention:nth-child(3) .bb-button { border-color: #fff; background: #fff; color: var(--bb-brand); }
.bb-section--soft { background: #fff; }
.bb-method { padding-block: .25rem; }

.bb-news-query .wp-block-post-template { align-items: stretch; }
.bb-news-card { display: flex; min-height: 100%; flex-direction: column; }
.bb-news-card .wp-block-post-featured-image { flex: 0 0 auto; aspect-ratio: 16 / 9; min-height: 0; overflow: hidden; }
.bb-news-card .wp-block-post-featured-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.bb-news-card__body { flex: 1 1 auto; }
.bb-news-card__body .wp-block-post-excerpt { flex: 1 1 auto; }
.bb-news-card__body .wp-block-post-excerpt__more-text { margin-top: auto; padding-top: 1rem; }
.bb-news-card__body .wp-block-post-excerpt__more-link { margin-top: 0; }

/* Evita alçades circulars que creen massa espai dins les targetes del blog. */
.bb-news-card__body { height: auto !important; min-height: 0; }
.bb-news-card__body .wp-block-post-excerpt { min-height: 0; }

.bb-projects-index { padding: 0 !important; }
.bb-projects-index__hero { background: var(--bb-brand); color: #fff; }
.bb-projects-index__hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(15rem, .55fr); align-items: end; gap: 3rem; padding-block: clamp(3rem, 6vw, 5.25rem); }
.bb-projects-index__hero h1 { max-width: 11ch; margin: .6rem 0 1rem; color: #fff; font-size: clamp(3rem, 6vw, 5.75rem); letter-spacing: -.06em; line-height: .92; }
.bb-projects-index__lead { max-width: 46rem; margin: 0; color: rgb(255 255 255 / 78%); font-size: clamp(1.05rem, 1.6vw, 1.25rem); line-height: 1.55; }
.bb-projects-index__signal { display: grid; gap: .75rem; }
.bb-projects-index__signal span { padding: 1rem 1.1rem; border-top: 2px solid var(--bb-action); color: #fff; font-size: .9rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.bb-projects-index__content { padding-block: clamp(3.25rem, 6vw, 5.5rem); }
.bb-projects-index__intro { max-width: 47rem; margin-bottom: 2.5rem; }
.bb-projects-index__intro h2, .bb-projects-index__related h2 { margin: .65rem 0 .9rem; color: var(--bb-brand); font-size: clamp(2.3rem, 4.5vw, 4rem); letter-spacing: -.05em; line-height: .98; }
.bb-projects-index__intro p:last-child, .bb-projects-index__related p:last-child { max-width: 44rem; margin: 0; color: var(--bb-muted); font-size: 1.06rem; line-height: 1.65; }
.bb-projects-index__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.bb-project-index-card { display: flex; min-height: 100%; flex-direction: column; overflow: hidden; border: 1px solid var(--bb-border); border-radius: var(--bb-radius-md); background: #fff; color: var(--bb-ink); text-decoration: none; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.bb-project-index-card:hover { border-color: var(--bb-action); box-shadow: var(--bb-shadow-card); color: var(--bb-ink); transform: translateY(-4px); text-decoration: none; }
.bb-project-index-card__media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--bb-surface-soft); }
.bb-project-index-card__media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.bb-project-index-card:hover .bb-project-index-card__media img { transform: scale(1.04); }
.bb-project-index-card > div:last-child { display: flex; flex: 1 1 auto; flex-direction: column; padding: 1.35rem; }
.bb-project-index-card > div:last-child > span { color: var(--bb-action-strong); font-size: .72rem; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.bb-project-index-card h3 { margin: .55rem 0 .65rem; color: var(--bb-brand); font-size: 1.45rem; line-height: 1.05; }
.bb-project-index-card p { margin: 0; color: var(--bb-muted); font-size: .95rem; line-height: 1.55; }
.bb-project-index-card b { display: inline-flex; gap: .35rem; margin-top: auto; padding-top: 1.35rem; color: var(--bb-brand); font-size: .86rem; }
.bb-projects-index__related { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2rem; margin-top: 4rem; padding: clamp(1.4rem, 3vw, 2.2rem); border-radius: var(--bb-radius-md); background: var(--bb-surface-soft); }
.bb-projects-index__related h2 { font-size: clamp(1.8rem, 3vw, 2.8rem); }
.bb-projects-index__related-links { display: flex; flex-wrap: wrap; gap: .7rem; }

.bb-casals-current { margin-bottom: clamp(3rem, 6vw, 5rem); padding-bottom: clamp(3rem, 6vw, 5rem); border-bottom: 1px solid var(--bb-border); }
.bb-casals-current__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-top: 2rem; }
.bb-casals-current__card { min-height: 14rem; padding: 1.35rem; border: 1px solid var(--bb-border); border-top: 4px solid var(--bb-action); border-radius: .8rem; background: #fff; }
.bb-casals-current__card--featured { border-top-color: var(--bb-brand); background: var(--bb-brand); color: #fff; }
.bb-casals-current__card > span { color: var(--bb-action-strong); font-size: .76rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.bb-casals-current__card h3 { margin: 2.1rem 0 .75rem; color: var(--bb-brand); font-size: 1.3rem; line-height: 1.05; }
.bb-casals-current__card p { margin: 0 0 .3rem; color: var(--bb-muted); line-height: 1.45; }
.bb-casals-current__card strong { color: var(--bb-ink); font-size: .9rem; }
.bb-casals-current__card--featured h3, .bb-casals-current__card--featured p, .bb-casals-current__card--featured strong { color: #fff; }
.bb-casals-current__card--featured > span { color: var(--bb-action); }

.bb-contact-page { padding: 0 !important; }
.bb-contact-hero { background: var(--bb-surface-soft); }
.bb-contact-hero__layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(18rem, .85fr); align-items: center; gap: clamp(2rem, 6vw, 6rem); padding-block: clamp(2.5rem, 5vw, 4.75rem); }
.bb-contact-hero h1 { max-width: 11ch; margin: .6rem 0 1rem; color: var(--bb-brand); font-size: clamp(3rem, 6vw, 5.6rem); letter-spacing: -.06em; line-height: .92; }
.bb-contact-hero__lead { max-width: 42rem; margin: 0; color: var(--bb-muted); font-size: clamp(1.05rem, 1.6vw, 1.25rem); line-height: 1.55; }
.bb-contact-hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.7rem; }
.bb-contact-hero__media { margin: 0; transform: rotate(2deg); }
.bb-contact-hero__media img { display: block; width: 100%; height: clamp(16rem, 30vw, 25rem); border: .45rem solid #fff; border-radius: var(--bb-radius-lg); box-shadow: var(--bb-shadow-image); object-fit: cover; }
.bb-contact-hero__media figcaption { display: inline-block; margin: -1rem 0 0 1rem; padding: .65rem .85rem; border-radius: .45rem; background: var(--bb-action); color: var(--bb-brand-deep); font-size: .78rem; font-weight: 850; transform: rotate(-4deg); }
.bb-contact-content { padding-block: clamp(3rem, 6vw, 5.5rem); }
.bb-contact-grid { display: grid; grid-template-columns: minmax(14rem, .65fr) minmax(0, 1.35fr); gap: clamp(2rem, 7vw, 7rem); align-items: start; }
.bb-contact-details h2 { margin: .6rem 0 .9rem; color: var(--bb-brand); font-size: clamp(2rem, 3vw, 3rem); line-height: 1; }
.bb-contact-details > p { color: var(--bb-muted); line-height: 1.65; }
.bb-contact-detail { padding: 1rem 0; border-top: 2px solid var(--bb-action); }
.bb-contact-detail strong { display: block; color: var(--bb-brand); }
.bb-contact-detail a { color: var(--bb-brand); font-weight: 800; text-decoration: none; }
.bb-contact-privacy-note { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--bb-border); font-size: .84rem; }
.bb-contact-privacy-note a, .bb-privacy-note a { color: var(--bb-brand); font-weight: 800; }
.bb-contact-form-card { margin-top: 0; }
.bb-contact-form-card h2 { margin-top: 0; }
.bb-privacy-note { margin: 1rem 0 0; color: var(--bb-muted); font-size: .84rem; line-height: 1.5; }
.bb-project-page--nau4 .bb-project-page__media img { object-position: center; }

/* Composició responsive revisada a staging el 30-09-2026. */
@media (max-width: 48rem) {
  .bb-homepage, .bb-homepage *, .bb-homepage *::before, .bb-homepage *::after { box-sizing: border-box; }
  .bb-homepage .bb-hero__layout { justify-items: center; gap: 2rem; }
  .bb-homepage .bb-hero__copy { width: 100%; text-align: center; }
  .bb-homepage .bb-hero__copy > * { margin-inline: auto; }
  .bb-homepage .bb-hero h1 { max-width: 12ch; margin-inline: auto; font-size: clamp(2.85rem, 13vw, 4.2rem); line-height: .98; text-wrap: balance; }
  .bb-homepage .bb-hero__lead { max-width: 36ch; margin-inline: auto; }
  .bb-homepage .bb-hero__actions { justify-content: center; }
  .bb-homepage .bb-hero__note { justify-content: center; }
  .bb-homepage .bb-hero__media { width: min(100%, 34rem); margin-inline: auto; justify-self: center; transform: none; }
  .bb-homepage .bb-hero__media img { display: block; width: 100%; height: clamp(16rem, 72vw, 21rem); box-sizing: border-box; object-position: center center; }
  .bb-homepage .bb-method__steps, .bb-homepage .bb-intentions__grid, .bb-homepage .bb-projects__grid { min-width: 0; }
  .bb-homepage .bb-intention, .bb-homepage .bb-project, .bb-homepage .bb-method__steps article { box-sizing: border-box; width: 100%; min-width: 0; max-width: 100%; }
  .bb-homepage .bb-method__steps article { border: 1px solid rgb(255 255 255 / 22%); border-top: 3px solid var(--bb-action); padding: 1.15rem; overflow-wrap: anywhere; }
  .bb-homepage .bb-method__steps h3 { margin-top: 2rem; }
  .bb-homepage .bb-projects .bb-section-intro--row { align-items: start; gap: 1rem; }
  .bb-homepage .bb-projects .bb-section-intro--row h2 { max-width: 18ch; margin-block: .65rem .75rem; font-size: clamp(2rem, 9vw, 2.8rem); line-height: 1.14; letter-spacing: -.02em; text-wrap: balance; }
  .bb-homepage .bb-projects .bb-section-intro--row > p { margin: 0; }
  .bb-homepage .bb-project__image { height: clamp(13rem, 68vw, 18rem); }
  .bb-homepage .bb-project__image img { object-position: center center; }
  .bb-homepage .bb-project__body p { min-height: 0; }
  .bb-site-footer, .bb-site-footer *, .bb-site-footer *::before, .bb-site-footer *::after { box-sizing: border-box; }
  .bb-site-footer .bb-footer__grid { width: min(100% - 2rem, var(--bb-content)); grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 1.75rem; margin-inline: auto; padding-block: 2.5rem; text-align: center; }
  .bb-site-footer .bb-footer__grid > div:first-child { grid-column: auto; }
  .bb-site-footer .bb-footer__claim { margin-inline: auto; }
  .bb-site-footer .bb-footer__bottom { justify-content: center; text-align: center; }
  .bb-news-index__head { padding-block-end: 1.25rem !important; }
  .bb-news-query { margin-block-start: 0 !important; padding-block: 1.25rem !important; }
  .bb-news-query .wp-block-post-template { row-gap: .85rem !important; }
  .bb-news-query .wp-block-post-template > li { min-width: 0; margin-block-start: 0 !important; }
}
@media (min-width: 48.01rem) {
  .bb-news-index__head { padding-block-end: 2rem !important; }
  .bb-news-query { padding-block: 1.25rem !important; }
  .bb-news-query .wp-block-post-template { row-gap: 1rem !important; }
}
.bb-homepage .bb-projects-section { padding-block-end: 1.5rem !important; }
.bb-homepage .bb-section--soft { padding-block-start: 1.5rem !important; }

/* Keep homepage and news cards visible while scrolling on narrow screens. */
@media (max-width: 48rem) {
  .bb-homepage .bb-intention.bb-reveal,
  .bb-homepage .bb-project.bb-reveal,
  .bb-news-query .bb-news-card.bb-reveal {
    opacity: 1 !important;
    translate: none !important;
    transition: none !important;
  }
}

/* Keep the mobile menu CTA readable and remove its repeated project-index link. */
.bb-mobile-menu__panel .bb-mobile-nav .bb-nav__cta,
.bb-mobile-menu__panel .bb-mobile-nav a[href$="/contacte/"] {
  border-color: var(--bb-brand);
  background: var(--bb-brand);
  color: #fff !important;
}
.bb-mobile-menu__panel .bb-mobile-nav .bb-nav__cta:hover,
.bb-mobile-menu__panel .bb-mobile-nav .bb-nav__cta:focus-visible,
.bb-mobile-menu__panel .bb-mobile-nav a[href$="/contacte/"]:hover,
.bb-mobile-menu__panel .bb-mobile-nav a[href$="/contacte/"]:focus-visible {
  border-color: var(--bb-action);
  background: var(--bb-action);
  color: var(--bb-brand-deep) !important;
}
.bb-mobile-menu__panel a[href="/projectes-actuals/"]:not([data-bb-link="projects"]) {
  display: none !important;
}

@media (max-width: 60rem) {
  .bb-projects-index__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bb-casals-current__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 48rem) {
  .bb-projects-index__hero-inner, .bb-contact-hero__layout, .bb-contact-grid, .bb-projects-index__related { grid-template-columns: 1fr; }
  .bb-projects-index__grid, .bb-casals-current__grid { grid-template-columns: 1fr; }
  .bb-projects-index__signal { grid-template-columns: repeat(3, 1fr); gap: .5rem; }
  .bb-projects-index__signal span { padding: .7rem .55rem; font-size: .66rem; }
  .bb-contact-hero__media { order: -1; transform: none; }
  .bb-contact-hero__media figcaption { margin-left: .5rem; }
}


/* Manté la nota del hero completa dins la imatge en mòbil. */
@media (max-width: 48rem) {
  .bb-homepage .bb-hero__media figcaption {
    right: .5rem;
    bottom: -.75rem;
    max-width: calc(100% - 1rem);
    transform: rotate(-2deg);
  }
}

/* Ajustos responsive desats al staging i revisats en mòbil, 30-09-2026. */
@media (max-width: 48rem) {
  .bb-homepage .bb-hero__copy,
  .bb-homepage .bb-hero__media { justify-self: center; margin-inline: auto; }
  .bb-homepage .bb-hero__media img { object-position: center center; }
  .bb-homepage .bb-method { padding-block: 3rem 3.25rem !important; }
  .bb-homepage .bb-projects-section { padding-block-start: 3.25rem !important; }
  .bb-homepage .bb-projects .bb-section-intro--row { gap: 1.15rem; }
  .bb-homepage .bb-projects .bb-section-intro--row h2 {
    margin-block: .65rem 1rem;
    line-height: 1.18;
    text-wrap: pretty;
  }
  .bb-homepage .bb-method__steps article,
  .bb-homepage .bb-intention,
  .bb-homepage .bb-project { min-width: 0; max-width: 100%; }
  .bb-homepage .bb-method__steps article { outline: 1px solid rgb(255 255 255 / 12%); outline-offset: -1px; }
  .bb-site-footer .bb-footer__bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center !important;
    gap: .6rem 1rem;
    width: min(100% - 2rem, var(--bb-content));
    margin-inline: auto;
    text-align: center;
  }
  .bb-news-query .wp-block-post-template { row-gap: .5rem !important; }
  .bb-news-query .wp-block-post-template > li { height: auto !important; min-height: 0 !important; }
  .bb-news-card { height: auto !important; min-height: 0 !important; }
  .bb-news-card__body { flex: 0 0 auto !important; padding-bottom: .9rem !important; }
  .bb-news-card__body .wp-block-post-excerpt { flex: 0 0 auto !important; }
  .bb-news-card__body .wp-block-post-excerpt__more-text { margin-top: .7rem !important; padding-top: 0 !important; }
}

/* 1.0.17: remove mobile header overlap and clarify tight homepage sections. */
@media (max-width: 48rem) {
  /* Keep the tall mobile header in document flow so it cannot cover card edges. */
  .bb-site-header-shell,
  body.admin-bar .bb-site-header-shell {
    position: relative !important;
    top: auto !important;
    transform: none !important;
  }

  .bb-homepage .bb-method__steps article {
    border-color: rgb(255 255 255 / 34%);
    outline: 1px solid rgb(255 255 255 / 18%);
    outline-offset: -2px;
  }
  .bb-homepage .bb-method { padding-block: 2.25rem 2.75rem !important; }

  .bb-homepage .bb-projects .bb-section-intro--row {
    gap: 1.2rem;
    margin-bottom: 1.5rem;
  }

  .bb-homepage .bb-projects .bb-section-intro--row h2 {
    max-width: 16ch;
    margin-block: .65rem .9rem;
    font-size: clamp(1.95rem, 8.4vw, 2.65rem);
    letter-spacing: -.015em;
    line-height: 1.2;
    text-wrap: balance;
  }

  .bb-news-query .wp-block-post-template {
    row-gap: .8rem !important;
  }

  .bb-news-query .wp-block-post-template > li {
    margin: 0 !important;
    padding: 0;
  }
  .bb-news-card .wp-block-post-excerpt { padding-bottom: 0 !important; }
  .bb-news-card__body { padding-bottom: .7rem !important; }
}

/* 1.0.19: make the homepage and footer adapt cleanly through tablet widths. */
@media (min-width: 48.01rem) and (max-width: 64rem) {
  .bb-homepage .bb-hero__layout {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    gap: 2rem;
    padding-block: 3.25rem 4rem;
  }
  .bb-homepage .bb-hero__copy {
    width: 100%;
    text-align: center;
  }
  .bb-homepage .bb-hero__copy > * { margin-inline: auto; }
  .bb-homepage .bb-hero h1 {
    max-width: 12ch;
    margin-inline: auto;
    text-wrap: balance;
  }
  .bb-homepage .bb-hero__lead { margin-inline: auto; }
  .bb-homepage .bb-hero__actions,
  .bb-homepage .bb-hero__note { justify-content: center; }
  .bb-homepage .bb-hero__media {
    width: min(100%, 38rem);
    margin-inline: auto;
    justify-self: center;
    transform: none;
  }
  .bb-homepage .bb-hero__media img {
    height: clamp(20rem, 48vw, 28rem);
    object-position: center center;
  }

  .bb-homepage .bb-method {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
  }
  .bb-homepage .bb-method__intro h2 { max-width: 10ch; }
  .bb-homepage .bb-method__intro p:last-child { max-width: 38rem; }
  .bb-homepage .bb-method__steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    padding-top: 0;
  }
  .bb-homepage .bb-method__steps article {
    min-width: 0;
    min-height: 14rem;
    padding: 1rem;
    overflow-wrap: anywhere;
    border: 1px solid rgb(255 255 255 / 34%);
    border-top: 3px solid var(--bb-action);
    border-radius: .8rem;
    background: rgb(255 255 255 / 7%);
  }
  .bb-homepage .bb-method__steps h3 { margin-top: 2.2rem; }
  .bb-homepage .bb-method__steps h3,
  .bb-homepage .bb-method__steps p { color: #fff; }
  .bb-homepage .bb-method__steps article > span { color: var(--bb-action); }

  .bb-site-footer .bb-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-items: center;
    text-align: center;
  }
  .bb-site-footer .bb-footer__grid > div:first-child {
    grid-column: 1 / -1;
  }
  .bb-site-footer .bb-footer__claim { margin-inline: auto; }
  .bb-site-footer .bb-footer__bottom { justify-content: center; text-align: center; }
}

@media (max-width: 64rem) {
  .bb-homepage .bb-method__steps article {
    min-width: 0;
    overflow-wrap: anywhere;
  }
  .bb-homepage .bb-projects .bb-section-intro--row .bb-eyebrow {
    margin-bottom: .75rem;
  }
  .bb-homepage .bb-projects .bb-section-intro--row h2 {
    margin-top: 0;
    margin-bottom: 1rem;
    line-height: 1.18;
    text-wrap: balance;
  }
}

@media (max-width: 48rem) {
  .bb-homepage .bb-method__steps { gap: .9rem; }
  .bb-homepage .bb-method__steps article {
    padding: 1.2rem;
    border-width: 1px;
    border-top-width: 3px;
    border-color: rgb(255 255 255 / 45%);
    border-top-color: var(--bb-action);
    border-radius: .85rem;
    background: rgb(255 255 255 / 7%);
  }
  .bb-homepage .bb-method__steps h3 { margin-top: 2rem; }
}

/* Consistent blog rhythm at desktop, tablet and mobile widths. */
.bb-news-query .wp-block-post-template {
  column-gap: clamp(.75rem, 1.6vw, 1.25rem);
  row-gap: clamp(.75rem, 1.6vw, 1.25rem) !important;
}
.bb-news-query .wp-block-post-template > li {
  min-width: 0;
  margin-block-start: 0 !important;
}
@media (min-width: 48.01rem) and (max-width: 64rem) {
  .bb-news-query .wp-block-post-template { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Method cards must remain visible even if scroll-reveal does not initialize. */
@media (max-width: 64rem) {
  .bb-homepage .bb-method__steps .bb-reveal {
    opacity: 1 !important;
    translate: none !important;
    transition: none !important;
  }
}

/* 1.0.21: keep homepage cards balanced at tablet widths and center the footer. */
@media (min-width: 48.01rem) and (max-width: 64rem) {
  html[lang^="ca"] .bb-homepage .bb-intentions__grid { --bb-intention-gap: clamp(.9rem, 2vw, 1.25rem); gap: var(--bb-intention-gap); }
  html[lang^="ca"] .bb-homepage .bb-intentions__grid,
  html[lang^="ca"] .bb-homepage .bb-projects__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--bb-intention-gap, clamp(.9rem, 2vw, 1.25rem));
  }
  html[lang^="ca"] .bb-homepage .bb-projects__grid { --bb-project-gap: clamp(.9rem, 2vw, 1.25rem); gap: var(--bb-project-gap); }
  html[lang^="ca"] .bb-homepage .bb-projects__grid > .bb-project,
  html[lang^="ca"] .bb-homepage .bb-projects__grid > .bb-project:nth-child(4) {
    grid-column: auto;
  }
  html[lang^="ca"] .bb-homepage .bb-projects__grid > .bb-project:nth-child(5) {
    grid-column: 1 / -1;
    width: calc((100% - var(--bb-project-gap)) / 2);
    justify-self: center;
  }
  html[lang^="ca"] .bb-homepage .bb-intentions__grid > .bb-intention:nth-child(3) {
    grid-column: 1 / -1;
    width: calc((100% - var(--bb-intention-gap)) / 2);
    justify-self: center;
  }
  html[lang^="ca"] .bb-homepage .bb-intention,
  html[lang^="ca"] .bb-homepage .bb-project {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
  }
}

.bb-site-footer .bb-footer__grid {
  justify-items: center;
  text-align: center;
}
.bb-site-footer .bb-footer__grid > div:first-child { justify-self: center; }
.bb-site-footer .bb-footer__claim { margin-inline: auto; }
.bb-site-footer .bb-footer__bottom {
  justify-content: center;
  text-align: center;
}

@media (max-width: 48rem) {
  .bb-homepage .bb-hero__layout {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
  }
  .bb-homepage .bb-hero__media {
    width: min(100%, 34rem);
    margin-inline: auto;
    justify-self: center;
    transform: none;
  }
  .bb-homepage .bb-hero__media img { object-position: center; }
  .bb-homepage .bb-intentions__grid,
  .bb-homepage .bb-projects__grid {
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
  }
  .bb-homepage .bb-intention,
  .bb-homepage .bb-project,
  .bb-homepage .bb-method__steps article {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }
  html[lang^="ca"] .bb-homepage .bb-projects__grid > .bb-project:nth-child(n) {
    grid-column: 1 / -1;
    width: 100%;
  }
  html[lang^="ca"] .bb-homepage .bb-projects .bb-section-intro--row h2 {
    letter-spacing: -.01em;
    line-height: 1.24;
    margin-bottom: 1rem;
  }
  .bb-news-query .wp-block-post-template { row-gap: .55rem !important; }
}

@media (min-width: 48.01rem) {
  .bb-news-query .wp-block-post-template { row-gap: .7rem !important; }
}

/* 1.0.22: let the news grid use the full editorial width on wide screens. */
.bb-news-index > .bb-news-query {
  width: min(calc(100% - 2rem), var(--bb-content));
  max-width: var(--bb-content) !important;
  margin-inline: auto;
}
.bb-news-index > .bb-news-query .wp-block-post-template {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 100%;
  max-width: 100%;
  row-gap: .7rem !important;
}
@media (max-width: 64rem) {
  .bb-news-index > .bb-news-query .wp-block-post-template {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 48rem) {
  .bb-news-index > .bb-news-query .wp-block-post-template {
    grid-template-columns: minmax(0, 1fr);
    row-gap: .55rem !important;
  }
}

/* 1.0.23: stretch each editorial card inside its grid track. */
.bb-news-index > .bb-news-query {
  display: block !important;
  width: min(calc(100% - 2rem), var(--bb-content)) !important;
  max-width: var(--bb-content) !important;
  box-sizing: border-box;
}
.bb-news-index > .bb-news-query .wp-block-post-template {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  justify-content: normal !important;
  justify-items: stretch !important;
  align-content: start;
  width: 100% !important;
  max-width: 100% !important;
  margin-inline: 0 !important;
  padding-inline: 0 !important;
  box-sizing: border-box;
  column-gap: clamp(.75rem, 1.6vw, 1.25rem) !important;
}
.bb-news-index > .bb-news-query .wp-block-post-template > li {
  display: block;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  margin: 0 !important;
  box-sizing: border-box;
}
.bb-news-index > .bb-news-query .wp-block-post-template > li > .bb-news-card {
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  box-sizing: border-box;
}
@media (max-width: 64rem) {
  .bb-news-index > .bb-news-query .wp-block-post-template {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 48rem) {
  .bb-news-index > .bb-news-query .wp-block-post-template {
    grid-template-columns: minmax(0, 1fr) !important;
    row-gap: .55rem !important;
  }
}

/* 1.0.24: tighten homepage transitions on small screens without changing desktop. */
@media (max-width: 48rem) {
  .bb-homepage > .bb-section--soft {
    margin-block-start: 0 !important;
    padding-block: 0 !important;
  }
  .bb-homepage > .wp-block-group.bb-section:not(.bb-section--soft):not(.bb-projects-section) {
    margin-block-start: 0 !important;
    padding-block-start: 1.25rem !important;
  }
  .bb-homepage .bb-method { padding-block: 1.75rem 2.25rem !important; }
  .bb-homepage .bb-intention,
  .bb-homepage .bb-project,
  .bb-homepage .bb-method__steps article {
    box-sizing: border-box;
    min-width: 0;
    max-width: 100%;
  }
}



/* 1.0.25: reduce dead space in desktop news rows while keeping CTAs aligned. */
.bb-news-index > .bb-news-query .wp-block-post-template {
  align-items: stretch;
  grid-auto-rows: 1fr;
}
.bb-news-index .bb-news-card {
  display: flex;
  height: 100%;
  flex-direction: column;
}
.bb-news-index .bb-news-card:not(:has(> .wp-block-post-featured-image))::before {
  display: grid;
  aspect-ratio: 16 / 9;
  place-items: center;
  padding: 1rem;
  background: linear-gradient(135deg, var(--bb-brand) 0 54%, #51234f 54% 100%);
  color: #fff;
  content: "Actualitat Batibull";
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(1.25rem, 2vw, 1.8rem);
  font-weight: 700;
  text-align: center;
}
.bb-news-index .bb-news-card .wp-block-post-featured-image {
  aspect-ratio: 16 / 9;
  min-height: 0;
}
.bb-news-index .bb-news-card__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
}
.bb-news-index .bb-news-card__body .wp-block-post-title {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.bb-news-index .bb-news-card__body .wp-block-post-excerpt__excerpt {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}
.bb-news-index .bb-news-card__body .wp-block-post-excerpt__more-text {
  margin-top: auto;
  padding-top: .8rem;
}

@media (max-width: 22rem) {
  .bb-recognition-page .bb-trust-hero h1 { font-size: clamp(2.1rem, 12vw, 2.45rem); }
}

/* Compact top bar, text-only language selector, and a clearer footer system. */
.bb-site-header { margin-block: 0 !important; }
.bb-utility-bar { margin: 0; background: var(--bb-action); color: var(--bb-brand-deep); }
.bb-utility-bar__inner { display: flex; min-height: 2.2rem; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .2rem; }
.bb-utility-bar .bb-languages { color: var(--bb-brand-deep); }
.bb-utility-bar .bb-languages a { color: var(--bb-brand-deep); font-size: .75rem; font-weight: 850; }
.bb-utility-bar .bb-languages a[aria-current="page"] { text-decoration: underline; text-underline-offset: .2rem; }
.bb-header__inner { min-height: 4.65rem; gap: clamp(1rem, 1.8vw, 2rem); }
.bb-logo img { width: clamp(9.5rem, 12vw, 11rem); }
.bb-nav { gap: clamp(.6rem, 1vw, 1.05rem); }
.bb-nav__panel { top: calc(100% + .55rem); z-index: 25; }
@media (hover: hover) and (min-width: 48.01rem) {
  .bb-nav__group::after { height: .55rem; }
  .bb-nav__group[open] > .bb-nav__panel,
  .bb-nav__group:hover > .bb-nav__panel,
  .bb-nav__group:focus-within > .bb-nav__panel { display: grid; visibility: visible; opacity: 1; }
}
.bb-social-links { display: flex; align-items: center; gap: .4rem; }
.bb-social-links a { display: inline-grid; width: 2rem; height: 2rem; flex: 0 0 auto; place-items: center; border-radius: 50%; color: currentColor; text-decoration: none; transition: background-color .18s ease, color .18s ease, transform .18s ease; }
.bb-social-links a:hover { background: rgb(56 13 56 / 10%); color: var(--bb-brand); transform: translateY(-1px); }
.bb-social-links svg { display: block; width: 1rem; height: 1rem; fill: currentColor; }
.bb-utility-bar .bb-social-links { color: var(--bb-brand-deep); }
.bb-contact-hero__media img,
.bb-project-page__media img,
.bb-school-hero__media img { box-sizing: border-box; }

.bb-site-footer { background: var(--bb-brand-deep); color: rgb(255 255 255 / 76%); }
.bb-site-footer .bb-footer__grid { display: grid; grid-template-columns: minmax(13rem, 1.35fr) repeat(2, minmax(9rem, .8fr)) minmax(13rem, 1fr); align-items: start; gap: clamp(1.5rem, 3vw, 3rem); padding-block: clamp(2.75rem, 5vw, 4rem) 2.5rem; }
.bb-footer__brand { max-width: 20rem; }
.bb-site-footer .bb-footer__logo { display: inline-flex; padding: .45rem .65rem; border-radius: .35rem; background: #fff; }
.bb-site-footer .bb-footer__logo img { display: block; width: 10.5rem; height: auto; }
.bb-site-footer .bb-footer__claim { max-width: 20rem; margin: 1rem 0 .9rem; color: rgb(255 255 255 / 72%); font-size: .95rem; line-height: 1.6; }
.bb-footer__location { margin: 0; color: rgb(255 255 255 / 55%); font-size: .8rem; }
.bb-site-footer .bb-footer__label { margin: .2rem 0 1rem; color: var(--bb-action); font-size: .72rem; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.bb-site-footer .bb-footer__grid nav:not(.bb-social-links) { display: grid; justify-items: start; align-content: start; gap: .7rem; }
.bb-site-footer .bb-footer__grid nav:not(.bb-social-links) > a { margin: 0; color: #fff; font-size: .9rem; line-height: 1.45; text-decoration: none; }
.bb-site-footer .bb-footer__grid nav:not(.bb-social-links) > a:hover { color: var(--bb-action); }
.bb-site-footer .bb-footer__connect > a { display: block; margin: 0 0 .7rem; color: #fff; font-size: .9rem; text-decoration: none; }
.bb-site-footer .bb-footer__connect > .bb-footer__contact { display: inline-flex; align-items: center; gap: .55rem; margin-bottom: 1rem; padding: .75rem 1rem; border: 1px solid var(--bb-action); border-radius: .45rem; background: var(--bb-action); color: var(--bb-brand-deep); font-weight: 850; }
.bb-site-footer .bb-footer__connect > .bb-footer__contact:hover { background: #fff; border-color: #fff; color: var(--bb-brand-deep); }
.bb-site-footer .bb-social-links--footer { gap: .5rem; margin-top: 1.15rem; }
.bb-site-footer .bb-social-links--footer a { width: 2.5rem; height: 2.5rem; border: 1px solid rgb(255 255 255 / 30%); color: #fff; }
.bb-site-footer .bb-social-links--footer a:hover { border-color: var(--bb-action); background: var(--bb-action); color: var(--bb-brand-deep); }
.bb-site-footer .bb-social-links--footer svg { width: 1.1rem; height: 1.1rem; }
.bb-site-footer .bb-footer__bottom { justify-content: space-between; padding-block: 1.1rem 1.3rem; border-top-color: rgb(255 255 255 / 20%); text-align: left; }
.bb-site-footer .bb-footer__bottom a { color: rgb(255 255 255 / 76%); text-decoration: none; }
.bb-site-footer .bb-footer__bottom a:hover { color: var(--bb-action); }

/* Join the cream callout directly to the methodology band on the homepage. */
html[lang^="ca"] .bb-homepage > .bb-section--soft { margin-block: 0 !important; padding-block: 0 !important; background: var(--bb-brand-deep); color: #fff; }
html[lang^="ca"] .bb-homepage .bb-method { padding-block: clamp(2.75rem, 6vw, 5rem) !important; }
html[lang^="ca"] .bb-homepage .bb-method__intro h2,
html[lang^="ca"] .bb-homepage .bb-method__steps h3 { color: #fff; }
html[lang^="ca"] .bb-homepage .bb-method__intro h2 span,
html[lang^="ca"] .bb-homepage .bb-method__steps article > span { color: var(--bb-action); }
html[lang^="ca"] .bb-homepage .bb-method__intro p:last-child,
html[lang^="ca"] .bb-homepage .bb-method__steps p { color: rgb(255 255 255 / 78%); }
html[lang^="ca"] .bb-homepage .bb-method__steps { gap: 1rem; padding-top: 0; }
html[lang^="ca"] .bb-homepage .bb-method__steps article {
  min-height: 14rem;
  padding: 1.25rem;
  border: 1px solid rgb(255 255 255 / 20%);
  border-top: 3px solid var(--bb-action);
  border-radius: .8rem;
  background: rgb(255 255 255 / 6%);
}
html[lang^="ca"] .bb-homepage .bb-method__steps h3 { margin: .85rem 0 .6rem; }
html[lang^="ca"] .bb-homepage .bb-method__steps p { line-height: 1.55; }

@media (max-width: 64rem) {
  .bb-site-footer .bb-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2.25rem; }
  .bb-footer__brand { max-width: 24rem; }
}
@media (max-width: 48rem) {
  .bb-utility-bar { display: none; }
  .bb-header__inner { min-height: 4.25rem; padding-block: .45rem; }
  .bb-site-footer .bb-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); justify-items: start; gap: 2rem 1.25rem; padding-block: 2.5rem 2rem; text-align: left; }
  .bb-site-footer .bb-footer__grid > .bb-footer__brand { grid-column: 1 / -1; }
  .bb-site-footer .bb-footer__bottom { justify-content: flex-start; text-align: left; }
}
@media (max-width: 24rem) {
  .bb-site-footer .bb-footer__grid { grid-template-columns: minmax(0, 1fr); }
  .bb-site-footer .bb-footer__grid > .bb-footer__brand { grid-column: auto; }
  .bb-site-footer .bb-footer__bottom { gap: .65rem 1.25rem; }
}
@media (max-width: 48rem) {
  html[lang^="ca"] .bb-homepage .bb-method__steps { grid-template-columns: minmax(0, 1fr); }
  html[lang^="ca"] .bb-homepage .bb-method__steps article { min-height: 0; }
}
@media (min-width: 48.01rem) and (max-width: 60rem) {
  html[lang^="ca"] .bb-utility-bar { display: none; }
  html[lang^="ca"] .bb-header__inner { position: relative; min-height: 4.25rem; gap: .6rem 1rem; padding-block: .55rem; }
  html[lang^="ca"] .bb-logo img { width: 9.5rem; }
  html[lang^="ca"] .bb-nav,
  html[lang^="ca"] .bb-header-tools { display: none; }
  html[lang^="ca"] .bb-mobile-menu { display: block; margin-left: auto; }
  html[lang^="ca"] .bb-mobile-menu summary { padding: .6rem .8rem; border: 1px solid var(--bb-brand); border-radius: 999px; color: var(--bb-brand); font-size: .8rem; font-weight: 850; }
  html[lang^="ca"] .bb-mobile-menu[open] summary { background: var(--bb-brand); color: #fff; }
}

/* Catalan page refinements requested against the 1.0.27 staging baseline. */
html[lang^="ca"] .bb-homepage .bb-projects__footer { display: none !important; }
html[lang^="ca"] .bb-homepage #projectes { padding-bottom: clamp(2rem, 4vw, 3rem); }
html[lang^="ca"] .bb-homepage #projectes .bb-section-intro--row { grid-template-columns: minmax(0, 1.05fr) minmax(18rem, .8fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
html[lang^="ca"] .bb-homepage #projectes .bb-section-intro--row h2 { max-width: 10ch; margin: .55rem 0 0; font-size: clamp(3.6rem, 7vw, 6.8rem); line-height: .88; letter-spacing: -.065em; }
html[lang^="ca"] .bb-homepage #projectes .bb-section-intro--row > p { max-width: 28rem; padding: 1.35rem 1.5rem; border-left: 4px solid var(--bb-action); border-radius: 0 .75rem .75rem 0; background: var(--bb-surface-soft); color: var(--bb-ink); font-size: clamp(1.05rem, 1.5vw, 1.25rem); line-height: 1.7; }
html[lang^="ca"] .bb-homepage .bb-projects__grid > .bb-project { display: flex; min-width: 0; flex-direction: column; }
html[lang^="ca"] .bb-homepage .bb-project__body { display: flex; flex: 1 1 auto; flex-direction: column; align-items: flex-start; }
html[lang^="ca"] .bb-homepage .bb-project__body p { flex: 1 1 auto; }
html[lang^="ca"] .bb-homepage .bb-project__body b { margin-top: auto; padding-top: 1.3rem; }

html[lang^="ca"] .bb-projects-index .bb-projects-index__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
html[lang^="ca"] .bb-projects-index .bb-project-index-card[href$="/uec/"],
html[lang^="ca"] .bb-projects-index .bb-project-index-card[href$="/els-quimics/"],
html[lang^="ca"] .bb-projects-index .bb-project-index-card[href$="/xeasc/"] { display: none !important; }

html[lang^="ca"] .bb-school-page .bb-course-grid { gap: clamp(1rem, 2vw, 1.4rem); margin-top: 2.25rem; }
html[lang^="ca"] .bb-school-page .bb-course-card { position: relative; min-height: 17rem; padding: clamp(1.3rem, 2.5vw, 1.8rem); border: 1px solid rgb(56 13 56 / 12%); border-top: 4px solid var(--bb-action); border-radius: 1.1rem; background: linear-gradient(155deg, #fff 0%, #fff 68%, #faf7f2 100%); box-shadow: 0 1rem 2.5rem rgb(56 13 56 / 7%); }
html[lang^="ca"] .bb-school-page .bb-course-card:nth-child(2) { border-top-color: #92b77a; }
html[lang^="ca"] .bb-school-page .bb-course-card:nth-child(3) { border-top-color: #849bc4; }
html[lang^="ca"] .bb-school-page .bb-course-card__number { display: inline-grid; width: 2.5rem; height: 2.5rem; flex: 0 0 2.5rem; align-self: flex-start; box-sizing: border-box; place-items: center; padding: 0; border-radius: 50%; background: #f6ead0; color: var(--bb-brand); font-variant-numeric: tabular-nums; }
html[lang^="ca"] .bb-school-page .bb-course-card h3 { max-width: 15ch; margin: 1.15rem 0 .7rem; font-size: clamp(1.5rem, 2.2vw, 1.9rem); line-height: 1.05; }
html[lang^="ca"] .bb-school-page .bb-course-card p { max-width: 32ch; }
html[lang^="ca"] .bb-school-page .bb-course-card a { align-items: center; gap: .55rem; padding-top: 1.25rem; color: var(--bb-brand); }
html[lang^="ca"] .bb-school-page .bb-course-card a span { display: inline-grid; width: 1.75rem; height: 1.75rem; place-items: center; border-radius: 50%; background: var(--bb-brand); color: #fff; transition: transform .2s ease; }
html[lang^="ca"] .bb-school-page .bb-course-card a:hover span { transform: translate(2px, -2px); }

html[lang^="ca"] .bb-school-faq { background: #f7f2e9; }
html[lang^="ca"] .bb-school-faq > .bb-container { display: grid; grid-template-columns: minmax(14rem, .72fr) minmax(0, 1.28fr); align-items: start; gap: clamp(2rem, 6vw, 5.5rem); }
html[lang^="ca"] .bb-school-faq .bb-school-section-heading { position: sticky; top: 2rem; max-width: 34rem; }
html[lang^="ca"] .bb-school-faq .bb-school-section-heading h2 { font-size: clamp(2.4rem, 4.6vw, 4.3rem); }
html[lang^="ca"] .bb-school-faq__list { display: grid; gap: .75rem; min-width: 0; }
html[lang^="ca"] .bb-school-faq__list details { overflow: clip; border: 1px solid rgb(56 13 56 / 12%); border-radius: .9rem; background: #fff; box-shadow: 0 .5rem 1.6rem rgb(56 13 56 / 5%); transition: border-color .2s ease, box-shadow .2s ease; }
html[lang^="ca"] .bb-school-faq__list details[open] { border-color: rgb(184 121 0 / 45%); box-shadow: 0 .8rem 2rem rgb(56 13 56 / 8%); }
html[lang^="ca"] .bb-school-faq__list summary { position: relative; display: flex; min-height: 4.5rem; align-items: center; padding: 1rem 4rem 1rem 1.25rem; color: var(--bb-brand); cursor: pointer; font-weight: 800; line-height: 1.4; list-style: none; }
html[lang^="ca"] .bb-school-faq__list summary::-webkit-details-marker { display: none; }
html[lang^="ca"] .bb-school-faq__list summary::after { position: absolute; top: 50%; right: 1rem; display: grid; width: 2rem; height: 2rem; place-items: center; border-radius: 50%; background: #f6ead0; color: var(--bb-brand); content: '+'; font-size: 1.25rem; transform: translateY(-50%); }
html[lang^="ca"] .bb-school-faq__list details[open] summary::after { background: var(--bb-brand); color: #fff; content: '−'; }
html[lang^="ca"] .bb-school-faq__list summary:focus-visible { outline: 3px solid var(--bb-focus); outline-offset: 3px; }
html[lang^="ca"] .bb-school-faq__list details > p { max-width: 58ch; margin: 0; padding: 0 1.25rem 1.3rem; color: var(--bb-muted); line-height: 1.7; }
html[lang^="ca"] .bb-school-faq__list details > p a { color: var(--bb-brand); font-weight: 800; }

html[lang^="ca"] .bb-youth-page { max-width: none; }
html[lang^="ca"] .bb-youth-page__intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(16rem, .72fr); align-items: end; column-gap: clamp(2rem, 6vw, 5rem); row-gap: .5rem; margin-bottom: 2.5rem; }
html[lang^="ca"] .bb-youth-page__intro .bb-eyebrow { grid-column: 1 / -1; }
html[lang^="ca"] .bb-youth-page__intro h2 { max-width: 15ch; margin: .3rem 0 0; font-size: clamp(2.5rem, 5.3vw, 4.6rem); line-height: .98; letter-spacing: -.05em; }
html[lang^="ca"] .bb-youth-page__intro > p:last-child { margin: 0; padding: 1.25rem 1.4rem; border-left: 4px solid var(--bb-action); border-radius: 0 .75rem .75rem 0; background: var(--bb-surface-soft); color: var(--bb-ink); line-height: 1.7; }
html[lang^="ca"] .bb-youth-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
html[lang^="ca"] .bb-youth-card { box-sizing: border-box; min-width: 0; min-height: 13rem; margin: 0; padding: clamp(1.2rem, 2vw, 1.6rem); border: 1px solid rgb(56 13 56 / 12%); border-radius: 1rem; background: #fff; box-shadow: 0 .7rem 2rem rgb(56 13 56 / 5%); color: var(--bb-muted); line-height: 1.65; transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
html[lang^="ca"] .bb-youth-card:hover { border-color: var(--bb-action); box-shadow: var(--bb-shadow-card); transform: translateY(-3px); }
html[lang^="ca"] .bb-youth-card__meta { display: inline-flex; margin: 0 0 1.2rem; padding: .35rem .65rem; border-radius: 999px; background: #f6ead0; color: var(--bb-brand); font-size: .72rem; font-weight: 850; letter-spacing: .04em; }
html[lang^="ca"] .bb-youth-card h3 { margin: 0 0 .65rem; color: var(--bb-brand); font-size: clamp(1.3rem, 2vw, 1.7rem); line-height: 1.1; }
html[lang^="ca"] .bb-youth-card > p:last-child { max-width: 58ch; margin: 0; }
html[lang^="ca"] .bb-youth-card:first-child { grid-column: 1 / -1; min-height: 0; padding: clamp(1.5rem, 3vw, 2.2rem); border-color: var(--bb-brand); background: var(--bb-brand); color: rgb(255 255 255 / 82%); }
html[lang^="ca"] .bb-youth-card:first-child .bb-youth-card__meta { background: var(--bb-action); }
html[lang^="ca"] .bb-youth-card:first-child h3 { color: #fff; font-size: clamp(1.8rem, 3vw, 2.5rem); }

html[lang^="ca"] .bb-dinamitzacio-intro .bb-program-hero__layout { width: min(100%, 72rem); grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(1.5rem, 4vw, 4rem); }
html[lang^="ca"] .bb-dinamitzacio-intro .bb-program-hero__layout > * { min-width: 0; max-width: 100%; }
html[lang^="ca"] .bb-dinamitzacio-intro .bb-program-hero__image { width: 100%; }
html[lang^="ca"] .bb-dinamitzacio-intro .bb-program-hero__image img { display: block; width: 100%; height: clamp(20rem, 34vw, 31rem); object-fit: cover; object-position: center; }
html[lang^="ca"] .bb-dinamitzacio-intro .bb-program-hero__layout > div { overflow-wrap: anywhere; }
html[lang^="ca"] .bb-dinamitzacio-intro h2 { max-width: 13ch; font-size: clamp(2.4rem, 4.6vw, 4rem); line-height: .98; letter-spacing: -.05em; }
html[lang^="ca"] .bb-dinamitzacio-intro p:not(.bb-eyebrow) { max-width: 36rem; font-size: clamp(1rem, 1.35vw, 1.12rem); line-height: 1.75; }

html[lang^="ca"] .bb-news-index .bb-news-card__body { position: relative; min-height: 13rem; padding-bottom: 3.7rem; }
html[lang^="ca"] .bb-news-index .bb-news-card__body .wp-block-post-excerpt__more-link { position: absolute; bottom: .6rem; left: 50%; display: inline-flex; width: max-content; max-width: calc(100% - 1rem); justify-content: center; margin: 0; transform: translateX(-50%); white-space: nowrap; }

html[lang^="ca"] .bb-site-footer .bb-footer__grid nav:has(a[href*="facebook.com"], a[href*="instagram.com"], a[href*="tiktok.com"], a[href*="youtube.com"]) { grid-template-columns: repeat(4, minmax(2.5rem, max-content)); }
html[lang^="ca"] .bb-site-footer .bb-footer__grid nav:has(a[href*="facebook.com"], a[href*="instagram.com"], a[href*="tiktok.com"], a[href*="youtube.com"]) > a:not([href*="facebook.com"]):not([href*="instagram.com"]):not([href*="tiktok.com"]):not([href*="youtube.com"]) { grid-column: 1 / -1; }
html[lang^="ca"] .bb-site-footer .bb-footer__grid a[href*="facebook.com"]:has(svg),
html[lang^="ca"] .bb-site-footer .bb-footer__grid a[href*="instagram.com"]:has(svg),
html[lang^="ca"] .bb-site-footer .bb-footer__grid a[href*="tiktok.com"]:has(svg),
html[lang^="ca"] .bb-site-footer .bb-footer__grid a[href*="youtube.com"]:has(svg) { display: inline-grid !important; width: 2.75rem; height: 2.75rem; margin: .25rem .45rem .25rem 0 !important; padding: 0; place-items: center; overflow: hidden; border: 1px solid rgb(255 255 255 / 34%); border-radius: 50%; color: #fff; font-size: 0 !important; line-height: 0; text-decoration: none; vertical-align: middle; transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease; }
html[lang^="ca"] .bb-site-footer .bb-footer__grid a[href*="facebook.com"]:has(svg) svg,
html[lang^="ca"] .bb-site-footer .bb-footer__grid a[href*="instagram.com"]:has(svg) svg,
html[lang^="ca"] .bb-site-footer .bb-footer__grid a[href*="tiktok.com"]:has(svg) svg,
html[lang^="ca"] .bb-site-footer .bb-footer__grid a[href*="youtube.com"]:has(svg) svg { display: block; width: 1.2rem; height: 1.2rem; fill: currentColor; }
html[lang^="ca"] .bb-site-footer .bb-footer__grid a[href*="facebook.com"]:has(svg):hover,
html[lang^="ca"] .bb-site-footer .bb-footer__grid a[href*="instagram.com"]:has(svg):hover,
html[lang^="ca"] .bb-site-footer .bb-footer__grid a[href*="tiktok.com"]:has(svg):hover,
html[lang^="ca"] .bb-site-footer .bb-footer__grid a[href*="youtube.com"]:has(svg):hover { border-color: var(--bb-action); background: var(--bb-action); color: var(--bb-brand-deep); transform: translateY(-2px); }

@media (max-width: 48rem) {
  html[lang^="ca"] .bb-homepage #projectes .bb-section-intro--row,
  html[lang^="ca"] .bb-youth-page__intro { grid-template-columns: minmax(0, 1fr); align-items: start; }
  html[lang^="ca"] .bb-homepage #projectes .bb-section-intro--row > p { max-width: none; margin-top: 1rem; }
  html[lang^="ca"] .bb-projects-index .bb-projects-index__grid { grid-template-columns: minmax(0, 1fr); }
  html[lang^="ca"] .bb-school-faq > .bb-container { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  html[lang^="ca"] .bb-school-faq .bb-school-section-heading { position: static; }
  html[lang^="ca"] .bb-school-page .bb-course-card { min-height: 0; }
  html[lang^="ca"] .bb-school-page .bb-course-card h3 { margin-top: .9rem; }
  html[lang^="ca"] .bb-youth-grid { grid-template-columns: minmax(0, 1fr); }
  html[lang^="ca"] .bb-youth-card:first-child { grid-column: auto; width: 100%; }
  html[lang^="ca"] .bb-dinamitzacio-intro .bb-program-hero__layout { width: 100%; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  html[lang^="ca"] .bb-dinamitzacio-intro .bb-program-hero__layout > * { width: 100%; min-width: 0; }
  html[lang^="ca"] .bb-dinamitzacio-intro .bb-program-hero__image img { height: clamp(15rem, 72vw, 22rem); }
  html[lang^="ca"] .bb-site-footer .bb-footer__grid nav:has(a[href*="facebook.com"], a[href*="instagram.com"], a[href*="tiktok.com"], a[href*="youtube.com"]) { grid-template-columns: repeat(4, minmax(0, 2.25rem)); gap: .25rem; }
  html[lang^="ca"] .bb-site-footer .bb-footer__grid a[href*="facebook.com"]:has(svg),
  html[lang^="ca"] .bb-site-footer .bb-footer__grid a[href*="instagram.com"]:has(svg),
  html[lang^="ca"] .bb-site-footer .bb-footer__grid a[href*="tiktok.com"]:has(svg),
  html[lang^="ca"] .bb-site-footer .bb-footer__grid a[href*="youtube.com"]:has(svg) { width: 2.25rem; height: 2.25rem; margin: 0 !important; }
}

/* 2026-10-28 prepublicacion: hero responsive */
.bb-dynamic-hero__image img { width: 100%; max-width: 100%; }
@media (max-width: 48rem) { .bb-dynamic-hero__layout { grid-template-columns: minmax(0, 1fr); } }

/* 2026-10-28 prepublicacion: fondo a sangre del FAQ de landings sin desbordar con barra de scroll */
.bb-courses-body, .bb-courses-index { overflow-x: clip; }

/* BB 2026-10-29: tipografia del lead del hero de la home (CA y ES), a peticion de Pau. Solo cambia la fuente; tamano igual. */
.bb-hero__lead { font-family: Georgia, "Times New Roman", serif; color: rgb(255 255 255 / 90%); }
