/* CKB-CMS-VERTICAL-SLICE-R1-C; inherits CKB-CMS-PARALLEL-R1-P1
   Integration-only layer. The protected R1-R4-R4 CSS stack is loaded first;
   this file adapts it to WordPress/admin-bar/CMS templates without rewriting
   the approved shell. */

html { scroll-padding-top: 112px; }
body.admin-bar .site-header-shell { top: 32px; }
@media (max-width: 782px) {
  body.admin-bar .site-header-shell { top: 46px; }
}

/* WordPress provides the page canvas; do not let Foundation-era wrappers leak. */
.ckb-wp-shell #ckbMainContent { min-height: 58vh; }

/* Unavailable routes and missing translations stay visibly unavailable. */
.ckb-shell-lang-pending,
.ckb-shell-lang-pending:disabled,
.mobile-root-meta button:disabled {
  opacity: .46;
  cursor: not-allowed;
}
.ckb-shell-pending,
.ckb-shell-mobile-pending {
  opacity: .48;
  cursor: not-allowed;
  user-select: none;
}
.ckb-shell-mobile-pending {
  display: flex;
  align-items: center;
  min-height: 48px;
  font: inherit;
}

/* P1 proof surface: visual shell only, not a reconstruction of homepage modules. */
.ckb-cms-shell-proof {
  width: min(var(--content-width, 1376px), calc(100% - 56px));
  margin: 0 auto;
  padding: 96px 0 110px;
}
.ckb-cms-shell-proof__inner { max-width: 920px; }
.ckb-cms-shell-proof h1 {
  margin: 16px 0 24px;
  font-size: clamp(48px, 6.4vw, 92px);
  line-height: .98;
  letter-spacing: -.04em;
  font-weight: 600;
}
.ckb-cms-shell-proof__lede {
  max-width: 800px;
  margin: 0;
  font-size: 19px;
  line-height: 1.58;
}
.ckb-cms-shell-proof__event {
  margin-top: 68px;
  padding-top: 28px;
  border-top: 1px solid var(--theme-line, rgba(11,11,11,.18));
}
.ckb-cms-shell-proof__event h2,
.ckb-cms-index-list h2 {
  margin: 8px 0 12px;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.08;
  font-weight: 600;
}
.ckb-cms-shell-proof__event a,
.ckb-cms-index-list a { text-decoration: none; }
.ckb-cms-index-list article { padding: 28px 0; border-top: 1px solid var(--theme-line, rgba(11,11,11,.18)); }

/* Preserve the proven R1-A event facts while placing them inside the R1-R4-R4 shell. */
.ckb-foundation-shell {
  width: min(var(--content-width, 1376px), calc(100% - 56px));
  margin-inline: auto;
}
.ckb-foundation-kicker {
  margin: 0;
  font-size: 12px;
  letter-spacing: .08em;
  font-weight: 700;
  text-transform: uppercase;
}
.ckb-event-detail { padding-block: 86px 108px; }
.ckb-event-detail__header { max-width: 940px; margin-bottom: 34px; }
.ckb-event-detail__header h1 {
  font-size: clamp(44px, 6.25vw, 86px);
  line-height: .98;
  margin: 12px 0 22px;
  letter-spacing: -.042em;
  font-weight: 600;
}
.ckb-event-detail__types { margin: 0 0 8px; color: var(--theme-text-muted, #646464); font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.ckb-event-detail__lede { margin: 0; max-width: 780px; font-size: 19px; line-height: 1.55; color: var(--theme-text, #0b0b0b); }
.ckb-event-detail__media { margin: 38px 0 44px; }
.ckb-event-detail__media img { display: block; width: 100%; height: auto; max-height: 760px; object-fit: contain; object-position: left center; }
.ckb-event-facts { margin: 0 0 44px; border-top: 1px solid var(--theme-line, rgba(11,11,11,.18)); }
.ckb-event-facts__row { display: grid; grid-template-columns: minmax(130px, 170px) 1fr; gap: 24px; padding: 16px 0; border-bottom: 1px solid var(--theme-line, rgba(11,11,11,.14)); }
.ckb-event-facts dt { margin: 0; color: var(--theme-text-muted, #646464); font-size: 12px; font-weight: 600; letter-spacing: .055em; text-transform: uppercase; }
.ckb-event-facts dd { margin: 0; font-size: 17px; line-height: 1.45; }
.ckb-event-detail__body { max-width: 820px; font-size: 18px; line-height: 1.65; }
.ckb-event-detail__body > :first-child { margin-top: 0; }
.ckb-event-registration { max-width: 820px; margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--theme-line, rgba(11,11,11,.18)); }
.ckb-event-registration h2 { margin: 0 0 12px; font-size: 28px; }
.ckb-event-registration__cta { display: inline-flex; min-height: 44px; align-items: center; padding: 10px 16px; border: 1px solid currentColor; text-decoration: none; font-weight: 600; }
.ckb-event-detail__back { margin-top: 56px; }
.ckb-event-detail__back a { text-decoration-thickness: 1px; text-underline-offset: 4px; }

@media (max-width: 860px) {
  .ckb-cms-shell-proof,
  .ckb-foundation-shell { width: min(100% - 28px, var(--content-width, 1376px)); }
  .ckb-cms-shell-proof { padding: 62px 0 76px; }
  .ckb-cms-shell-proof h1 { font-size: clamp(40px, 12vw, 62px); }
  .ckb-cms-shell-proof__lede { font-size: 17px; line-height: 1.58; }
  .ckb-event-detail { padding-block: 54px 72px; }
  .ckb-event-detail__header h1 { font-size: clamp(36px, 11vw, 56px); }
  .ckb-event-detail__lede { font-size: 17px; line-height: 1.55; }
  .ckb-event-facts__row { grid-template-columns: 1fr; gap: 6px; padding: 14px 0; }
  .ckb-event-detail__body { font-size: 17px; }
}


/* R1-C: language navigation is now an anchor or a current/unavailable span.
   Keep the protected button-era sizing, responsive rules and dark Curtain. */
.language-switch .lang-option,
.mobile-root-meta .lang-option {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font: inherit;
}
.language-switch .lang-option[aria-current="true"],
.mobile-root-meta .lang-option[aria-current="true"] {
  font-weight: 700;
  cursor: default;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.language-switch .lang-option[aria-disabled="true"],
.mobile-root-meta .lang-option[aria-disabled="true"] {
  opacity: .46;
  cursor: not-allowed;
}
.language-switch a.lang-option:focus-visible,
.mobile-root-meta a.lang-option:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}
.mobile-root-meta .lang-option {
  min-width: 44px;
  min-height: 44px;
  border: 0;
  background: transparent;
  color: inherit;
  padding: 8px 0;
  font-size: 16px;
  font-weight: 600;
}
.curtain-link.is-unavailable,
.curtain-primary-link.is-unavailable,
.site-footer a[aria-disabled="true"] {
  opacity: .55;
  cursor: not-allowed;
  text-decoration: none;
}
/* Current/missing language spans must not inherit generic divider styling. */
.language-switch span[data-lang] { vertical-align: middle; }
