@import url("redesign-guide.css");

/* How to Rent redesign: page-specific rules transferred from the approved prototype. */
.how-to-rent-redesign .how-to-rent {
  --navy: #102942;
  --navy-soft: #173b5b;
  --blue: #30619f;
  --body: #445569;
  --mist: #eef3f6;
  --mist-deep: #e5ecef;
  --warm: #b98a45;
  --warm-dark: #806037;
  --warm-soft: #e6d6bc;
  --line: #dce3e8;
  --line-dark: #c6d1d8;
  --white: #fff;
  --serif: Charter, "Bitstream Charter", "Sitka Text", Cambria, Georgia, serif;
  --sans: "Avenir Next", Avenir, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --shell: 1480px;
  --gutter: clamp(1.25rem, 4.4vw, 4rem);
}

.how-to-rent-redesign .how-to-rent,
.how-to-rent-redesign .how-to-rent *,
.how-to-rent-redesign .how-to-rent *::before,
.how-to-rent-redesign .how-to-rent *::after {
  box-sizing: border-box;
}

.how-to-rent-redesign .how-to-rent {
  scroll-behavior: smooth;
}

.how-to-rent-redesign .how-to-rent {
  margin: 0;
  background: var(--white);
  color: var(--body);
  font: 1rem/1.7 var(--sans);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.how-to-rent-redesign .how-to-rent ::selection {
  background: var(--warm-soft);
  color: var(--navy);
}

.how-to-rent-redesign .how-to-rent img {
  display: block;
  max-width: 100%;
}

.how-to-rent-redesign .how-to-rent a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: .22em;
}

.how-to-rent-redesign .how-to-rent button {
  font: inherit;
}

.how-to-rent-redesign .how-to-rent a:focus-visible,
.how-to-rent-redesign .how-to-rent button:focus-visible,
.how-to-rent-redesign .how-to-rent summary:focus-visible {
  outline: 3px solid #9a6b2f;
  outline-offset: 4px;
}

.how-to-rent-redesign .how-to-rent .shell {
  width: min(var(--shell), calc(100% - (2 * var(--gutter))));
  margin-inline: auto;
}

.how-to-rent-redesign .how-to-rent .page-opening {
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.how-to-rent-redesign .how-to-rent .page-opening__grid {
  position: relative;
  min-height: 23rem;
  overflow: hidden;
}

.how-to-rent-redesign .how-to-rent .page-opening__copy {
  position: relative;
  z-index: 4;
  display: flex;
  width: min(61%, 54rem);
  min-height: 23rem;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2.8rem, 5vw, 4.8rem) clamp(1.5rem, 3vw, 3rem) clamp(2.8rem, 5vw, 4.8rem) 0;
}

.how-to-rent-redesign .how-to-rent .page-opening h1 {
  max-width: 13ch;
  margin: 0;
  color: var(--navy);
  font: 400 clamp(2.75rem, 4.5vw, 4.65rem)/1.02 var(--serif);
  letter-spacing: -.025em;
}

.how-to-rent-redesign .how-to-rent .page-opening__intro {
  max-width: 61ch;
  margin: 1.35rem 0 0;
  color: #34495f;
  font-size: clamp(1rem, 1.2vw, 1.12rem);
  line-height: 1.65;
}

.how-to-rent-redesign .how-to-rent .page-opening__image {
  --redesign-hero-fade-secondary: linear-gradient(0deg, rgba(16,41,66,.035), transparent 28%);
  position: absolute;
  z-index: 0;
  inset: 0 0 0 25%;
  min-height: 23rem;
  margin: 0;
  overflow: hidden;
  background: #e9eef1;
}

.how-to-rent-redesign .how-to-rent .page-opening__image picture {
  display: contents;
}

.how-to-rent-redesign .how-to-rent .page-opening__image img {
  width: 100%;
  height: 100%;
  min-height: 23rem;
  object-fit: cover;
  object-position: center 58%;
  filter: saturate(.97) contrast(1.018) brightness(1.01);
}

.how-to-rent-redesign .how-to-rent .page-opening__image::after {
  content: "";
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--warm) 0 10%, rgba(180,134,69,.13) 10% 100%);
  pointer-events: none;
}

