/* Deal listings (/mna-list-sell) ------------------------------------------- */
/* Values mirror the live page's computed styles at 1440px. */

/* Hero --------------------------------------------------------------------- */
.deal-hero {
  padding: 60px 0;
  background-color: #161616;
  background-image:
    linear-gradient(176deg, rgb(0, 0, 0), rgba(0, 0, 0, 0.9) 23%, rgba(22, 22, 22, 0.5)),
    url('/assets/images/deal-list-hero.avif');
  background-size: auto, cover;
  background-position:
    0 0,
    0 0;
  overflow: hidden;
}

.deal-hero-content {
  margin: 0 0 24px;
}

.deal-headline {
  margin: 0 0 24px;
  font-family: var(--font-serif);
  font-size: var(--fs-hero);
  font-weight: 300;
  line-height: 1.2;
  color: #fff;
}

/* Live leaves this on a Latin-only stack, so Korean falls back to the
   browser serif — rendered here with the site serif for the same look.
   Live caps at 500px; 460px reproduces the same three-line break with
   NotoSerifCJKkr's slightly narrower glyphs. */
.deal-sub {
  max-width: 460px;
  margin: 0;
  font-family: var(--font-sans);
  word-break: keep-all;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.7px;
  color: #fff;
}

/* Hero stats */
.deal-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.deal-stats-two {
  grid-template-columns: repeat(2, 1fr);
}

.deal-stat {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 24px;
  background-color: rgba(22, 22, 22, 0.3);
}

.deal-stat-head {
  display: flex;
  align-items: center;
  gap: 6px;
}

.deal-stat-head img {
  width: 28px;
  height: 28px;
}

.deal-stat-label {
  margin: 0;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.3;
  color: #fff;
}

.deal-stat-note {
  font-size: 14px;
  color: #7e8181;
}

.deal-stat-value {
  display: flex;
  align-items: center;
  align-self: flex-end;
  gap: 8px;
  margin: 0;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.3;
  color: #fff;
}

.deal-stat-number {
  font-size: 44px;
  font-weight: 600;
  line-height: 1.3;
  color: #f2542d;
}

/* Hero notice row */
.deal-notice {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 16px 24px;
  background-color: rgba(22, 22, 22, 0.25);
}

.deal-notice img {
  width: 20px;
  height: 22px;
}

.deal-notice-text {
  margin: 0;
  font-size: 16px;
  line-height: 1.3;
  text-align: center;
  color: #c5c5c5;
}

/* List section ------------------------------------------------------------- */
.deal-list-section {
  background-color: #fafafa;
  padding: 60px 0;
}

/* Contact banner above the list */
.deal-banner {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  min-height: 260px;
  padding: 27px;
  background-color: #d4d4d4;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.8), rgba(22, 22, 22, 0.5)), url('/assets/images/deal-list-banner.avif');
  background-size: auto, cover;
  background-position:
    0 0,
    50% 50%;
}

.deal-banner-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
}

.deal-banner-copy {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 34px;
  font-weight: 300;
  line-height: 1.3;
  letter-spacing: -0.5px;
  color: #fff;
}

.deal-banner-em {
  color: #f2542d;
}

.deal-banner-logo {
  width: 180px;
  height: 30px;
}

.deal-banner-button {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  padding: 16px 24px;
  background-color: #fff;
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
  color: #161616;
  text-decoration: none;
}

.deal-banner-button:hover {
  background-color: #323232;
  color: #fff;
}

/* Deal cards --------------------------------------------------------------- */
.deal-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.deal-item {
  padding-top: 40px;
}

.deal-card {
  background-color: #fff;
  border: 1px solid #ebebeb;
  padding: 24px 32px;
  transition:
    transform 0.5s,
    border-color 0.3s;
}

.deal-card:hover {
  border-color: #c5c5c5;
  transform: translateY(-10px);
}

.deal-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.deal-card-project {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 2;
  color: #323232;
}

.deal-card-project-label {
  margin-right: 4px;
  color: #7e8181;
}

.deal-card-no {
  display: flex;
  margin: 0;
  padding: 0 8px;
  background-color: rgba(246, 65, 20, 0.07);
  font-size: 16px;
  font-weight: 600;
  line-height: 2;
  color: #161616;
}

