/*
 * Home page, poster layout (Nov 2026). Loaded on the front page only, after
 * pages.css. Markup: inc/home-poster.php. Every selector is scoped to .cmba-hp
 * or the home body class so no other page changes.
 */

body.cmba-home-poster {
  --hp-ink: var(--cmba-ink);
  --hp-bb: var(--cmba-blue-black);
  --hp-bd: var(--cmba-blue-dark);
  --hp-blue: var(--cmba-blue);
  --hp-gd: oklch(24% 0.07 166);
  --hp-gold: var(--cmba-gold);
  --hp-orange: var(--cmba-orange);
  --hp-muted: var(--cmba-muted);
  --hp-white: var(--cmba-white);
  --hp-pb: oklch(95.5% 0.016 245);
  --hp-line: oklch(86% 0.016 246);
  --hp-line-d: oklch(99% 0.004 250 / 0.18);
  --hp-soft-d: oklch(99% 0.004 250 / 0.74);
  --hp-ink-line: oklch(18% 0.042 254 / 0.22);
  --hp-gut: 48px;
  --hp-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Full-bleed content area at every width. */
body.cmba-home-poster .entry-content .cmba-homepage {
  width: 100vw;
  max-width: none;
  margin-inline: calc(50% - 50vw);
  margin-block: 0;
  overflow-x: clip;
}

body.cmba-home-poster .entry-content .cmba-homepage > * {
  margin-block: 0;
}

.cmba-hp {
  font-family: var(--cmba-font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--hp-ink);
  background: var(--hp-white);
  margin: 0;
}

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

.cmba-hp :where(h1, h2, h3, p, figure, dl, dd) {
  margin: 0;
}

.cmba-hp :where(h1, h2, h3) {
  color: inherit;
  font-family: var(--cmba-font-sans);
  letter-spacing: 0;
  text-transform: none;
  text-wrap: balance;
}

.cmba-hp p {
  text-wrap: pretty;
}

.cmba-hp img {
  display: block;
  max-width: 100%;
  border-radius: 0;
}

.cmba-hp a {
  color: var(--hp-blue);
}

.cmba-hp a:hover {
  color: var(--hp-ink);
}

.cmba-hp a:focus-visible,
.cmba-hp [tabindex]:focus-visible {
  outline: 3px solid var(--hp-gold);
  outline-offset: 3px;
}

.cmba-hp ::selection {
  background: var(--hp-gold);
  color: var(--hp-ink);
}

/* ---------- Shared parts ---------- */

.cmba-hp-wrap {
  width: 100%;
  max-width: 1344px;
  margin-inline: auto;
  padding-inline: var(--hp-gut);
}

.cmba-hp-stack {
  display: flex;
  flex-direction: column;
  gap: 48px;
  padding-block: 112px;
}

.cmba-hp-label {
  font-family: var(--cmba-font-mono);
  font-size: 12px;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0;
}

.cmba-hp-label--dot::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  margin-right: 10px;
  vertical-align: 1px;
}

.cmba-hp-gold { color: var(--hp-gold); }
.cmba-hp-blue { color: var(--hp-blue); }

.cmba-hp-head {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
  min-width: 0;
}

.cmba-hp-intro {
  font-size: 18px;
  color: var(--hp-muted);
  max-width: 54ch;
}

.cmba-hp-intro strong {
  color: var(--hp-ink);
}

.cmba-hp-mega {
  font-size: 112px;
  line-height: 0.92;
  font-weight: 900;
}

.cmba-hp-big {
  font-size: 80px;
  line-height: 0.95;
  font-weight: 900;
}

.cmba-hp-d2 {
  font-size: 56px;
  line-height: 1;
  font-weight: 800;
}

.cmba-hp-d3 {
  font-size: 44px;
  line-height: 1.04;
  font-weight: 800;
}

.cmba-hp-split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 32px 96px;
  align-items: end;
}

.cmba-hp-rule-head {
  padding-bottom: 32px;
  border-bottom: 4px solid var(--hp-ink);
}

.cmba-hp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.cmba-hp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 24px;
  border: 0;
  border-radius: 0;
  font-family: var(--cmba-font-sans);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.18s var(--hp-ease), color 0.18s var(--hp-ease), box-shadow 0.18s var(--hp-ease);
}

