.rs-proposal {
  box-sizing: border-box;
  width: min(calc(100% - 2rem), 46rem);
  margin: clamp(2rem, 5vw, 5rem) auto;
  padding: clamp(1.25rem, 4vw, 2.75rem);
  scroll-margin-top: 6rem;
  background: #f5f1ea;
  border: 1px solid #d8ccbb;
  color: #2a2723;
  text-align: start;
}

.rs-proposal h2, .rs-proposal-dialog h2 {
  margin: 0 0 .75rem;
  font: 500 clamp(1.65rem, 4.1vw, 2.4rem)/1.1 "Cormorant Garamond", Georgia, serif;
  letter-spacing: normal;
  color: #26221e;
}

.rs-proposal p, .rs-proposal-dialog p { margin: .65rem 0 1rem; font: 400 1rem/1.6 system-ui, sans-serif; }
.rs-proposal-inline { display: block; margin-block: .55rem; font: inherit; font-size: .875rem; line-height: 1.4; }
.rs-proposal-service a { color: inherit; text-decoration: underline; }
.rs-proposal-status:empty { display: none; }
.rs-proposal [hidden] { display: none !important; }
.f1i-enhanced [data-native-proposal], .mgi-enhanced [data-native-proposal], .psi-enhanced [data-native-proposal] { display: none; }

.rs-proposal-button, .rs-proposal-secondary {
  box-sizing: border-box;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: .65rem 1rem;
  border: 1px solid #30554c;
  border-radius: 2px;
  background: #25463e;
  color: #fff;
  font: 550 .95rem/1.35 system-ui, sans-serif;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
}

.rs-proposal-secondary { background: transparent; color: #25463e; }
.rs-proposal-button:disabled { background: #e4e2db; border-color: #b6b5aa; color: #53564f; cursor: default; }
.rs-proposal-button:focus-visible, .rs-proposal-secondary:focus-visible, .rs-proposal-close:focus-visible { outline: 2px solid #25463e; outline-offset: 3px; }
.rs-proposal-dialog {
  box-sizing: border-box;
  width: min(calc(100% - 1.5rem), 36rem);
  max-height: calc(100dvh - 1.5rem);
  overflow: auto;
  margin: auto;
  padding: clamp(1.25rem, 4vw, 2.5rem);
  border: 1px solid #d8ccbb;
  background: #fbf8f3;
  color: #2a2723;
}

.rs-proposal-dialog::backdrop { background: rgb(31 30 27 / .58); }
.rs-proposal-dialog label { display: flex; gap: .65rem; align-items: flex-start; margin: 1rem 0; font: 400 .95rem/1.55 system-ui, sans-serif; }
.rs-proposal-dialog input { flex: 0 0 auto; width: 1.15rem; height: 1.15rem; margin: .15rem 0 0; accent-color: #25463e; }
.rs-proposal-dialog .rs-proposal-step { padding-right: 2.75rem; color: #4d5d54; font-size: .85rem; }
.rs-proposal-dialog .rs-proposal-journey { font-weight: 600; }
.rs-proposal-actions { display: flex; flex-wrap: wrap; gap: .65rem; }
.rs-timeline-downloads { margin-block: 1.75rem; font: 400 1rem/1.5 system-ui, sans-serif; }
.rs-timeline-downloads .rs-proposal-actions { margin-block-start: .6rem; }
.rs-proposal-close {
  position: absolute;
  inset: .5rem .5rem auto auto;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: inherit;
  font: 400 1.6rem/1 system-ui, sans-serif;
  cursor: pointer;
}

/* The original Signature pages share their editorial timeline and five-image gallery. */
.jit .jit-body { min-width: 0; }
.jit .jit-t { text-wrap: pretty; }
.jit .jit-p,
.ji .ji-body > p { max-width: 68ch; }
.jit .jit-p { font-size: 1rem; line-height: 1.75; }

@media (min-width: 768px) {
  .jgal .jgal-grid { grid-template-rows: auto; }
  .jgal .jgal-item:not(:first-child) { aspect-ratio: 3 / 2; }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .jgal .jgal-item:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
}

@media (max-width: 600px) {
  /* Reserve the timeline gutter only for days that still display it. */
  .jit .jit-day:where(:not(.f1i-day, .mgi-day, .psi-day)) {
    grid-template-columns: 12px minmax(0, 1fr);
    column-gap: 14px;
  }
  .jit .jit-body { padding-inline-start: 0; padding-bottom: 2.5rem; }
  .jit .jit-tag { max-width: 100%; overflow-wrap: anywhere; }
  .jex .jex-grid {
    grid-template-columns: minmax(0, 1fr);
    padding-inline: 0;
  }
}
