/* YFG awards showcase. Reversible runtime replacement for the homepage section. */

body.yfg-shell .bde-section-24-387.yfg-awards-showcase {
  --yfg-awards-navy: #062548;
  --yfg-awards-deep: #03182e;
  --yfg-awards-gold: #a87848;
  --yfg-awards-gold-light: #c7a77f;
  --yfg-awards-surface: #fbfbfb;
  --yfg-awards-max: 1360px;
  position: relative;
  display: block;
  min-height: 0;
  overflow: hidden;
  padding: clamp(58px, 5.4vw, 84px) 0 clamp(58px, 5.4vw, 84px);
  color: var(--yfg-awards-navy);
  background: var(--yfg-awards-surface);
  font-family: var(--yfg-service-sans, "Inter", "PingFang TC", "Microsoft JhengHei", sans-serif);
  isolation: isolate;
}

body.yfg-shell .yfg-awards-showcase::before {
  position: absolute;
  z-index: -1;
  top: 0;
  left: 50%;
  width: min(92vw, 1500px);
  height: 1px;
  content: "";
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(199, 167, 127, 0.54), transparent);
}

body.yfg-shell .yfg-awards-showcase__heading {
  position: relative;
  z-index: 4;
  width: min(calc(100% - 64px), var(--yfg-awards-max));
  margin: 0 auto;
  text-align: center;
}

body.yfg-shell .yfg-awards-showcase__heading h2 {
  margin: 0;
  color: var(--yfg-home-title-color, #936846) !important;
  font-family: var(--yfg-home-title-font, "Libre Baskerville", "Songti SC", "Songti TC", Georgia, serif) !important;
  font-size: var(--yfg-home-title-size, clamp(32px, 3.6vw, 58px)) !important;
  font-weight: 400 !important;
  letter-spacing: var(--yfg-home-title-letter-spacing, 0.08em) !important;
  line-height: var(--yfg-home-title-line-height, 1) !important;
}

body.yfg-shell .yfg-awards-carousel {
  position: relative;
  width: min(calc(100% - 64px), var(--yfg-awards-max));
  margin: clamp(24px, 2.5vw, 38px) auto 0;
  background: transparent;
}

body.yfg-shell .yfg-awards-carousel__viewport {
  position: relative;
  height: clamp(340px, 32vw, 500px);
  overflow: hidden;
  cursor: grab;
  touch-action: pan-y;
  perspective: 1700px;
  perspective-origin: 50% 44%;
  user-select: none;
  background: transparent;
}

/* Feather the last few pixels of card shadow into the section surface.
 * This avoids a visible horizontal cut where the 3D viewport clips. */
body.yfg-shell .yfg-awards-carousel__viewport::after {
  position: absolute;
  z-index: 6;
  right: 0;
  bottom: 0;
  left: 0;
  height: clamp(38px, 3.8vw, 54px);
  pointer-events: none;
  content: "";
  background: linear-gradient(
    to bottom,
    rgba(251, 251, 251, 0),
    var(--yfg-awards-surface) 88%
  );
}

body.yfg-shell .yfg-awards-carousel.is-dragging .yfg-awards-carousel__viewport {
  cursor: grabbing;
}

body.yfg-shell .yfg-awards-carousel__stage {
  position: absolute;
  inset: 0;
  background: transparent;
  transform-style: preserve-3d;
}

body.yfg-shell .yfg-award-card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(210px, 18vw, 300px);
  aspect-ratio: 0.82;
  overflow: hidden;
  border: 0;
  border-radius: clamp(12px, 1.1vw, 18px);
  background: #fff;
  box-shadow: 0 10px 24px rgba(6, 37, 72, 0.025), 0 2px 7px rgba(6, 37, 72, 0.018);
  transform-origin: 50% 50%;
  transition: box-shadow 320ms ease;
  will-change: transform, opacity;
  backface-visibility: hidden;
}

/* Keep depth on the selected award without multiplying a strong shadow across
 * every overlapping side card. */
body.yfg-shell .yfg-award-card[aria-hidden="false"] {
  box-shadow: 0 16px 36px rgba(6, 37, 72, 0.065), 0 3px 9px rgba(6, 37, 72, 0.03);
}

body.yfg-shell .yfg-award-card::after {
  content: none;
}