.deal-card-no-label {
  margin-right: 4px;
}

.deal-card-no-value {
  font-weight: 700;
  color: #f2542d;
}

.deal-card-title {
  margin: 20px 0 10px;
  padding: 8px 0 24px;
  font-size: 30px;
  font-weight: 600;
  line-height: 1.2;
  color: #161616;
}

.deal-card-body {
  display: grid;
  grid-template-columns: minmax(0, 0.3fr) minmax(0, 1fr);
  gap: 24px;
}

.deal-card-media {
  position: relative;
}

.deal-card-media img {
  display: block;
  width: 100%;
  height: auto;
}

.deal-card-industry {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  margin: 0;
  padding: 8px 16px 6px;
  background-color: rgba(22, 22, 22, 0.8);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.3;
  color: #fff;
}

/* Label/value table: 4-column grid on desktop (two label/value pairs per
   row). No align-self override — the table stretches to the media column's
   height (152px image → two 76px rows) like the live grid. */
.deal-card-table {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr) max-content minmax(0, 1fr);
  align-items: stretch;
  margin: 0;
  border-top: 1px solid #ebebeb;
  border-left: 1px solid #ebebeb;
}

.deal-cell {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 12px 16px;
  border-right: 1px solid #ebebeb;
  border-bottom: 1px solid #ebebeb;
}

.deal-cell dt,
.deal-cell dd {
  margin: 0;
  font-size: 18px;
  line-height: 1.3;
}

.deal-cell-label {
  background-color: #fafafa;
}

.deal-cell-label dt {
  font-weight: 400;
  color: #7e8181;
}

.deal-cell-value {
  padding-right: 0;
  background-color: #fff;
}

.deal-cell-value dd {
  font-weight: 600;
  color: #161616;
}

/* Operating profit is hidden, so the products row is the table's last row and
   would otherwise leave the two right-hand columns empty on desktop. Span its
   value across the remaining columns so the grid reads cleanly. Harmless on the
   mobile 2-column grid (spans the single value column). */
.deal-card-table .deal-cell:last-child {
  grid-column: 2 / -1;
}

.deal-card-button {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 140px;
  margin: 24px auto 0;
  padding: 12px 20px;
  background-color: #161616;
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  color: #fafafa;
  text-decoration: none;
  transition:
    border-color 0.35s,
    background-color 0.35s,
    color 0.35s;
}

.deal-card-button:hover {
  background-color: #323232;
}

/* Buy cards ----------------------------------------------------------------- */
/* Live buy list: 40px above the first card, 24px between cards, no image
   column — three label/value rows (fixed 140px label, top/left border on the
   wrap closing the grid like the sell table). */
.deal-list-buy {
  margin-top: 40px;
}

.deal-list-buy .deal-item {
  padding-top: 0;
  margin-bottom: 24px;
}

.deal-list-buy .deal-item:last-child {
  margin-bottom: 0;
}

.deal-buy-table {
  margin: 0;
  border-top: 1px solid #ebebeb;
  border-left: 1px solid #ebebeb;
}

.deal-buy-row {
  display: flex;
}

.deal-buy-row .deal-cell-label {
  flex: 0 0 140px;
}

.deal-buy-row .deal-cell-value {
  flex: 1 1 auto;
  padding-right: 16px;
}

.deal-buy-row .deal-cell-value dd {
  font-weight: 600;
}

.deal-buy-chip {
  display: block;
  line-height: 1.3;
}

/* Pagination ---------------------------------------------------------------- */
.deal-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 40px 0;
}

.deal-page-num,
.deal-page-arrow {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 40px;
  height: 40px;
  padding: 0 6px;
  background-color: #fff;
  border: 1px solid #ebebeb;
  font-size: 14px;
  line-height: 1;
  color: #333;
  text-decoration: none;
  transition:
    border-color 0.2s,
    background-color 0.2s,
    color 0.2s;
}

.deal-page-num:hover,
.deal-page-arrow:hover {
  border-color: #161616;
}

.deal-page-num.is-current {
  background-color: #161616;
  border-color: #161616;
  color: #fff;
}

