/* Section backgrounds occupy the page. The inner element owns the 1440px content grid. */
.section-band { display: contents; }
.site-footer:has(.ft) { position: relative; width: 100%; background: #fff; }
.site-footer:has(.ft)::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: -8px;
  inset-inline: 0;
  height: 8px;
  background: var(--color-red);
  pointer-events: none;
}
.site-footer > .ft { width: min(100%, 1440px); margin-inline: auto; }

@media (min-width: 1441px) {
  .section-band { display: flow-root; width: 100%; }
  .section-inner { width: min(100%, 1440px); margin-inline: auto; }
  .section-band > :is(.section-inner, #news, #involve, #esg, #quote) { margin-inline: auto; max-width: 1440px; }
  .band-white { background: #fff; }
  .band-neutral { background: var(--color-pale-gray); }
  .band-pink { background: var(--color-pink); }
  .band-cikg-blue { background: var(--color-cikg-2); }
  .band-cikg-pale { background: var(--color-cikg-6); }
  .band-quote { background: linear-gradient(var(--color-red) 0 8px, #fff 8px); overflow: clip; }
  .band-quote #quote { overflow: visible; }
  .banner-canvas { margin-inline: auto; }
  .banner { background: linear-gradient(to top, #fff 8px, var(--color-pale-gray) 8px); }
  .banner-frame.is-left {
    --frame-left: min(-490px, calc(720px - 50vw));
    left: var(--frame-left); width: calc(350px - var(--frame-left));
  }
  .banner-frame.is-right { width: max(840px, calc(50vw - 372px)); }
  .banner-frame .banner-photo { min-width: calc(100% + 119px); object-fit: cover; }

  #activity { --activity-gutter: calc((100% - 1440px) / 2); }
  #activity .sec-title { left: calc(var(--activity-gutter) + 64px); }
  .act-tri-1 { left: calc(var(--activity-gutter) - 91px); }
  .act-tri-2 { left: calc(var(--activity-gutter) + 128px); }
  .act-panel { left: calc(var(--activity-gutter) + 522.7px); }
  .act-more { left: calc(var(--activity-gutter) + 1249px); }

  body.page-publications { width: 100%; }
  body.page-publications .pub-sub { left: calc(50% - 201px); }
  .vm-sub { left: calc(50% - 184px); margin: 0; }
  .tr-rest, .cikg-rest, .cikg-rule, .an-red, .people-rule, .vm-red, .pub-red { width: 100%; }
  .tr-sub { left: calc(50% - 427px); }
  .tr-wa { left: calc(50% + 625px); }
  .cikg-rest > * { margin-inline: auto; }
  .cikg-rest > .cikg-contact { left: calc(50% - 720px); width: 1440px; }

  /* The split banners share a fixed text column; the photo fills the remaining viewport. */
  :is(.an-banner,.people-banner,.vm-banner,.tr-banner,body.page-publications .pub-banner) {
    --banner-inset: calc((100% - 1440px) / 2);
    width: 100%; max-width: none; margin: 0; position: relative; display: block; overflow: clip;
    background: var(--color-pale-gray);
  }
  :is(.an-copy,.people-banner-panel,.vm-banner-copy,.tr-copy) { left: var(--banner-inset); }
  body.page-publications .pub-title { left: calc(var(--banner-inset) + 40px); }
  body.page-publications .pub-crumb { left: calc(var(--banner-inset) + 40px); }
  :is(.an-photo,.people-banner-photo,.vm-banner-photo,.tr-photo,body.page-publications .pub-photo) {
    left: calc(var(--banner-inset) + 400px); right: 0; width: auto;
  }
  :is(.an-photo,.people-banner-photo,.vm-banner-photo,.tr-photo,body.page-publications .pub-photo) img {
    min-width: calc(100% + var(--crop-offset, 0px)); height: auto;
  }
  :is(.tr-title, .tr-crumb, .vm-banner-title, .vm-crumb) { left: calc(var(--banner-inset) + 40px); }
  .tr-photo { --crop-offset: 626px; }
  .an-photo { --crop-offset: 16px; }
  .pub-photo { --crop-offset: 119px; }

  .cikg-banner { width: 100%; }
  .cikg-banner .cikg-slide { left: 50%; transform: translateX(-50%); min-width: 100%; min-height: 100%; height: auto; }
  .cikg-plate { left: calc(50% - 720px); }
  .cikg-banner .cikg-snav { left: calc(50% - 720px + 737px); }
  .cikg-dots { left: calc(50% + 692px); }
}

@media (min-width: 391px) and (max-width: 1439px) {
  .an-photo, .tr-photo { width: 100%; }
  .an-photo img, .tr-photo img { inset: 0; width: 100%; height: 100%; object-fit: cover; }
  .cikg-banner .cikg-slide { left: 0; width: 100%; height: 100%; top: 0; object-fit: cover; }
}

@media (width < 1440px) {
  .banner-canvas { margin-left: calc(50% - 720px); }
  .banner [data-prev] { left: max(260px, calc(720px - 50vw + 16px)); }
  .banner [data-next] { left: min(1140px, calc(720px + 50vw - 56px)); }
}

@media (min-width: 640px) and (max-width: 1439px) {
  .site-footer:has(.ft), body.page-publications .site-footer:has(.ft) { height: auto; }
  .site-footer .ft, body.page-publications .site-footer .ft {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px 24px;
    align-items: start;
    height: auto;
    padding: 40px clamp(24px, 5vw, 64px);
  }
  .site-footer .ft > *, body.page-publications .site-footer .ft > * {
    position: relative; inset: auto; grid-column: span 3; width: auto; margin: 0;
  }
  .site-footer .ft .ft-block { height: auto; background: none; }
  .site-footer .ft .ft-head { height: auto; min-height: 48px; }
  .site-footer .ft .ft-sub { width: 100%; }
  .site-footer .ft .ft-badge { grid-column: span 2; max-width: 100%; object-fit: contain; }
  .site-footer .ft .ft-legal {
    display: flex; flex-wrap: wrap; gap: 12px 24px; grid-column: 1 / -1;
    width: 100%; height: auto; padding-block: 20px; border-top: 1px solid #333;
  }
  .site-footer .ft .ft-legal::before { display: none; }
  .site-footer .ft .ft-legal > * { position: static; width: auto; height: auto; }
}

/* Nested absolute children need a local containing block when the accordion reflows. */
@media (max-width: 1439px) {
  .site-footer.ft-live .ft :is(.ft-social,.ft-sub,.ft-legal) { position: relative; }
  .site-footer.ft-live .ft .ft-social { height: 32px; }
  .site-footer.ft-live .ft .ft-sub { height: 149px; }
}
@media (max-width: 639px) {
  .site-footer.ft-live .ft .ft-legal { min-height: 235px; }
  .site-footer.ft-live .ft .ft-badge { display: inline-block; vertical-align: middle; max-width: 30%; height: auto; }
}
