/* One hotel agreement, understood once. The three stories then explain what
   that same agreement could help an owner or revenue manager achieve. */

.hs-stories .ho-example {
  margin-top: 32px;
  padding: 29px 30px 25px;
  background: #faf7ee;
  border: 1px solid #bfc9b2;
}

.ho-example-heading > .eyebrow {
  margin-bottom: 8px;
  color: #687551;
  font-size: 10px;
  line-height: 1.6;
  letter-spacing: .1em;
}

.ho-example-heading > h3 {
  max-width: 780px;
  color: #2d4632;
  font-family: var(--serif, Georgia, serif);
  font-size: clamp(28px, 2.7vw, 36px);
  line-height: 1.13;
  font-weight: 500;
  letter-spacing: -.02em;
  text-wrap: balance;
}

.ho-equation {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 25px minmax(0, .7fr) 25px minmax(0, 1.15fr) 25px minmax(0, 1.35fr);
  align-items: center;
  gap: 13px;
  margin-top: 24px;
}

.ho-equation > div {
  min-width: 0;
  padding: 12px 0;
}

.ho-equation > div > strong {
  display: block;
  color: #2c4630;
  font-family: var(--sans, Arial, sans-serif);
  font-size: clamp(32px, 3.2vw, 43px);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -.045em;
  font-variant-numeric: lining-nums tabular-nums;
}

.ho-equation > div > span {
  display: block;
  margin-top: 8px;
  color: #526445;
  font-size: 13px;
  line-height: 1.55;
}

.ho-equation > div > small {
  display: block;
  margin-top: 4px;
  color: #738065;
  font-size: 11px;
  line-height: 1.65;
}

.ho-times,
.ho-equals {
  display: block;
  color: #8c774e;
  font-family: var(--serif, Georgia, serif);
  font-size: 29px;
  font-weight: 400;
  line-height: 1;
  text-align: center;
}

.ho-equation > .ho-equation-result {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 19px 21px;
  background: #304b36;
}

.ho-equation > .ho-equation-result > strong {
  color: #fff7df;
  white-space: nowrap;
}

.ho-equation > .ho-equation-result > span {
  color: #e2e9d5;
}

.ho-assumptions {
  max-width: 1040px;
  margin-top: 18px;
  padding-top: 17px;
  border-top: 1px solid #d6dccb;
  color: #657258;
  font-size: 12px;
  line-height: 1.8;
}

/* The illustration and the outcome read as one short hotel story. */
.hs-stories .hs-tabs {
  margin-top: 30px;
}

.hs-stories .hs-tab {
  min-height: 109px;
  padding: 21px 22px;
}

.hs-stories .hs-tab > strong {
  font-size: clamp(23px, 2.1vw, 29px);
}

.hs-stories .hs-tab > small {
  font-size: 11px;
  line-height: 1.6;
}

.hs-stories .hs-panel {
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  align-items: center;
  gap: 34px;
  padding: 30px;
  background: #fbf7ef;
}

.hs-stories .hs-story-art {
  position: static;
  top: auto;
  align-self: center;
  margin: 0;
  width: 100%;
  aspect-ratio: 3 / 2;
  max-height: none;
  border: 0;
  background: #fbf7ef;
}

.hs-stories .hs-story-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hs-stories .hs-story-copy {
  min-width: 0;
  padding: 5px 0;
}

.hs-stories .hs-story-copy > .eyebrow {
  margin-bottom: 13px;
  font-size: 10px;
  line-height: 1.65;
  letter-spacing: .08em;
}

.hs-stories .hs-story-copy > h3 {
  max-width: 560px;
  color: #2c4630;
  font-size: clamp(33px, 3.2vw, 43px);
  line-height: 1.1;
  letter-spacing: -.025em;
  text-wrap: balance;
}

.hs-stories .hs-story-premise {
  margin-top: 18px;
  color: #56674c;
  font-size: 15px;
  line-height: 1.85;
}

.ho-benefit {
  margin-top: 22px;
  padding-top: 19px;
  border-top: 1px solid #d0d8c3;
}

.ho-benefit > span {
  display: block;
  color: #7b724e;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.ho-benefit > p {
  margin-top: 7px;
  color: #344f36;
  font-size: 16px;
  line-height: 1.75;
}

.hs-stories .hs-fit {
  margin-top: 17px;
  color: #67785b;
  font-size: 12px;
  line-height: 1.8;
}

.hs-stories .hs-story-actions {
  margin-top: 19px;
  gap: 9px 22px;
}

.hs-stories .hs-story-actions > a,
.hs-stories .hs-story-actions > button {
  min-height: 44px;
  font-size: 12px;
}

.hs-stories .hs-stories-note {
  max-width: 1000px;
  color: #65745a;
  font-size: 12px;
  line-height: 1.8;
}

/* Sparse line drawings keep the same unframed paper as the explainer film. */
.hs-illustration,
.hs-mission-visual img {
  border: 0;
  background: #fbf7ef;
}

@media (max-width: 1100px) {
  .hs-stories .ho-example {
    padding: 26px 25px 23px;
  }
  .ho-equation {
    grid-template-columns: minmax(0, 1fr) 20px minmax(0, .65fr) 20px minmax(0, 1.15fr) 20px minmax(0, 1.3fr);
    gap: 9px;
  }
  .ho-equation > div > strong { font-size: 36px; }
  .ho-equation > .ho-equation-result { padding: 17px 15px; }
  .ho-equation > div > span { font-size: 12px; }
  .hs-stories .hs-panel { gap: 27px; padding: 27px; }
  .hs-stories .hs-tab { padding: 20px 18px; }
  .hs-stories .hs-story-copy > h3 { font-size: 36px; }
}