.how-to-rent-redesign .how-to-rent .rental-shortcuts {
  position: relative;
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.how-to-rent-redesign .how-to-rent .rental-shortcuts__viewport {
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}

.how-to-rent-redesign .how-to-rent .rental-shortcuts__viewport::-webkit-scrollbar {
  display: none;
}

.how-to-rent-redesign .how-to-rent .rental-shortcuts__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.how-to-rent-redesign .how-to-rent .rental-shortcut {
  position: relative;
  display: grid;
  min-height: 5.35rem;
  grid-template-columns: auto 1fr;
  gap: .85rem;
  align-items: center;
  margin-right: .8rem;
  padding: .95rem 1.4rem .95rem .55rem;
  text-decoration: none;
  scroll-snap-align: start;
}

.how-to-rent-redesign .how-to-rent .rental-shortcut:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 1rem;
  right: 0;
  bottom: 1rem;
  width: 1px;
  background: var(--line);
}

.how-to-rent-redesign .how-to-rent .rental-shortcut__number {
  color: #788897;
  font: 400 1rem/1.35 var(--serif);
}

.how-to-rent-redesign .how-to-rent .rental-shortcut__title {
  color: var(--navy);
  font-size: .9rem;
  font-weight: 750;
  line-height: 1.3;
}

.how-to-rent-redesign .how-to-rent .rental-shortcut:hover,
.how-to-rent-redesign .how-to-rent .rental-shortcut:focus-visible {
  background: #faf8f4;
  box-shadow: inset 1px 0 0 rgba(180,134,69,.55);
}

.how-to-rent-redesign .how-to-rent .rental-shortcut:hover .rental-shortcut__title,
.how-to-rent-redesign .how-to-rent .rental-shortcut:focus-visible .rental-shortcut__title {
  color: #755735;
}

.how-to-rent-redesign .how-to-rent .shortcut-scroll-hint {
  display: none;
}

.how-to-rent-redesign .how-to-rent .rental-guide {
  background: var(--white);
}

.how-to-rent-redesign .how-to-rent .rental-chapter {
  border-bottom: 1px solid var(--line-dark);
}

.how-to-rent-redesign .how-to-rent .rental-chapter:nth-child(even) {
  background: #fbfcfc;
}

.how-to-rent-redesign .how-to-rent .rental-chapter__inner {
  width: min(82rem, calc(100% - (2 * var(--gutter))));
  margin-inline: auto;
  padding: clamp(5rem, 7.5vw, 7.5rem) 0 clamp(4.5rem, 6.5vw, 6.5rem);
}

.how-to-rent-redesign .how-to-rent .editorial-block {
  grid-template-columns: minmax(12rem, 17rem) minmax(0, 48rem) minmax(13rem, 1fr);
  gap: clamp(2rem, 4vw, 4.5rem);
}

.how-to-rent-redesign .how-to-rent .editorial-block + .editorial-block {
  margin-top: clamp(2.75rem, 4vw, 4rem);
  padding-top: clamp(2.25rem, 3vw, 3.25rem);
  border-top: 1px solid var(--line);
}

.how-to-rent-redesign .how-to-rent .editorial-block__heading {
  position: relative;
  padding-top: .1rem;
}

.how-to-rent-redesign .how-to-rent .editorial-block__heading::before {
  content: none;
}

.how-to-rent-redesign .how-to-rent .editorial-block__heading h2,
.how-to-rent-redesign .how-to-rent .editorial-block__heading h3 {
  margin: 0;
  color: var(--navy);
  text-wrap: balance;
}

.how-to-rent-redesign .how-to-rent .editorial-block__heading h2 {
  font-family: var(--serif);
  font-size: clamp(2.5rem, calc(1.5rem + 2.2vw), 4rem);
  font-weight: 400;
  letter-spacing: -.025em;
  line-height: 1.03;
}

.how-to-rent-redesign .how-to-rent .editorial-block__heading h2::before {
  content: "";
  display: block;
  width: 3.5rem;
  height: 1px;
  margin-bottom: 1.25rem;
  background: var(--warm);
}

.how-to-rent-redesign .how-to-rent .editorial-block__heading h3 {
  font-family: var(--sans);
  font-size: clamp(1.2rem, calc(1.05rem + .4vw), 1.45rem);
  font-weight: 700;
  letter-spacing: -.008em;
  line-height: 1.25;
}

.how-to-rent-redesign .how-to-rent .editorial-block__body p {
  margin: 0 0 1.35rem;
}