body.yfg-shell .yfg-award-card__media {
  display: grid;
  width: 100%;
  height: 100%;
  padding: clamp(16px, 1.5vw, 24px);
  place-items: center;
}

body.yfg-shell .yfg-award-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
  object-fit: contain;
  object-position: center;
  mix-blend-mode: normal;
  transform: translateZ(0);
}

/* The archive page ships an inline beige thumbnail plate and `cover` crop.
 * The normalized award masters already carry their own transparent safety
 * canvas, so show the complete object directly on the page surface. */
body.yfg-shell .yfg-aw-grid .yfg-aw-img {
  overflow: visible !important;
  background: transparent !important;
}

body.yfg-shell .yfg-aw-grid .yfg-aw-img img {
  object-fit: contain !important;
  object-position: center !important;
}

body.yfg-shell .yfg-aw-grid .yfg-aw-item:hover {
  background: transparent !important;
}

body.yfg-shell .yfg-modal-img {
  background: transparent !important;
  object-fit: contain !important;
}

body.yfg-shell .yfg-award-card__number,
body.yfg-shell .yfg-award-card__body,
body.yfg-shell .yfg-awards-carousel__arrow,
body.yfg-shell .yfg-awards-carousel__progress,
body.yfg-shell .yfg-awards-carousel__hint {
  display: none;
}

body.yfg-shell .yfg-awards-carousel__veil {
  position: absolute;
  z-index: 5;
  top: 0;
  bottom: 0;
  width: min(9vw, 120px);
  pointer-events: none;
}