@media (max-width: 859px) {
  .hs-stories .hs-panel {
    grid-template-columns: 1fr;
    gap: 17px;
    padding: 28px;
  }
  .hs-stories .hs-story-art {
    justify-self: center;
    max-width: 610px;
  }
  .hs-stories .hs-story-copy { padding: 0 0 2px; }
  .hs-stories .hs-story-copy > h3 { max-width: 660px; font-size: 40px; }
  .hs-stories .hs-story-premise { max-width: 660px; }
  .hs-stories .hs-tab { padding: 18px 15px; min-height: 115px; }
  .hs-stories .hs-tab > strong { font-size: 25px; }
  .ho-equation {
    grid-template-columns: minmax(0, 1fr) 19px minmax(0, .6fr) 19px minmax(0, 1.15fr) 19px minmax(0, 1.4fr);
    gap: 7px;
  }
  .ho-equation > div > strong { font-size: 31px; }
  .ho-equation > .ho-equation-result { padding: 17px 12px; }
  .ho-times, .ho-equals { font-size: 25px; }
}

/* On a phone, keep the multiplication signs and the reading order rather than
   turning the same agreement into four apparently unrelated statistics. */
@media (max-width: 640px) {
  .hs-stories .ho-example {
    margin-top: 25px;
    padding: 23px 20px 21px;
  }
  .ho-example-heading > .eyebrow { font-size: 9px; }
  .ho-example-heading > h3 { font-size: 29px; line-height: 1.15; }
  .ho-equation {
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 3px 9px;
    margin-top: 22px;
  }
  .ho-equation > div {
    grid-column: 2;
    display: grid;
    grid-template-columns: 100px minmax(0, 1fr);
    align-items: center;
    gap: 3px 10px;
    padding: 8px 0;
  }
  .ho-equation > div:nth-child(1) { grid-row: 1; }
  .ho-equation > div:nth-child(3) { grid-row: 2; }
  .ho-equation > div:nth-child(5) { grid-row: 3; }
  .ho-equation > div > strong {
    grid-column: 1;
    grid-row: 1 / 3;
    font-size: 37px;
    line-height: 1.15;
  }
  .ho-equation > div > span {
    grid-column: 2;
    margin-top: 0;
    font-size: 13px;
    line-height: 1.6;
  }
  .ho-equation > div > small {
    grid-column: 2;
    margin-top: 0;
    font-size: 11px;
  }
  .ho-equation > div:not(:first-child) > span { grid-row: 1 / 3; }
  .ho-times,
  .ho-equals {
    grid-column: 1;
    width: 20px;
    padding: 0;
    font-size: 23px;
    line-height: 1;
    text-align: center;
  }
  .ho-times:nth-child(2) { grid-row: 2; }
  .ho-times:nth-child(4) { grid-row: 3; }
  .ho-equals { grid-row: 4; }
  .ho-equation > .ho-equation-result {
    grid-column: 2;
    grid-row: 4;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 8px 10px;
    margin-top: 6px;
    padding: 19px 16px;
  }
  .ho-equation > .ho-equation-result > strong { font-size: clamp(30px, 8vw, 38px); }
  .ho-equation > .ho-equation-result > span { font-size: 13px; }
  .ho-assumptions {
    margin-top: 18px;
    padding-top: 16px;
    font-size: 11px;
    line-height: 1.8;
  }
  .hs-stories .hs-tabs { margin-top: 25px; }
  .hs-stories .hs-tab { min-height: 84px; padding: 17px 19px; }
  .hs-stories .hs-tab > strong { font-size: 26px; }
  .hs-stories .hs-tab > small { font-size: 11px; }
  .hs-stories .hs-panel { padding: 21px 19px 23px; gap: 19px; }
  .hs-stories .hs-story-copy > .eyebrow { margin-bottom: 12px; font-size: 9px; }
  .hs-stories .hs-story-copy > h3 { font-size: 35px; line-height: 1.1; }
  .hs-stories .hs-story-premise { margin-top: 16px; font-size: 14px; line-height: 1.85; }
  .ho-benefit { margin-top: 20px; padding-top: 17px; }
  .ho-benefit > p { font-size: 15px; line-height: 1.8; }
  .hs-stories .hs-fit { margin-top: 17px; font-size: 12px; }
  .hs-stories .hs-story-actions { gap: 8px 21px; margin-top: 17px; }
  .hs-stories .hs-stories-note { font-size: 11px; }
}

@media (max-width: 380px) {
  .hs-stories .ho-example { padding-left: 17px; padding-right: 17px; }
  .ho-equation > div { grid-template-columns: 91px minmax(0, 1fr); gap: 3px 9px; }
  .ho-equation > div > strong { font-size: 35px; }
  .ho-equation > .ho-equation-result {
    grid-template-columns: 1fr;
    gap: 4px;
    padding-left: 13px;
    padding-right: 13px;
  }
  .ho-equation > .ho-equation-result > strong { grid-row: auto; font-size: 32px; }
  .ho-equation > .ho-equation-result > span { grid-column: 1; grid-row: auto; font-size: 12px; }
  .hs-stories .hs-story-copy > h3 { font-size: 32px; }
}

/* Keep the result amount and its meaning on separate lines at phone widths. */
@media (max-width: 640px) {
  .ho-equation > div.ho-equation-result { grid-template-columns: 1fr; gap: 5px; }
  .ho-equation > div.ho-equation-result > strong { grid-column: 1; grid-row: 1; font-size: 34px; }
  .ho-equation > div.ho-equation-result > span { grid-column: 1; grid-row: 2; }
}