.deal-page-gap {
  display: inline-flex;
  align-items: center;
  padding: 0 2px;
  font-size: 14px;
  color: #7e8181;
}

/* Private deal banner -------------------------------------------------------- */
.private-deal-banner {
  position: relative;
  display: block;
  overflow: hidden;
  margin-top: 24px;
  background-color: #1a1a1a;
  text-decoration: none;
}

.private-deal-banner-bg {
  position: absolute;
  inset: 0;
}

.private-deal-banner-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.private-deal-banner-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 440px;
  margin: 32px 40px 32px auto;
  padding: 28px 32px;
  background-color: #fff;
}

.private-deal-banner-eyebrow {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 600;
  color: #f2542d;
}

.private-deal-banner-title {
  margin: 0 0 8px;
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
  color: rgba(21, 21, 21, 0.95);
}

.private-deal-banner-desc {
  margin: 0 0 16px;
  font-size: 16px;
  line-height: 1.6;
  color: rgba(21, 21, 21, 0.75);
}

.private-deal-banner-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 3px;
  border-bottom: 1px solid rgba(21, 21, 21, 0.95);
  font-size: 16px;
  font-weight: 600;
  color: rgba(21, 21, 21, 0.95);
}

/* Bottom CTA ----------------------------------------------------------------- */
.deal-cta {
  padding: 30px 0;
  background-color: #161616;
  background-image: linear-gradient(rgb(0, 0, 0), rgba(22, 22, 22, 0.6)), url('/assets/images/cta-banner-bg.avif');
  background-size: auto, cover;
  background-position:
    0 0,
    50% 50%;
}

.deal-cta-inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 0 45px;
  padding: 27px 36px;
}

.deal-cta-heading {
  margin: 0 0 12px;
  font-family: var(--font-serif);
  font-size: 44px;
  font-weight: 300;
  line-height: 1.3;
  color: #fff;
}

.deal-cta-sub {
  margin: 0 0 24px;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: -0.5px;
  text-align: center;
  color: #d4d4d4;
}

.deal-cta-button {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 16px;
  padding: 16px 24px;
  background-color: #f2542d;
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
  color: #fff;
  text-decoration: none;
}

.deal-cta-button:hover {
  background-color: #323232;
}

/* Responsive ----------------------------------------------------------------- */
@media (max-width: 991px) {
  .deal-sub {
    font-size: 18px;
  }
}

@media (max-width: 767px) {
  .deal-stats {
    grid-template-columns: 1fr;
  }

  .deal-stat {
    flex-direction: column;
    padding: 16px;
  }

  .deal-banner-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 10px;
  }

  .deal-banner-copy {
    font-size: 18px;
  }

  .deal-banner-logo {
    width: 96px;
    height: 16px;
  }

  .deal-banner {
    min-height: 200px;
    gap: 24px;
  }

  .deal-card-body {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .deal-card-table {
    grid-template-columns: 80px minmax(0, 1fr);
  }

  .deal-buy-row {
    flex-direction: column;
  }

  .deal-buy-row .deal-cell-label {
    flex: 0 0 auto;
  }

  .private-deal-banner-card {
    width: auto;
    margin: 24px 20px;
    padding: 24px;
  }

  .deal-cta-inner {
    margin: 0;
    padding: 27px 18px;
  }
}

@media (max-width: 479px) {
  .deal-headline {
    margin-bottom: 16px;
  }

  .deal-sub {
    font-size: 16px;
  }

  .deal-stat-number {
    font-size: 24px;
  }

  .deal-stat-value {
    font-size: 18px;
  }

  .deal-stat-label {
    font-size: 16px;
  }

  .deal-hero {
    padding: 40px 0;
  }

  .deal-card {
    padding: 20px 16px;
  }

  .deal-card-title {
    font-size: 22px;
    padding-bottom: 8px;
  }

  .deal-cell dt,
  .deal-cell dd {
    font-size: 16px;
  }

  .deal-cell {
    padding: 12px 8px;
  }

  .deal-cell-value {
    padding: 12px;
  }

  .private-deal-banner-title {
    font-size: 18px;
  }

  .deal-cta-heading {
    font-size: 24px;
  }

  .deal-cta-sub {
    font-size: 16px;
  }
}