.cmba-hp .cmba-hp-btn--gold { background: var(--hp-gold); color: var(--hp-bb); }
.cmba-hp .cmba-hp-btn--gold:hover { background: var(--hp-white); color: var(--hp-bb); }
.cmba-hp .cmba-hp-btn--ink { background: var(--hp-ink); color: var(--hp-white); }
.cmba-hp .cmba-hp-btn--ink:hover { background: var(--hp-blue); color: var(--hp-white); }
.cmba-hp .cmba-hp-btn--outline-light { color: var(--hp-white); box-shadow: inset 0 0 0 2px var(--hp-white); }
.cmba-hp .cmba-hp-btn--outline-light:hover { background: var(--hp-white); color: var(--hp-bb); }

/* ---------- Hero ---------- */

.cmba-hp-hero {
  background: var(--hp-bb);
  color: var(--hp-white);
}

.cmba-hp-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 56px;
  align-items: stretch;
}

.cmba-hp-hero__copy {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding-block: 72px;
  min-width: 0;
}

.cmba-hp .cmba-hp-hero__title {
  font-size: 72px;
  line-height: 1;
  font-weight: 900;
  max-width: 16ch;
  color: var(--hp-white);
}

.cmba-hp-hero__meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-left: 20px;
  border-left: 4px solid var(--hp-gold);
}

.cmba-hp-hero__meta h2 {
  font-size: 30px;
  line-height: 1.15;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--hp-white);
}

.cmba-hp-hero__date {
  font-family: var(--cmba-font-mono);
  font-size: 18px;
  font-weight: 700;
  color: var(--hp-gold);
}

.cmba-hp-hero__place {
  font-size: 18px;
  color: var(--hp-soft-d);
}

.cmba-hp-hero__visual {
  position: relative;
  min-height: 520px;
  margin-right: calc(-1 * max(var(--hp-gut), (100vw - 1344px) / 2 + var(--hp-gut)));
}

.cmba-hp-hero__visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 60%;
}

.cmba-hp-hero__visual figcaption {
  position: absolute;
  left: 0;
  bottom: 0;
  display: flex;
  gap: 20px;
  align-items: baseline;
  padding: 14px 20px;
  background: var(--hp-bb);
  font-weight: 700;
}

/* Programme bar */
.cmba-hp-programme {
  background: var(--hp-gold);
  color: var(--hp-ink);
}

.cmba-hp .cmba-hp-programme__link {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px 40px;
  padding: 28px 0;
  color: var(--hp-ink);
  text-decoration: none;
}

.cmba-hp-programme__meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 15px;
  font-weight: 600;
}

.cmba-hp-programme__title {
  font-size: 44px;
  line-height: 1;
  font-weight: 900;
}

.cmba-hp-programme__arrow {
  width: 64px;
  height: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--hp-ink);
  color: var(--hp-gold);
  transition: transform 0.2s var(--hp-ease);
}

.cmba-hp-programme__link:hover .cmba-hp-programme__arrow {
  transform: translateX(6px);
}

.cmba-hp-programme__pdf {
  padding: 14px 0 20px;
  border-top: 2px solid var(--hp-ink);
}

.cmba-hp .cmba-hp-programme__pdf a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 15px;
  font-weight: 700;
  color: var(--hp-ink);
  text-underline-offset: 4px;
}

/* Status rail */
.cmba-hp-rail {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.cmba-hp-rail__item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 24px 24px 28px;
  border-right: 1px solid var(--hp-line-d);
  font-weight: 700;
}

.cmba-hp-rail__item:first-child { padding-left: 0; }
.cmba-hp-rail__item:last-child { border-right: 0; }

.cmba-hp-rail__item .cmba-hp-label {
  color: var(--hp-soft-d);
}

.cmba-hp .cmba-hp-rail__item a {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  min-height: 44px;
  margin-block: -10px;
  color: var(--hp-white);
  text-underline-offset: 4px;
}

.cmba-hp .cmba-hp-rail__item:nth-child(4) a {
  color: var(--hp-gold);
  font-weight: 800;
}

/* ---------- Último lote box ---------- */