.how-to-rent-redesign .how-to-rent .editorial-block__body p:last-child {
  margin-bottom: 0;
}

.how-to-rent-redesign .how-to-rent .editorial-block__body em {
  color: var(--navy);
  font-family: var(--serif);
}

.how-to-rent-redesign .how-to-rent .editorial-list {
  margin: 1.7rem 0 1.8rem;
  padding: 0;
  list-style: none;
}

.how-to-rent-redesign .how-to-rent .editorial-list li {
  position: relative;
  padding: .72rem 0 .72rem 1.7rem;
  border-top: 1px solid var(--line);
}

.how-to-rent-redesign .how-to-rent .editorial-list li:last-child {
  border-bottom: 1px solid var(--line);
}

.how-to-rent-redesign .how-to-rent .editorial-list li::before {
  content: "";
  position: absolute;
  top: 1.35rem;
  left: .15rem;
  width: .38rem;
  height: .38rem;
  border: 1px solid var(--warm-dark);
  border-radius: 50%;
  background: var(--white);
}

.how-to-rent-redesign .how-to-rent .editorial-list strong {
  color: var(--navy);
  font-weight: 750;
}

.how-to-rent-redesign .how-to-rent .rental-table {
  width: min(100%, 36rem);
  margin: 1.7rem 0 1.8rem;
  border-collapse: collapse;
  border-block: 1px solid var(--line-dark);
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.how-to-rent-redesign .how-to-rent .rental-table th,
.how-to-rent-redesign .how-to-rent .rental-table td {
  padding: .85rem .6rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.how-to-rent-redesign .how-to-rent .rental-table th:first-child,
.how-to-rent-redesign .how-to-rent .rental-table td:first-child {
  padding-left: 0;
}

.how-to-rent-redesign .how-to-rent .rental-table th:last-child,
.how-to-rent-redesign .how-to-rent .rental-table td:last-child {
  padding-right: 0;
  text-align: right;
}

.how-to-rent-redesign .how-to-rent .rental-table thead th {
  color: var(--warm-dark);
  font-size: .72rem;
  font-weight: 750;
  letter-spacing: .08em;
  line-height: 1.35;
  text-transform: uppercase;
}

.how-to-rent-redesign .how-to-rent .rental-table tbody th {
  color: var(--navy);
  font-weight: 700;
}

.how-to-rent-redesign .how-to-rent .rental-table tbody td {
  white-space: nowrap;
}

.how-to-rent-redesign .how-to-rent .rental-table tbody tr:last-child th,
.how-to-rent-redesign .how-to-rent .rental-table tbody tr:last-child td {
  border-bottom: 0;
}

.how-to-rent-redesign .how-to-rent .context-link {
  align-self: start;
  padding-top: 1rem;
  border-top: 1px solid rgba(180, 134, 69, .65);
}

.how-to-rent-redesign .how-to-rent .context-link__label {
  display: block;
  margin-bottom: .7rem;
  color: var(--warm-dark);
  font-size: .68rem;
  font-weight: 750;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.how-to-rent-redesign .how-to-rent .context-link a {
  color: var(--navy);
  font: 400 clamp(1.12rem, 1.55vw, 1.42rem)/1.35 var(--serif);
  text-decoration-color: rgba(180, 134, 69, .75);
}

.how-to-rent-redesign .how-to-rent .context-link a:hover,
.how-to-rent-redesign .how-to-rent .context-link a:focus-visible {
  color: var(--blue);
  text-decoration-color: currentColor;
}

@media (max-width: 1180px) {
  .how-to-rent-redesign .how-to-rent .editorial-block {
    grid-template-columns: minmax(11rem, 14rem) minmax(0, 1fr) minmax(12rem, 15rem);
    gap: 2rem;
  }
}

@media (max-width: 1080px) {
  .how-to-rent-redesign .how-to-rent .rental-shortcuts::before,
  .how-to-rent-redesign .how-to-rent .rental-shortcuts::after {
    content: "";
    position: absolute;
    z-index: 2;
    top: 0;
    width: 1.75rem;
    height: 5.35rem;
    pointer-events: none;
  }

  .how-to-rent-redesign .how-to-rent .rental-shortcuts::before {
    left: 0;
    background: linear-gradient(90deg, var(--white), rgba(255,255,255,0));
    opacity: 0;
  }

  .how-to-rent-redesign .how-to-rent .rental-shortcuts::after {
    right: 0;
    background: linear-gradient(90deg, rgba(255,255,255,0), var(--white));
  }

  .how-to-rent-redesign .how-to-rent .rental-shortcuts[data-scroll-edge="end"]::before {
    opacity: 1;
  }

  .how-to-rent-redesign .how-to-rent .rental-shortcuts[data-scroll-edge="end"]::after,
  .how-to-rent-redesign .how-to-rent .rental-shortcuts[data-scroll-edge="none"]::before,
  .how-to-rent-redesign .how-to-rent .rental-shortcuts[data-scroll-edge="none"]::after {
    opacity: 0;
  }

  .how-to-rent-redesign .how-to-rent .rental-shortcuts__grid.shell {
    width: max-content;
    min-width: 100%;
    padding-inline: var(--gutter);
  }

  .how-to-rent-redesign .how-to-rent .rental-shortcuts__grid {
    display: flex;
  }

  .how-to-rent-redesign .how-to-rent .rental-shortcut {
    flex: 0 0 auto;
    min-width: 14.5rem;
  }

  .how-to-rent-redesign .how-to-rent .shortcut-scroll-hint {
    display: block;
    width: min(var(--shell), calc(100% - (2 * var(--gutter))));
    margin: .28rem auto .42rem;
    color: #657483;
    font-size: .72rem;
    font-weight: 650;
    line-height: 1.35;
    letter-spacing: .015em;
    text-align: right;
  }

  .how-to-rent-redesign .how-to-rent .rental-shortcuts[data-scroll-edge="end"] .shortcut-scroll-hint {
    text-align: left;
  }

  .how-to-rent-redesign .how-to-rent .rental-shortcuts[data-scroll-edge="none"] .shortcut-scroll-hint {
    display: none;
  }

  .how-to-rent-redesign .how-to-rent .editorial-block {
    grid-template-columns: minmax(11rem, 14rem) minmax(0, 1fr);
    gap: 2.5rem;
  }

  .how-to-rent-redesign .how-to-rent .editorial-block__support {
    grid-column: 2;
  }

  .how-to-rent-redesign .how-to-rent .context-link {
    max-width: 24rem;
    margin-top: .75rem;
  }

}

@media (max-width: 900px) {
  .how-to-rent-redesign .how-to-rent .page-opening__grid {
    min-height: auto;
  }

  .how-to-rent-redesign .how-to-rent .page-opening__copy {
    width: 100%;
    min-height: 0;
    padding: 3.25rem 0 2.6rem;
  }

  .how-to-rent-redesign .how-to-rent .page-opening h1 {
    max-width: 15ch;
    font-size: clamp(2.7rem, 8vw, 4.15rem);
  }

  .how-to-rent-redesign .how-to-rent .page-opening__image {
    position: relative;
    inset: auto;
    min-height: 0;
    aspect-ratio: 2 / 1;
    background: #fff;
  }

  .how-to-rent-redesign .how-to-rent .page-opening__image img {
    min-height: 0;
    aspect-ratio: 2 / 1;
    object-position: center 56%;
  }

  .how-to-rent-redesign .how-to-rent .page-opening__image::before {
    background-image: linear-gradient(0deg, rgba(16,41,66,.055), transparent 30%);
    content: "";
  }
}

@media (max-width: 780px) {
  .how-to-rent-redesign .how-to-rent .rental-chapter__inner {
    padding: 4.6rem 0 4rem;
  }

  .how-to-rent-redesign .how-to-rent .editorial-block {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .how-to-rent-redesign .how-to-rent .editorial-block + .editorial-block {
    margin-top: 2.9rem;
    padding-top: 2.4rem;
  }

  .how-to-rent-redesign .how-to-rent .editorial-block__support {
    grid-column: auto;
  }

  .how-to-rent-redesign .how-to-rent .context-link {
    max-width: 30rem;
    margin-top: 1.1rem;
  }

}

@media (max-width: 600px) {
  .how-to-rent-redesign .how-to-rent {
    --gutter: 1.25rem;
  }

  .how-to-rent-redesign .how-to-rent .page-opening__copy {
    padding: 2.8rem 0 2.35rem;
  }

  .how-to-rent-redesign .how-to-rent .page-opening h1 {
    max-width: none;
    font-size: clamp(2.45rem, 12vw, 3.45rem);
  }

  .how-to-rent-redesign .how-to-rent .page-opening__intro {
    font-size: 1rem;
  }

  .how-to-rent-redesign .how-to-rent .rental-shortcuts__grid.shell {
    padding-inline: 1.25rem;
  }

  .how-to-rent-redesign .how-to-rent .rental-shortcut {
    min-width: 13.4rem;
    min-height: 4.8rem;
    padding-block: .8rem;
  }

  .how-to-rent-redesign .how-to-rent .rental-shortcuts::before,
  .how-to-rent-redesign .how-to-rent .rental-shortcuts::after {
    height: 4.8rem;
  }

  .how-to-rent-redesign .how-to-rent .rental-chapter__inner {
    width: calc(100% - 2.5rem);
    padding: 3.9rem 0 3.5rem;
  }

  .how-to-rent-redesign .how-to-rent .editorial-block__body {
    font-size: .98rem;
    line-height: 1.68;
  }

  .how-to-rent-redesign .how-to-rent .editorial-list li {
    padding-left: 1.45rem;
  }

}

@media (max-width: 480px) {
  .how-to-rent-redesign .how-to-rent .rental-shortcut {
    flex-basis: max(9.5rem, calc((100vw - 4.6rem) / 2));
    min-width: 0;
  }
}

@media (min-width: 700px) and (max-width: 950px) and (max-height: 430px) and (orientation: landscape) {
  .how-to-rent-redesign .how-to-rent .rental-shortcut {
    min-height: 4.5rem;
    padding-block: .65rem;
  }

  .how-to-rent-redesign .how-to-rent .rental-shortcuts::before,
  .how-to-rent-redesign .how-to-rent .rental-shortcuts::after {
    height: 4.5rem;
  }

  .how-to-rent-redesign .how-to-rent .shortcut-scroll-hint {
    margin-block: .3rem .35rem;
  }

  .how-to-rent-redesign .how-to-rent .page-opening__grid {
    min-height: 17rem;
  }

  .how-to-rent-redesign .how-to-rent .page-opening__copy {
    width: 60%;
    min-height: 17rem;
    padding: 2.1rem 1.5rem 2.1rem 0;
  }

  .how-to-rent-redesign .how-to-rent .page-opening h1 {
    max-width: 14ch;
    font-size: 3.25rem;
  }

  .how-to-rent-redesign .how-to-rent .page-opening__intro {
    margin-top: .85rem;
    font-size: .92rem;
    line-height: 1.5;
  }

  .how-to-rent-redesign .how-to-rent .page-opening__image {
    position: absolute;
    inset: 0 0 0 38%;
    min-height: 17rem;
    aspect-ratio: auto;
    background: #e9eef1;
  }

  .how-to-rent-redesign .how-to-rent .page-opening__image img {
    min-height: 17rem;
    aspect-ratio: auto;
    object-position: 61% 58%;
  }

  .how-to-rent-redesign .how-to-rent .page-opening__image::before {
    background-image: var(--redesign-hero-fade-gradient), var(--redesign-hero-fade-secondary);
  }

  .how-to-rent-redesign .how-to-rent .rental-chapter__inner {
    padding-block: 3.4rem;
  }

  .how-to-rent-redesign .how-to-rent .editorial-block {
    grid-template-columns: minmax(10rem, 13rem) minmax(0, 1fr);
    gap: 2rem;
    align-items: start;
  }

  .how-to-rent-redesign .how-to-rent .editorial-block__support {
    grid-column: 2;
  }

  .how-to-rent-redesign .how-to-rent .editorial-block + .editorial-block {
    margin-top: 2.5rem;
    padding-top: 2.1rem;
  }

  .how-to-rent-redesign .how-to-rent #placement .editorial-block {
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    gap: 1.5rem;
  }
}

@media (max-width: 420px) {
  .how-to-rent-redesign .how-to-rent .page-opening__image img {
    object-position: 60% 56%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .how-to-rent-redesign .how-to-rent {
    scroll-behavior: auto;
  }

  .how-to-rent-redesign .how-to-rent,
.how-to-rent-redesign .how-to-rent *,
.how-to-rent-redesign .how-to-rent *::before,
.how-to-rent-redesign .how-to-rent *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
