
/* =========================================================
   11. NOTE BANNER — UNIVERSAL RESPONSIVE STYLES
   ========================================================= */

/* LM NOTE BANNER — BASE */

.lm-note-banner {
  padding: 20px 0;
}

.lm-note-banner__panel {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 54px 38px 34px;
  background: linear-gradient(
    135deg,
    rgba(138, 124, 105, 0.18) 0%,
    rgba(246, 234, 218, 0.82) 50%,
    rgba(138, 124, 105, 0.14) 100%
  );
  border: 1px solid rgba(25, 24, 24, 0.05);
  border-radius: 18px;
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.08),
    0 2px 8px rgba(0, 0, 0, 0.05);
}

/* LM NOTE BANNER — LABEL */

.lm-note-banner__label {
  position: absolute;
  top: -24px;
  left: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  max-width: calc(100% - 56px);
  padding: 0 24px;
  color: #f6efe3;
  font-size: 15px;
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-align: center;
  text-transform: uppercase;
  background: #050505;
  border-radius: 10px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

/* LM NOTE BANNER — DESKTOP CONTENT LAYOUT */

.lm-note-banner__content {
  display: grid;
  grid-template-columns: auto 1px minmax(0, 1fr);
  align-items: center;
  column-gap: 28px;
  row-gap: 16px;
  min-width: 0;
}

.lm-note-banner__divider {
  grid-column: 2;
  width: 1px;
  min-width: 1px;
  align-self: stretch;
  background: rgba(25, 24, 24, 0.42);
}

/* LM NOTE BANNER — STATISTIC / PHRASE */

.lm-note-banner__stat {
  display: flex;
  grid-column: 1;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: max-content;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  color: #191918;
  font-family: "Cormorant Garamond", serif;
  font-size: 70px;
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: -0.03em;
  text-align: center;
  white-space: nowrap;
}

.lm-note-banner__stat > span {
  display: block;
  min-width: 0;
  max-width: 100%;
  font-size: inherit;
  line-height: inherit;
}

/* LM NOTE BANNER — STAT MODIFIERS */

.lm-note-banner__stat--long,
.lm-note-banner__stat--small {
  flex-direction: column;
  text-align: center;
}

.lm-note-banner__stat--long {
  font-size: 48px;
  line-height: 1;
  white-space: normal;
}

.lm-note-banner__stat--long span {
  display: block;
}

.lm-note-banner__stat--small {
  gap: 12px;
}

.lm-note-banner__stat--compact {
  font-size: 60px;
}

.lm-note-banner__stat--medium {
  font-size: 56px;
}

.lm-note-banner__stat--center {
  letter-spacing: normal;
}

/* LM NOTE BANNER — VALUE AND PERCENT */

.lm-note-banner__value,
.lm-note-banner__percent {
  font-family: "Cormorant Garamond", serif;
  color: #181512;
}

.lm-note-banner__value {
  font-size: 72px;
  line-height: 0.88;
}

.lm-note-banner__percent {
  font-size: 70px;
  line-height: 0.9;
}

.lm-note-banner__years {
  display: inline;
}

/* LM NOTE BANNER — STAT SUBTITLES */

.lm-note-banner__stat .lm-note-banner__subtitle {
  display: block;
  max-width: 100%;
  margin: 0 auto;
  color: #66615c;
  font-family: "Cormorant Garamond", serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.02em;
  text-align: center;
  white-space: normal;
}

.lm-note-banner__stat .lm-note-banner__subtitle--short {
  font-size: 28px;
  font-weight: 500;
  letter-spacing: normal;
  color: #77716a;
}

.lm-note-banner__stat .lm-note-banner__subtitle--long {
  font-size: 20px;
  letter-spacing: normal;
  color: #77716a;
}

.lm-note-banner__subtitle--wrap {
  white-space: normal;
  overflow-wrap: break-word;
}

/* LM NOTE BANNER — INTRO AND DESCRIPTION */

.lm-note-banner__intro {
  display: none;
  grid-column: 3;
  min-width: 0;
  overflow-wrap: break-word;
}

.lm-note-banner__intro span {
  display: block;
}

.lm-note-banner__text {
  grid-column: 3;
  min-width: 0;
  max-width: 760px;
  margin: 0;
  color: rgba(25, 24, 24, 0.72);
  font-size: 18px;
  line-height: 1.8;
}

.lm-note-banner__text strong {
  font-weight: 800;
}

/* LM NOTE BANNER — LONG CONTENT / FULL-WIDTH LAYOUT */

/* Use for exceptionally long phrases that should not be
   compressed into a narrow left column. */

.lm-note-banner--full-width .lm-note-banner__content {
  grid-template-columns: minmax(0, 1fr);
  row-gap: 20px;
}

.lm-note-banner--full-width .lm-note-banner__stat {
  grid-column: 1;
  width: 100%;
  white-space: normal;
  overflow-wrap: break-word;
}

.lm-note-banner--full-width .lm-note-banner__divider {
  display: none;
}

.lm-note-banner--full-width .lm-note-banner__text {
  grid-column: 1;
  max-width: none;
}

.lm-note-banner--full-width .lm-note-banner__intro {
  grid-column: 1;
}

/* LM NOTE BANNER — SPACED CONTENT */

.lm-note-banner__content--spaced {
  column-gap: 28px;
  row-gap: 20px;
}

.lm-note-banner__content--spaced > .lm-note-banner__divider {
  min-height: 150px;
  background: #e6d7c3;
}

.lm-note-banner__content--spaced .lm-note-banner__text {
  line-height: 1.7;
}

/* LM NOTE BANNER — MULTIPLE STATISTICS */

.lm-note-banner__stats {
  display: flex;
  grid-column: 1;
  flex-direction: column;
  align-items: center;
  gap: 26px;
  min-width: 0;
  text-align: center;
}

.lm-note-banner__stats .lm-note-banner__stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: auto;
  min-width: 0;
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: normal;
  white-space: normal;
}