.cmba-hp-promo {
  background: var(--hp-bb);
  color: var(--hp-white);
  border-top: 1px solid var(--hp-line-d);
}

.cmba-hp-promo .cmba-hp-wrap {
  padding-block: 96px;
}

.cmba-hp-promo__card {
  max-width: 920px;
  margin: 0 auto;
  padding: 56px 64px 48px;
  background: var(--hp-bd);
  border: 1px solid var(--hp-gold);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  text-align: center;
}

.cmba-hp-promo__badge {
  background: var(--hp-orange);
  color: var(--hp-bb);
  padding: 10px 16px;
  font-size: 13px;
}

.cmba-hp .cmba-hp-promo__card h2 {
  font-size: 40px;
  line-height: 1.02;
  font-weight: 900;
  max-width: 14ch;
  color: var(--hp-white);
}

.cmba-hp-promo__lead {
  margin-top: -10px;
  font-size: 18px;
  color: var(--hp-soft-d);
  max-width: 52ch;
}

.cmba-hp-promo__meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  max-width: 640px;
}

.cmba-hp-promo__meta > div {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 64px;
  padding: 0 16px;
  background: var(--hp-bb);
  border-bottom: 3px solid var(--hp-gold);
  font-size: 17px;
}

.cmba-hp-promo__meta .cmba-hp-icon {
  flex: none;
  color: var(--hp-gold);
}

.cmba-hp-promo__discount {
  width: 100%;
  max-width: 640px;
  padding: 22px 28px;
  border: 1px solid oklch(75% 0.14 82 / 0.5);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cmba-hp .cmba-hp-promo__discount h3 {
  font-size: 20px;
  font-weight: 800;
  color: var(--hp-gold);
}

.cmba-hp-promo__discount p {
  color: var(--hp-soft-d);
}

.cmba-hp-promo__card .cmba-hp-btn {
  min-width: 220px;
}

.cmba-hp-promo__foot {
  color: var(--hp-soft-d);
}

.cmba-hp-promo__foot strong {
  color: var(--hp-white);
}

/* ---------- Countdown ---------- */

.cmba-hp-count {
  background: var(--hp-bb);
  color: var(--hp-white);
}

.cmba-hp-count .cmba-hp-wrap {
  padding-bottom: 96px;
}

.cmba-hp-count__band {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 64px;
}

.cmba-hp-count__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 70%;
}