body.yfg-shell .yfg-awards-carousel__veil--left {
  left: 0;
  background: linear-gradient(90deg, #fbfbfb, rgba(251, 251, 251, 0.8) 42%, transparent);
}

body.yfg-shell .yfg-awards-carousel__veil--right {
  right: 0;
  background: linear-gradient(270deg, #fbfbfb, rgba(251, 251, 251, 0.8) 42%, transparent);
}

body.yfg-shell .yfg-awards-carousel__controls {
  position: relative;
  z-index: 7;
  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 30px;
  margin: clamp(2px, 0.5vw, 8px) auto 0;
}

body.yfg-shell .yfg-awards-carousel__dots {
  display: flex;
  align-items: center;
  min-height: 24px;
  gap: 5px;
}

body.yfg-shell .yfg-awards-carousel__dot {
  position: relative;
  width: 3px;
  height: 3px;
  padding: 0;
  cursor: pointer;
  border: 0;
  border-radius: 999px;
  background: rgba(6, 37, 72, 0.24);
  transition: width 260ms ease, background 260ms ease;
}

body.yfg-shell .yfg-awards-carousel__dot::before {
  position: absolute;
  inset: -7px;
  content: "";
}

body.yfg-shell .yfg-awards-carousel__dot.is-active {
  width: 18px;
  background: var(--yfg-awards-gold);
}

body.yfg-shell .yfg-award-story {
  position: relative;
  z-index: 7;
  display: grid;
  grid-template-columns: minmax(250px, 0.72fr) minmax(420px, 1.28fr);
  width: min(100%, 1120px);
  margin: clamp(26px, 2.5vw, 38px) auto 0;
  column-gap: clamp(42px, 5vw, 76px);
}

body.yfg-shell .yfg-award-story__identity,
body.yfg-shell .yfg-award-story__copy {
  min-width: 0;
  padding-top: 0;
}

body.yfg-shell .yfg-award-story__identity {
  padding-right: 0;
}

body.yfg-shell .yfg-award-story__copy {
  display: flex;
  align-items: flex-start;
  min-height: 120px;
  padding-left: 0;
}

body.yfg-shell .yfg-award-story__eyebrow {
  margin: 0 0 14px;
  color: var(--yfg-awards-gold-light);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.24em;
}

body.yfg-shell .yfg-award-story__title {
  display: -webkit-box;
  min-height: 2.5em;
  overflow: hidden;
  margin: 0;
  color: var(--yfg-awards-navy) !important;
  font-family: var(--yfg-service-serif, "Libre Baskerville", "Songti TC", serif) !important;
  font-size: clamp(25px, 2.25vw, 35px) !important;
  font-weight: 400 !important;
  letter-spacing: 0.035em !important;
  line-height: 1.25 !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

body.yfg-shell .yfg-award-story__meta {
  margin: 12px 0 0;
  color: var(--yfg-awards-gold-light);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
}

body.yfg-shell .yfg-award-story__copy p {
  display: block;
  min-height: 0;
  overflow: visible;
  max-width: 620px;
  margin: 0;
  color: rgba(6, 37, 72, 0.66);
  font-size: clamp(13px, 1.05vw, 16px);
  letter-spacing: 0.04em;
  line-height: 1.9;
  -webkit-line-clamp: unset;
}

body.yfg-shell .yfg-awards-showcase__cta {
  position: relative;
  z-index: 7;
  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 48px;
  margin: clamp(28px, 3vw, 42px) auto 0;
  padding: 0 30px;
  overflow: hidden;
  color: var(--yfg-awards-gold-light) !important;
  border: 1px solid rgba(199, 167, 127, 0.76);
  font-family: var(--yfg-service-sans, "Inter", sans-serif) !important;
  font-size: clamp(13px, 1vw, 15px);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-decoration: none !important;
  isolation: isolate;
  transition: color 260ms ease, border-color 260ms ease, transform 260ms ease;
}

body.yfg-shell .yfg-awards-showcase__cta::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  transform: scaleX(0);
  transform-origin: left center;
  background: var(--yfg-awards-gold);
  transition: transform 320ms ease;
}

body.yfg-shell .yfg-awards-showcase__cta:hover,
body.yfg-shell .yfg-awards-showcase__cta:focus-visible {
  color: #fff !important;
  border-color: var(--yfg-awards-gold);
  outline: none;
  transform: translateY(-1px);
}

body.yfg-shell .yfg-awards-showcase__cta:hover::after,
body.yfg-shell .yfg-awards-showcase__cta:focus-visible::after {
  transform: scaleX(1);
}

body.yfg-shell .yfg-awards-showcase__cta:focus-visible {
  outline: 1px solid rgba(6, 37, 72, 0.54);
  outline-offset: 4px;
}

@media (max-width: 720px) {
  body.yfg-shell .bde-section-24-387.yfg-awards-showcase {
    padding: 20px 0 64px;
  }

  body.yfg-shell .yfg-awards-showcase::before {
    display: none;
    content: none;
  }

  body.yfg-shell .yfg-awards-showcase__heading {
    width: calc(100% - 40px);
  }

  body.yfg-shell .yfg-awards-carousel {
    width: 100%;
    margin-top: 10px;
  }

  body.yfg-shell .yfg-awards-carousel__viewport {
    width: 100%;
    height: min(61svh, 535px);
    min-height: 460px;
    overflow: visible;
    cursor: grab;
    perspective: none;
  }

  body.yfg-shell .yfg-awards-carousel__viewport::after {
    content: none;
  }

  body.yfg-shell .yfg-award-card {
    display: grid;
    grid-template-rows: minmax(0, 74fr) minmax(128px, 26fr);
    width: min(82vw, 338px);
    height: calc(100% - 18px);
    max-height: 525px;
    aspect-ratio: auto;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 4px 14px rgba(3, 28, 50, 0.025);
    transform-origin: 50% 92%;
  }

  body.yfg-shell .yfg-award-card[aria-hidden="false"] {
    box-shadow: 0 9px 26px rgba(3, 28, 50, 0.055), 0 1px 5px rgba(3, 28, 50, 0.025);
  }

  body.yfg-shell .yfg-award-card__media {
    position: relative;
    display: grid;
    width: 100%;
    height: auto;
    min-height: 0;
    padding: 0;
    overflow: hidden;
    background: #fff;
    place-items: center;
  }

  body.yfg-shell .yfg-award-card__media img {
    display: block;
    width: calc(100% - 32px);
    height: calc(100% - 30px);
    max-width: calc(100% - 32px);
    max-height: calc(100% - 30px);
    padding: 0;
    object-fit: contain;
    object-position: 50% 50%;
    mix-blend-mode: normal;
  }

  body.yfg-shell .yfg-award-card__number {
    position: absolute;
    z-index: 2;
    top: 14px;
    right: 15px;
    display: grid;
    width: 29px;
    height: 29px;
    color: rgba(6, 37, 72, 0.62);
    border: 1px solid rgba(6, 37, 72, 0.16);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    font-family: var(--yfg-service-serif, "Libre Baskerville", serif);
    font-size: 10px;
    font-weight: 600;
    line-height: 1;
    place-items: center;
  }

  body.yfg-shell .yfg-award-card__body {
    position: relative;
    display: flex;
    min-height: 0;
    padding: 13px 18px 12px;
    overflow: hidden;
    color: var(--yfg-awards-navy);
    border-top: 1px solid rgba(6, 37, 72, 0.08);
    background: #fff;
    text-align: center;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  body.yfg-shell .yfg-award-card__meta {
    max-width: 100%;
    margin: 0;
    overflow: hidden;
    color: var(--yfg-awards-gold);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.13em;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.yfg-shell .yfg-award-card__meta i::before {
    margin: 0 7px;
    content: "·";
    font-style: normal;
  }

  body.yfg-shell .yfg-award-card__body h3 {
    display: -webkit-box;
    max-width: 100%;
    margin: 5px 0 0;
    overflow: hidden;
    color: var(--yfg-awards-navy) !important;
    font-family: var(--yfg-service-serif, "Libre Baskerville", "Songti SC", "Songti TC", serif) !important;
    font-size: clamp(19px, 5.5vw, 26px) !important;
    font-weight: 500 !important;
    letter-spacing: 0.01em !important;
    line-height: 1.04 !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  body.yfg-shell .yfg-award-card__summary {
    display: -webkit-box;
    width: 94%;
    margin: 6px 0 0;
    overflow: hidden;
    color: rgba(6, 37, 72, 0.62);
    font-size: 11px;
    letter-spacing: 0.02em;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  body.yfg-shell .yfg-awards-carousel__veil,
  body.yfg-shell .yfg-awards-carousel__dots,
  body.yfg-shell .yfg-award-story {
    display: none;
  }

  body.yfg-shell .yfg-awards-carousel__controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: min(76vw, 292px);
    min-height: 18px;
    margin-top: 20px;
    gap: 0;
  }

  body.yfg-shell .yfg-awards-carousel__arrow {
    display: none;
  }

  body.yfg-shell .yfg-awards-carousel__progress {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    color: var(--yfg-awards-navy);
    font-family: var(--yfg-service-serif, "Libre Baskerville", serif);
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    align-items: center;
  }

  body.yfg-shell .yfg-awards-carousel__progress strong,
  body.yfg-shell .yfg-awards-carousel__progress em {
    display: none;
  }

  body.yfg-shell .yfg-awards-carousel__progress span {
    height: 1px;
    background: rgba(6, 37, 72, 0.16);
  }

  body.yfg-shell .yfg-awards-carousel__progress i {
    display: block;
    width: calc(100% / 28);
    height: 2px;
    background: var(--yfg-awards-gold);
    transition: width 420ms ease;
  }

  body.yfg-shell .yfg-awards-carousel__progress em {
    color: rgba(6, 37, 72, 0.45);
    font-style: normal;
  }

  body.yfg-shell .yfg-awards-carousel__hint {
    display: none;
  }

  body.yfg-shell .yfg-awards-showcase__cta {
    min-height: 34px;
    margin-top: 15px;
    padding: 0 18px;
    font-size: 12px;
  }
}

@media (max-width: 720px) and (max-height: 730px) {
  body.yfg-shell .bde-section-24-387.yfg-awards-showcase {
    padding-top: 16px;
    padding-bottom: 54px;
  }

  body.yfg-shell .yfg-awards-carousel {
    margin-top: 8px;
  }

  body.yfg-shell .yfg-awards-carousel__viewport {
    height: min(59svh, 465px);
    min-height: 420px;
  }

  body.yfg-shell .yfg-award-card {
    grid-template-rows: minmax(0, 72fr) minmax(120px, 28fr);
  }

  body.yfg-shell .yfg-award-card__body {
    padding: 10px 15px;
  }

  body.yfg-shell .yfg-award-card__summary {
    margin-top: 5px;
    line-height: 1.4;
  }

  body.yfg-shell .yfg-awards-showcase__cta {
    margin-top: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.yfg-shell .yfg-awards-showcase *,
  body.yfg-shell .yfg-awards-showcase *::before,
  body.yfg-shell .yfg-awards-showcase *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
