/* Corporate template (templates/sites/corporate.html). Tokens and layout only;
 * every color is a palette token, so light and dark both work. Light is its
 * default, on a white page. */

.t-corporate {
  --heading-weight: 800;
  --heading-tracking: -0.01em;
  --r-card: 8px;
  --r-tile: 8px;
  --r-thumb: 8px;
  --r-control: 6px;
  --r-button: 8px;
  --gutter: 16px;
  --gallery-gap: 12px;
  --title-size: 30px;
  --bar-h: 56px;
}
/* White, not paper: the page takes the card color, and the partners' band the paper. */
.t-corporate.mode-light { --bg: var(--card); --band: color-mix(in srgb, var(--tile) 30%, var(--card)); }
.t-corporate.mode-dark { --band: var(--card); }

/* --- Header bar ----------------------------------------------------------------- */

.corp-bar { position: sticky; top: 0; z-index: 5; background: var(--bg); border-bottom: 1px solid var(--border); }
.corp-bar__inner {
  max-width: var(--page-max);
  margin: 0 auto;
  height: var(--bar-h);
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.corp-bar__brand { display: flex; align-items: center; gap: 10px; min-width: 0; color: var(--ink); }
.corp-bar__brand:hover { color: var(--ink); }
.corp-bar__logo { width: 32px; height: 32px; object-fit: contain; flex: none; }
/* A light logo (site.hero.logo_light) on the dark plate, in both modes. */
.corp-bar__logo.is-light { padding: 3px; border-radius: var(--r-tile); background: var(--logo-plate-dark); }
.corp-bar__mark {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; flex: none;
  border-radius: 6px;
  background: var(--brand);
  color: var(--on-brand);
  font: 800 12px/1 var(--display);
}
.corp-bar__name { font: 800 15px/1.2 var(--display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* --- Hero: text first, the cover as a side panel -------------------------------- */

.t-corporate .hero--split {
  min-height: 0;
  padding: 22px var(--gutter) 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px;
  column-gap: 14px;
  align-items: end;
  background: none;
  color: var(--ink);
}
.t-corporate .hero--split .hero__img,
.t-corporate .hero--split .hero__collage {
  position: relative;
  z-index: 0;
  grid-column: 2;
  grid-row: 1;
  width: 96px;
  height: 130px;
  border-radius: var(--r-card);
  object-fit: cover;
  background: var(--tile);
}
.t-corporate .hero--split .hero__collage { display: block; overflow: hidden; }
.t-corporate .hero--split .hero__collage img:not(:first-child) { display: none; }
.t-corporate .hero--split .hero__scrim { display: none; }
.t-corporate .hero--split .hero__body { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; }
.t-corporate .hero--split.hero--solid { grid-template-columns: minmax(0, 1fr); }
/* Date first, as the eyebrow; the tagline under the title as its description. */
.t-corporate .hero--split .hero__date {
  order: -1;
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.t-corporate .hero__title { margin: 6px 0 0; font-size: var(--title-size); line-height: 1.1; }
.t-corporate .hero--split .hero__eyebrow {
  order: 2;
  margin: 8px 0 0;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: normal;
  text-transform: none;
  color: var(--body);
}

/* --- Actions -------------------------------------------------------------------- */

.corp-actions { display: flex; gap: 8px; padding: 0 var(--gutter); }
.corp-actions .cta { flex: 1 1 auto; padding: 0; }
.corp-actions .cta__button { min-height: 48px; font-size: 14px; font-weight: 700; }
.corp-actions .cta__button svg { width: 18px; height: 18px; }
.corp-agenda { width: auto; flex: none; min-height: 48px; padding: 0 16px; border-radius: var(--r-button); font-weight: 700; }

/* --- Sections ------------------------------------------------------------------- */

.corp-main { display: grid; grid-template-columns: minmax(0, 1fr); }
.corp-section { padding: 20px var(--gutter) 8px; }
.corp-section--highlights:not(:has(.highlights)) { display: none; }
.corp-section--sponsors { margin-top: 16px; padding-top: 28px; padding-bottom: 16px; background: var(--band); }
.corp-sessions { padding-bottom: 10px; }
/* The programme and moments in one row (c.sessions with moments on) scroll in their own strip. */
.corp-sessions:has(.moments) { padding-bottom: 0; }
.corp-sessions:not(:has(.sessions, .moments)) { display: none; }
.corp-sessions .sessions__chips { flex-wrap: nowrap; overflow-x: auto; }
.t-corporate .chip { min-height: 32px; font-size: 12px; }
.corp-section .moments__strip { padding-bottom: 10px; }
.t-corporate .moments { --chip-r: var(--r-control); }
.t-corporate .moment-chip { min-height: 32px; padding-top: 3px; padding-bottom: 3px; font-size: 12px; }
.t-corporate .moment-chip--all { padding-left: 12px; }
.t-corporate .moment-chip__cover { width: 24px; height: 24px; border-radius: 4px; }
.t-corporate .moment-head__name { font-size: 15px; letter-spacing: -0.01em; }

.t-corporate .block-title { margin-bottom: 12px; font-size: 18px; letter-spacing: -0.01em; }
.t-corporate .thumb__caption { font-size: 11px; }
.t-corporate .schedule__row { padding: 8px 0; border-bottom: 1px solid var(--border); }
.t-corporate .schedule__row:last-child { border-bottom: 0; }
.t-corporate .schedule__time { color: var(--brand-text); font-weight: 700; }
.t-corporate .linkcard { min-height: 48px; padding: 0 16px; border: 1px solid var(--border-strong); border-radius: var(--r-card); }

/* Tiered partners: the gold one alone on a wide tile, the rest three to a row. */
.t-corporate .sponsors__title { color: var(--muted); font-weight: 700; margin-bottom: 8px; }
.t-corporate .sponsors__row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.t-corporate .sponsors__row--gold { grid-template-columns: minmax(0, 1fr); }
.t-corporate .sponsors__item { min-width: 0; max-width: none; }
.t-corporate .sponsor { height: 44px; background: var(--card); border: 1px solid var(--border); color: var(--muted); }
.t-corporate .sponsors__row--gold .sponsor { height: 64px; }

/* --- Footer --------------------------------------------------------------------- */

.corp-foot { border-top: 1px solid var(--border); }
.corp-foot .credit { border-top: 0; font-size: 11px; line-height: 1.7; }

@media (min-width: 600px) {
  .t-corporate { --gutter: 24px; --title-size: 36px; }
  .t-corporate .hero--split { grid-template-columns: minmax(0, 1fr) 200px; column-gap: 24px; padding-top: 32px; }
  .t-corporate .hero--split .hero__img,
  .t-corporate .hero--split .hero__collage { width: 200px; height: 150px; }
  .corp-actions .cta { flex: 0 1 auto; }
  .corp-actions .cta__button { width: auto; min-width: 220px; }
  .corp-sessions .sessions__chips { flex-wrap: wrap; }
}

@media (min-width: 900px) {
  .t-corporate { --gutter: 32px; --title-size: 44px; --page-max: 1100px; }
  .t-corporate .hero--split { grid-template-columns: minmax(0, 1fr) 360px; column-gap: 48px; padding: 48px var(--gutter) 28px; align-items: center; }
  .t-corporate .hero--split .hero__img,
  .t-corporate .hero--split .hero__collage { width: 360px; height: 240px; }
  .t-corporate .hero--split .hero__eyebrow { font-size: 16px; }
  .corp-actions .cta { flex-direction: row; }
  /* Info sections side by side; the gallery and anything wide keep the row. */
  .corp-main { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; padding: 8px var(--gutter) 0; }
  .corp-section { padding-left: 0; padding-right: 0; }
  .corp-section--gallery, .corp-section--image, .corp-section--map, .corp-section--sponsors,
  .corp-section--highlights { grid-column: 1 / -1; }
  .corp-section--sponsors { margin: 24px calc(var(--gutter) * -1) 0; padding: 32px var(--gutter) 24px; border-radius: var(--r-card); }
  .t-corporate .sponsors__row { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .t-corporate .sponsors__row--gold { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
}