.cmba-hp-count__board {
  position: relative;
  width: min(100%, 720px);
  padding: 40px;
  background: var(--hp-bb);
  border-top: 4px solid var(--hp-gold);
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.cmba-hp-count__tag {
  align-self: flex-start;
  color: var(--hp-bb);
  background: var(--hp-gold);
  padding: 7px 12px;
}

.cmba-hp .cmba-hp-count__board h2 {
  font-size: 84px;
  line-height: 0.95;
  font-weight: 900;
  color: var(--hp-white);
}

.cmba-hp-count__board h2 span {
  font-family: var(--cmba-font-mono);
  font-weight: 700;
  color: var(--hp-gold);
}

.cmba-hp-count__note {
  font-size: 17px;
  color: var(--hp-soft-d);
  max-width: 48ch;
}

.cmba-hp-count__units {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 6px;
}

.cmba-hp-count__units > div {
  padding: 16px;
  border: 1px solid var(--hp-line-d);
  background: var(--hp-bd);
  min-width: 0;
}

.cmba-hp-count__units strong {
  display: block;
  font-family: var(--cmba-font-mono);
  font-size: 40px;
  line-height: 1.05;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.cmba-hp-count__units .is-location strong {
  font-family: var(--cmba-font-sans);
  font-size: 24px;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  line-height: 42px;
  font-weight: 800;
  color: var(--hp-gold);
  min-height: 42px;
}

.cmba-hp-count__units .cmba-hp-label {
  color: var(--hp-soft-d);
  font-size: 11px;
}

/* ---------- President letters ---------- */

.cmba-hp-letters {
  background: transparent;
}

.cmba-hp-letter {
  background: var(--hp-white);
}

.cmba-hp-letter--reverse {
  background: var(--hp-pb);
}

.cmba-hp-letter > .cmba-hp-wrap {
  display: flex;
  flex-direction: column;
  gap: 56px;
  padding-block: 112px;
}

.cmba-hp-letter .cmba-hp-rule-head {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cmba-hp-letter--reverse .cmba-hp-d2 {
  max-width: 20ch;
}

.cmba-hp-letter__grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 56px;
  align-items: start;
}

.cmba-hp-letter--reverse .cmba-hp-letter__grid {
  grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
}

.cmba-hp-letter__portrait {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cmba-hp-letter__portrait img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: 50% 20%;
}

.cmba-hp-letter__portrait figcaption {
  text-align: left;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cmba-hp-letter__portrait strong {
  font-size: 18px;
}

.cmba-hp-letter__portrait .cmba-hp-label {
  color: var(--hp-muted);
  letter-spacing: 0.06em;
}

.cmba-hp-letter__copy {
  display: flex;
  flex-direction: column;
  gap: 28px;
  min-width: 0;
}

.cmba-hp-letter__lead {
  font-size: 32px;
  line-height: 1.25;
  font-weight: 600;
  max-width: 30ch;
}

.cmba-hp-letter__body {
  columns: 2;
  column-gap: 48px;
  font-size: 18px;
  line-height: 1.65;
  color: var(--hp-muted);
}

.cmba-hp-letter__body p {
  break-inside: avoid;
  margin-bottom: 16px;
}

.cmba-hp-letter__body p:last-child {
  margin-bottom: 0;
}

.cmba-hp-letter__body .is-signoff {
  color: var(--hp-ink);
  font-weight: 700;
}

/* ---------- Routes ---------- */

.cmba-hp-routes__list {
  border-top: 4px solid var(--hp-ink);
}

.cmba-hp .cmba-hp-d3 strong {
  font-weight: 900;
  box-shadow: inset 0 -0.22em 0 var(--hp-gold);
}

.cmba-hp .cmba-hp-route {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 56px;
  align-items: center;
  gap: 24px;
  min-height: 128px;
  padding: 20px 0;
  border-bottom: 2px solid var(--hp-ink);
  color: var(--hp-ink);
  text-decoration: none;
  transition: background-color 0.2s var(--hp-ease), padding 0.2s var(--hp-ease);
}

.cmba-hp .cmba-hp-route:hover {
  background: var(--hp-gold);
  color: var(--hp-ink);
  padding-inline: 16px;
}

.cmba-hp-route__text {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.cmba-hp-route__text strong {
  font-size: 40px;
  line-height: 1.05;
  font-weight: 900;
}

.cmba-hp-route code {
  font-family: var(--cmba-font-mono);
  font-size: 14px;
  font-weight: 700;
  padding: 6px 10px;
  border: 2px solid var(--hp-ink);
  border-radius: 0;
  background: transparent;
  color: inherit;
}

/* ---------- Prices ---------- */

.cmba-hp-reg {
  background: var(--hp-gold);
}

.cmba-hp-reg .cmba-hp-intro {
  color: var(--hp-ink);
  max-width: 58ch;
}

.cmba-hp-reg .cmba-hp-head {
  gap: 24px;
}

.cmba-hp-prices {
  overflow-x: auto;
  border-top: 4px solid var(--hp-ink);
}

.cmba-hp-prices table {
  width: 100%;
  min-width: 980px;
  margin: 0;
  border: 0;
  border-collapse: collapse;
  font-size: 15px;
  background: transparent;
}

.cmba-hp-prices th,
.cmba-hp-prices td {
  text-align: left;
  vertical-align: top;
  padding: 16px 14px;
  border: 0;
  border-bottom: 1px solid var(--hp-ink-line);
  background: transparent;
  color: var(--hp-ink);
}

.cmba-hp-prices thead th {
  font-family: var(--cmba-font-mono);
  font-size: 11px;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.cmba-hp-prices .cmba-hp-prices__cat {
  width: 28%;
}

.cmba-hp-prices th:first-child,
.cmba-hp-prices td:first-child {
  padding-left: 0;
  position: sticky;
  left: 0;
  background: var(--hp-gold);
}

.cmba-hp-prices tbody th {
  font-family: var(--cmba-font-sans);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.35;
}

.cmba-hp-prices tbody td {
  font-family: var(--cmba-font-mono);
  font-weight: 700;
  white-space: nowrap;
}

.cmba-hp-prices .is-now {
  background: var(--hp-ink);
  color: var(--hp-gold);
}

.cmba-hp-prices td.is-past {
  color: oklch(18% 0.042 254 / 0.74);
  font-weight: 400;
  text-decoration: line-through;
  text-decoration-color: oklch(18% 0.042 254 / 0.45);
  text-decoration-thickness: 1px;
}

.cmba-hp-prices__span {
  font-weight: 400;
}

/* ---------- International speakers ---------- */

.cmba-hp-intl {
  background: var(--hp-bb);
  color: var(--hp-white);
}

.cmba-hp-intl .cmba-hp-stack {
  gap: 56px;
}

.cmba-hp-intl__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px 48px;
}

.cmba-hp-intl__head .cmba-hp-head {
  max-width: 860px;
}

.cmba-hp-intl .cmba-hp-intro {
  color: var(--hp-soft-d);
  max-width: 60ch;
}

.cmba-hp-intl__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 2px;
}

.cmba-hp-intl__card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--hp-bd);
}

.cmba-hp-intl__card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: 50% 20%;
}