.lm-note-banner__stats .lm-note-banner__stat strong {
  font-size: 30px;
  font-weight: 800;
  line-height: 1.2;
  color: #191818;
}

.lm-note-banner__stats .lm-note-banner__stat span {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: #615c55;
}

.lm-note-banner__stats .lm-stat-mobile {
  display: none;
}

/* LM NOTE BANNER — TABLET 900px */

@media (max-width: 900px) {
  .lm-note-banner__panel {
    padding: 56px 24px 28px;
  }

  .lm-note-banner__stat {
    font-size: 64px;
  }

  .lm-note-banner__stat--long {
    font-size: 42px;
  }

  .lm-note-banner__text {
    font-size: 16px;
    line-height: 1.65;
  }
}

/* LM NOTE BANNER — MOBILE 600px */

@media (max-width: 600px) {
  .lm-note-banner {
    padding: 16px 0;
  }

  .lm-note-banner__panel {
    padding: 48px 28px 24px;
    border-radius: 16px;
  }

  .lm-note-banner__label {
    top: -14px;
    left: 12px;
    width: 200px;
    max-width: calc(100% - 24px);
    min-height: 40px;
    padding: 6px 12px;
    font-size: 11px;
    line-height: 1.2;
    letter-spacing: 0.01em;
    border-radius: 8px;
  }

  /* Mobile: balanced columns with full-width description */

  .lm-note-banner__content {
    grid-template-columns:
      minmax(0, 1fr)
      1px
      minmax(0, 1fr);
    column-gap: clamp(10px, 3vw, 18px);
    row-gap: 16px;
  }

  .lm-note-banner__stat {
    grid-column: 1;
    grid-row: 1;
    justify-self: stretch;
    width: 100%;
    max-width: 100%;
    gap: 4px;
    font-size: clamp(28px, 10vw, 60px);
    line-height: 0.95;
    letter-spacing: -0.04em;
    text-align: center;
  }

  .lm-note-banner__stat > span {
    max-width: 100%;
  }

  .lm-note-banner__divider {
    grid-column: 2;
    grid-row: 1;
    height: 100%;
    margin: 0;
  }

  .lm-note-banner .divider__hidden {
    display: none;
  }

  .lm-note-banner__intro {
    display: block;
    grid-column: 3;
    grid-row: 1;
    min-width: 0;
    color: #111;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.02em;
    text-transform: uppercase;
  }

  .lm-note-banner__intro span {
    font-size: 14px;
  }

  .lm-note-banner__text {
    grid-column: 1 / -1;
    grid-row: 2;
    max-width: none;
    font-size: 15px;
    line-height: 1.8;
  }

  /* Mobile: no intro means no visible divider */

  .lm-note-banner__content:not(:has(> .lm-note-banner__intro))
  > .lm-note-banner__divider {
    display: none;
  }

  .lm-note-banner__content:not(:has(> .lm-note-banner__intro))
  > .lm-note-banner__stat {
    grid-column: 1 / -1;
    width: 100%;
    white-space: normal;
  }

  .lm-note-banner__content:not(:has(> .lm-note-banner__intro))
  > .lm-note-banner__text {
    grid-row: 2;
  }

  /* Mobile stat variants */

  .lm-note-banner__stat--long {
    flex-direction: column;
    font-size: clamp(24px, 8vw, 42px);
    line-height: 1;
    white-space: normal;
  }

  .lm-note-banner__stat--compact {
    font-size: clamp(26px, 9vw, 50px);
  }

  .lm-note-banner__stat--medium {
    font-size: clamp(26px, 9vw, 46px);
  }

  .lm-note-banner__stat--small {
    font-size: clamp(24px, 8vw, 38px);
  }

  .lm-note-banner__stat--center {
    font-size: clamp(32px, 11vw, 70px);
    letter-spacing: normal;
  }

  .lm-note-banner__value {
    font-size: clamp(28px, 10vw, 60px);
    text-align: center;
  }

  .lm-note-banner__percent {
    font-size: clamp(28px, 10vw, 58px);
  }

  .lm-note-banner__years,
  .lm-note-banner__stat br {
    display: none;
  }

  .lm-note-banner__stat .lm-note-banner__subtitle {
    max-width: 150px;
    line-height: 1.12;
  }

  .lm-note-banner__stat .lm-note-banner__subtitle--short {
    font-size: 20px;
  }

  .lm-note-banner__stat .lm-note-banner__subtitle--long {
    font-size: 16px;
  }

  /* Mobile percentage variant */

  .lm-note-banner--percentage .lm-note-banner__stat {
    letter-spacing: -0.04em;
  }

  .lm-note-banner--percentage .lm-note-banner__intro {
    padding-left: 8px;
  }

  /* Mobile multiple statistics */

  .lm-note-banner__content--spaced {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .lm-note-banner__stats {
    display: grid;
    grid-column: 1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
    gap: 0;
    width: 100%;
  }

  .lm-note-banner__stats .lm-note-banner__stat {
    grid-column: auto;
    grid-row: auto;
    position: static;
    flex-direction: column;
    width: auto;
    min-width: 0;
    margin: 0;
    padding: 0 8px;
    transform: none;
    white-space: normal;
  }

  .lm-note-banner__stats .lm-note-banner__stat:first-child {
    border-right: 1px solid #e6d7c3;
  }

  .lm-note-banner__stats .lm-note-banner__stat strong {
    font-size: clamp(24px, 6vw, 34px);
    line-height: 1.1;
    white-space: nowrap;
  }

  .lm-note-banner__stats .lm-note-banner__stat span {
    font-family: "Nunito", sans-serif;
    font-size: 13px;
    line-height: 1.4;
    letter-spacing: normal;
    white-space: normal;
  }

  .lm-note-banner__stats .lm-stat-desktop {
    display: none;
  }

  .lm-note-banner__stats .lm-stat-mobile {
    display: block;
  }

  .lm-note-banner__content--spaced > .lm-note-banner__divider {
    display: none;
  }

  .lm-note-banner__content--spaced > .lm-note-banner__text,
  .lm-note-banner__content--spaced > .lm-note-banner__intro {
    grid-column: 1;
    grid-row: auto;
  }

  /* Mobile full-width variant */

  .lm-note-banner--full-width .lm-note-banner__content {
    grid-template-columns: minmax(0, 1fr);
  }

  .lm-note-banner--full-width .lm-note-banner__stat,
  .lm-note-banner--full-width .lm-note-banner__text,
  .lm-note-banner--full-width .lm-note-banner__intro {
    grid-column: 1;
  }

  .lm-note-banner--full-width .lm-note-banner__divider {
    display: none;
  }
}

/* LM NOTE BANNER — MOBILE 530px */

@media (max-width: 530px) {
  .lm-note-banner--two-row .lm-note-banner__content {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 20px;
    row-gap: 24px;
  }

  .lm-note-banner--two-row .lm-note-banner__stat {
    grid-column: 1;
  }

  .lm-note-banner--two-row .lm-note-banner__intro {
    grid-column: 2;
  }

  .lm-note-banner--two-row .lm-note-banner__divider {
    display: none;
  }

  .lm-note-banner--two-row .lm-note-banner__text {
    grid-column: 1 / -1;
  }
}

/* LM NOTE BANNER — MOBILE 480px */

@media (max-width: 480px) {
  .lm-note-banner__panel {
    padding: 48px 24px 20px;
  }

  .lm-note-banner__label {
    left: 50%;
    width: 250px;
    transform: translateX(-50%);
  }

  .lm-note-banner__stat .lm-note-banner__subtitle {
    max-width: 150px;
  }

  .lm-note-banner__stat .lm-note-banner__subtitle--long {
    font-size: 15px;
  }

  .lm-note-banner__subtitle--wrap {
    display: block;
    max-width: 160px;
    margin-inline: auto;
    white-space: normal;
    text-align: center;
    line-height: 1.3;
  }
}

/* LM NOTE BANNER — MOBILE 380px */

@media (max-width: 380px) {
  .lm-note-banner__panel {
    padding-inline: 18px;
  }

  .lm-note-banner__content {
    column-gap: 10px;
  }

  .lm-note-banner__intro span {
    font-size: 13px;
  }

  .lm-note-banner__stat .lm-note-banner__subtitle {
    max-width: 130px;
  }

  .lm-note-banner__stat .lm-note-banner__subtitle--short,
  .lm-note-banner__stat .lm-note-banner__subtitle--long {
    font-size: 14px;
  }
}