.cmba-hp-intl__card > div {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 18px 22px;
}

.cmba-hp-intl__country {
  font-size: 34px;
  line-height: 1;
  font-weight: 900;
  color: var(--hp-gold);
  text-transform: uppercase;
}

.cmba-hp .cmba-hp-intl__card h3 {
  font-size: 18px;
  line-height: 1.3;
  font-weight: 700;
  color: var(--hp-white);
}

/* ---------- National wall ---------- */

.cmba-hp-national {
  background: var(--hp-gd);
  color: var(--hp-white);
}

.cmba-hp-national > .cmba-hp-wrap:first-child {
  padding-top: 112px;
  padding-bottom: 64px;
}

.cmba-hp .cmba-hp-national h2 {
  color: var(--hp-white);
}

.cmba-hp-national .cmba-hp-head {
  gap: 24px;
}

.cmba-hp-national__copy.cmba-hp-intro {
  font-size: 20px;
  color: var(--hp-soft-d);
  max-width: 36ch;
}

.cmba-hp .cmba-hp-national .cmba-hp-btn--gold {
  color: var(--hp-gd);
}

.cmba-hp-national__wall {
  display: grid;
  grid-template-columns: repeat(var(--wall-d, 14), minmax(0, 1fr));
}

.cmba-hp-national__wall a {
  display: block;
}

.cmba-hp-national__wall img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: 50% 22%;
  filter: grayscale(1) contrast(1.05);
  transition: filter 0.25s var(--hp-ease);
}

.cmba-hp-national__wall a:hover img,
.cmba-hp-national__wall a:focus-visible img {
  filter: none;
}

.cmba-hp-national__wall a:focus-visible {
  outline-offset: -3px;
}

.cmba-hp-national__foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 20px;
}

.cmba-hp-national__foot .cmba-hp-label {
  color: var(--hp-soft-d);
}

.cmba-hp-national__foot strong {
  color: var(--hp-gold);
}

/* ---------- Scientific works ---------- */

.cmba-hp-works .cmba-hp-stack {
  gap: 56px;
}

.cmba-hp-works .cmba-hp-intro {
  max-width: 44ch;
}

.cmba-hp-works__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.cmba-hp-works__lead,
.cmba-hp-works__item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 28px;
  border-left: 1px solid var(--hp-line);
  min-width: 0;
}

.cmba-hp-works__lead {
  gap: 16px;
  align-items: flex-start;
  padding-left: 0;
  border-left: 0;
}

.cmba-hp-works__item:last-child {
  padding-right: 0;
}

.cmba-hp-works__lead .cmba-hp-label {
  color: var(--hp-muted);
}

.cmba-hp .cmba-hp-works__lead h3 {
  font-size: 26px;
  line-height: 1.15;
  font-weight: 800;
}

.cmba-hp-works__lead .cmba-hp-btn {
  margin-top: auto;
}

.cmba-hp-works__item > strong {
  font-size: 17px;
}

.cmba-hp-works__item > p {
  color: var(--hp-muted);
}

.cmba-hp .cmba-hp-works__date {
  font-size: 26px;
  line-height: 1.2;
  font-weight: 800;
  color: var(--hp-ink);
}

.cmba-hp-works__date span {
  box-shadow: inset 0 -0.3em 0 var(--hp-orange);
}

.cmba-hp .cmba-hp-works__mail a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 22px;
  font-weight: 700;
  text-underline-offset: 5px;
  overflow-wrap: anywhere;
}

/* ---------- Venue ---------- */

.cmba-hp-venue {
  background: var(--hp-pb);
}

.cmba-hp-venue__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 64px;
  align-items: stretch;
}

.cmba-hp-venue__photo {
  position: relative;
  min-height: 420px;
  margin-left: calc(-1 * max(var(--hp-gut), (100vw - 1344px) / 2 + var(--hp-gut)));
}

.cmba-hp-venue__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cmba-hp-venue__copy {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
  padding-block: 112px;
  min-width: 0;
}

.cmba-hp-venue__date {
  font-family: var(--cmba-font-mono);
  font-size: 18px;
  font-weight: 700;
}

.cmba-hp-venue__facts {
  width: 100%;
  border-top: 2px solid var(--hp-ink);
}

.cmba-hp-venue__facts > div {
  padding: 14px 0;
  border-bottom: 1px solid var(--hp-line);
}

.cmba-hp-venue__facts dt {
  font-weight: 700;
}

.cmba-hp-venue__facts dd {
  color: var(--hp-muted);
}

.cmba-hp-venue__room {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  margin-top: 16px;
}

/* ---------- Archive ---------- */

.cmba-hp-archive .cmba-hp-stack {
  gap: 40px;
}

.cmba-hp-archive__list {
  border-top: 4px solid var(--hp-ink);
}

.cmba-hp-archive__row {
  display: grid;
  grid-template-columns: 260px 280px minmax(0, 1fr) auto;
  gap: 24px 48px;
  align-items: center;
  padding: 32px 0;
  border-bottom: 1px solid var(--hp-ink-line);
}

.cmba-hp-archive__year {
  font-family: var(--cmba-font-mono);
  font-size: 96px;
  line-height: 0.9;
  font-weight: 700;
}

.cmba-hp-archive__media {
  aspect-ratio: 4 / 3;
  background: var(--hp-pb);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.cmba-hp-archive__media img {
  max-width: 84%;
  max-height: 84%;
  object-fit: contain;
}

.cmba-hp-archive__media.is-photo img {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
}

.cmba-hp-archive__title {
  font-size: 24px;
  line-height: 1.25;
  font-weight: 700;
  max-width: 26ch;
}

.cmba-hp .cmba-hp-archive__row a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 15px;
  font-weight: 700;
  text-underline-offset: 4px;
}

/* ---------- Page frame ---------- */

/* The sticky command bar sits directly on the hero: no Blocksy content gap above it. */
body.cmba-home-poster .site-main > .ct-container-full {
  padding-top: 0;
}

/* ---------- Sponsors band (above the congress archive) ---------- */

body.cmba-home-poster .cmba-sponsors-band--home {
  background: var(--hp-white);
  padding: 112px 0 0;
  border: 0;
}

body.cmba-home-poster .cmba-sponsors-band--home > .cmba-shell {
  width: 100%;
  max-width: 1344px;
  margin-inline: auto;
  padding-inline: var(--hp-gut);
}

body.cmba-home-poster .cmba-home-sponsors {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 0;
  margin: 0;
  background: transparent;
  border: 0;
}

body.cmba-home-poster .cmba-home-sponsors h2 {
  margin: 0;
  font-family: var(--cmba-font-sans);
  font-size: 56px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
  color: var(--hp-ink);
  text-align: left;
}

body.cmba-home-poster .cmba-home-sponsors__grid {
  display: grid;
  width: 100%;
  margin-top: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 4px solid var(--hp-ink);
}

/* Main sponsor: its own row, centred, one grid cell wide */
body.cmba-home-poster .cmba-home-sponsors__main {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 4px solid var(--hp-ink);
  border-bottom: 1px solid var(--hp-line);
}

body.cmba-home-poster .cmba-home-sponsors .cmba-home-sponsors__main > .cmba-sponsor-card {
  grid-column: 2;
  border-bottom: 0;
}

body.cmba-home-poster .cmba-home-sponsors .cmba-home-sponsors__grid.has-main {
  margin-top: -32px;
  border-top: 0;
}

body.cmba-home-poster .cmba-home-sponsors .cmba-sponsor-card {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 168px;
  padding: 28px 40px;
  border: 0;
  border-bottom: 1px solid var(--hp-line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.cmba-home-poster .cmba-home-sponsors .cmba-sponsor-card img {
  max-width: 100%;
  max-height: 76px;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* ---------- Tablet and phone ---------- */

@media (max-width: 1100px) {
  .cmba-hp-national__wall {
    grid-template-columns: repeat(var(--wall-t, 10), minmax(0, 1fr));
  }

  .cmba-hp-hero__grid,
  .cmba-hp-split,
  .cmba-hp-letter__grid,
  .cmba-hp-letter--reverse .cmba-hp-letter__grid,
  .cmba-hp-venue__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .cmba-hp-hero__visual {
    min-height: 340px;
    margin-left: calc(-1 * var(--hp-gut));
    margin-right: calc(-1 * var(--hp-gut));
  }

  .cmba-hp-rail {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .cmba-hp-rail__item,
  .cmba-hp-rail__item:first-child {
    padding: 18px 16px 18px 0;
    border-right: 0;
    border-bottom: 1px solid var(--hp-line-d);
  }

  .cmba-hp-letter--reverse .cmba-hp-letter__portrait {
    order: -1;
  }

  .cmba-hp-letter__portrait {
    max-width: 420px;
  }

  /* Price table becomes one block per category, current period first. */
  .cmba-hp-prices table { min-width: 0; }
  .cmba-hp-prices thead { display: none; }
  .cmba-hp-prices table,
  .cmba-hp-prices tbody,
  .cmba-hp-prices th,
  .cmba-hp-prices td { display: block; }

  .cmba-hp-prices tr {
    display: flex;
    flex-direction: column;
    padding: 20px 0 24px;
    border-bottom: 2px solid var(--hp-ink);
  }

  .cmba-hp-prices tbody th[scope="row"] {
    position: static;
    background: none;
    padding: 0 0 12px;
    border: 0;
    order: -2;
    font-size: 19px;
  }

  .cmba-hp-prices td,
  .cmba-hp-prices td:first-child {
    position: static;
    background: none;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    padding: 10px 0;
    white-space: normal;
  }

  .cmba-hp-prices td::before {
    content: attr(data-col);
    font-family: var(--cmba-font-sans);
    font-weight: 500;
    font-size: 15px;
    text-decoration: none;
  }

  .cmba-hp-prices td.is-now {
    order: -1;
    background: var(--hp-ink);
    color: var(--hp-gold);
    padding: 12px 14px;
    margin-bottom: 6px;
    font-size: 17px;
    border: 0;
  }

  .cmba-hp-prices td.is-now::before {
    color: var(--hp-white);
    font-weight: 700;
  }

  .cmba-hp-prices td:empty { display: none; }
  .cmba-hp-prices__span { display: none; }

  .cmba-hp-intl__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .cmba-hp-works__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 40px;
  }

  .cmba-hp-works__grid > :nth-child(odd) {
    border-left: 0;
    padding-left: 0;
  }

  .cmba-hp-venue__photo {
    min-height: 320px;
    margin-left: calc(-1 * var(--hp-gut));
    margin-right: calc(-1 * var(--hp-gut));
  }

  .cmba-hp-venue__copy {
    padding-top: 56px;
    padding-bottom: 88px;
  }

  .cmba-hp-archive__row {
    grid-template-columns: 180px minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  body.cmba-home-poster {
    --hp-gut: 16px;
  }

  .cmba-hp-stack,
  .cmba-hp-letter > .cmba-hp-wrap {
    padding-block: 72px;
    gap: 36px;
  }

  .cmba-hp-mega { font-size: 52px; }
  .cmba-hp-big { font-size: 44px; }
  .cmba-hp-d2 { font-size: 34px; }
  .cmba-hp-d3 { font-size: 30px; }

  .cmba-hp-hero__copy {
    gap: 28px;
    padding-block: 48px;
  }

  .cmba-hp .cmba-hp-hero__title {
    font-size: 42px;
    line-height: 1.02;
  }

  .cmba-hp-hero__meta h2 { font-size: 24px; }

  .cmba-hp-hero__visual { min-height: 260px; }

  .cmba-hp .cmba-hp-programme__link {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px 20px;
    padding: 24px 0;
  }

  .cmba-hp-programme__meta { grid-column: 1 / -1; }
  .cmba-hp-programme__title { font-size: 30px; }
  .cmba-hp-programme__arrow { width: 52px; height: 52px; }

  .cmba-hp-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cmba-hp-promo .cmba-hp-wrap { padding-block: 56px; }

  .cmba-hp-promo__card {
    padding: 40px 20px 36px;
    gap: 24px;
  }

  .cmba-hp .cmba-hp-promo__card h2 { font-size: 34px; }

  .cmba-hp-promo__meta { grid-template-columns: minmax(0, 1fr); }

  .cmba-hp-promo__discount { padding: 20px; }

  .cmba-hp-count .cmba-hp-wrap { padding-bottom: 56px; }
  .cmba-hp-count__band { padding: 16px; }
  .cmba-hp-count__board { padding: 24px 20px; }
  .cmba-hp .cmba-hp-count__board h2 { font-size: 56px; }

  .cmba-hp-count__units {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cmba-hp-count__units .is-location strong { font-size: 22px; min-height: 0; line-height: 1.05; }

  .cmba-hp-letter__lead { font-size: 24px; }
  .cmba-hp-letter__body { columns: 1; font-size: 17px; }

  .cmba-hp .cmba-hp-route {
    min-height: 96px;
    grid-template-columns: minmax(0, 1fr) 40px;
    gap: 16px;
  }

  .cmba-hp-route code { display: none; }
  .cmba-hp-route__text strong { font-size: 28px; }
  .cmba-hp-route .cmba-hp-icon { width: 32px; height: 32px; }

  .cmba-hp-intl__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cmba-hp-intl__country { font-size: 24px; }

  .cmba-hp-national > .cmba-hp-wrap:first-child {
    padding-top: 72px;
    padding-bottom: 40px;
  }

  .cmba-hp-national__wall {
    grid-template-columns: repeat(var(--wall-m, 7), minmax(0, 1fr));
  }

  .cmba-hp-works__grid {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 32px;
  }

  .cmba-hp-works__grid > *,
  .cmba-hp-works__grid > :nth-child(odd) {
    border-left: 0;
    padding: 24px 0 0;
    border-top: 1px solid var(--hp-line);
  }

  .cmba-hp-works__grid > :first-child {
    border-top: 0;
    padding-top: 0;
  }

  .cmba-hp-works__mail a { font-size: 19px; }

  .cmba-hp-venue__photo { min-height: 260px; }

  .cmba-hp-venue__copy {
    padding-top: 40px;
    padding-bottom: 72px;
  }

  .cmba-hp-archive__row {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .cmba-hp-archive__year { font-size: 64px; }
  .cmba-hp-archive__media { max-width: 320px; }

  body.cmba-home-poster .cmba-sponsors-band--home { padding-top: 72px; }
  body.cmba-home-poster .cmba-home-sponsors h2 { font-size: 34px; }
  body.cmba-home-poster .cmba-home-sponsors .cmba-sponsor-card { height: 104px; min-height: 0; padding: 16px 10px; }
  body.cmba-home-poster .cmba-home-sponsors__grid > :last-child:nth-child(odd) { grid-column: auto; }
  body.cmba-home-poster .cmba-home-sponsors .cmba-sponsor-card img { max-height: 52px; }
}

@media (prefers-reduced-motion: reduce) {
  .cmba-hp-btn,
  .cmba-hp .cmba-hp-route,
  .cmba-hp-programme__arrow,
  .cmba-hp-national__wall img {
    transition: none;
  }

  .cmba-hp-programme__link:hover .cmba-hp-programme__arrow {
    transform: none;
  }
}
