/* Riviera's reviewed components; no changes to the site's shared styles. */
body.as-system[data-as-adapter="native"] .as-main :is(.rp-project-alias, .rp-alias) {
  margin: -12px 0 24px;
  color: #58636c;
  font-size: 15px;
  line-height: 1.55;
}
body.as-system[data-as-adapter="native"] .as-main .rp-draft-label {
  max-width: 750px;
  margin: 0 0 20px;
  padding: 10px 14px;
  border-left: 3px solid #526f80;
  background: #eef3f6;
  color: #34444c;
  font-size: 13px;
  line-height: 1.6;
}
body.as-system[data-as-adapter="native"] .as-main .rp-hero-figure {
  max-width: 100%;
  margin: 32px 0 40px;
}
body.as-system[data-as-adapter="native"] .as-main .rp-hero-figure img {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  aspect-ratio: 1600 / 1132;
  object-fit: contain;
  border-radius: 6px;
}
body.as-system[data-as-adapter="native"] .as-main :is(.rp-hero-figure, .rp-plan-figure) figcaption {
  max-width: 750px;
  margin: 12px 0 0;
  color: #58636c;
  font-size: 13px;
  line-height: 1.65;
}
body.as-system[data-as-adapter="native"] .as-main .rp-plan-figure {
  width: 100%;
  max-width: 900px;
  margin: 28px 0 32px;
  padding: 16px;
  border: 1px solid #d8dedb;
  border-radius: 8px;
  background: #fff;
}
body.as-system[data-as-adapter="native"] .as-main .rp-plan-open {
  display: block;
  color: #18342e;
  text-decoration: none;
  cursor: zoom-in;
}
body.as-system[data-as-adapter="native"] .as-main .rp-plan-open img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 1100px;
  max-height: none;
  aspect-ratio: 1100 / 778;
  object-fit: contain;
}
body.as-system[data-as-adapter="native"] .as-main .rp-plan-open > :is(span, .rp-plan-open-label) {
  display: flex;
  width: fit-content;
  min-height: 44px;
  align-items: center;
  margin-top: 12px;
  padding: 9px 15px;
  border: 1px solid #526f80;
  border-radius: 5px;
  background: #eef3f6;
  color: #18342e;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}
body.as-system[data-as-adapter="native"] .as-main .rp-plan-open:hover > :is(span, .rp-plan-open-label) {
  background: #e3ecf0;
}
body.as-system[data-as-adapter="native"] .as-main .rp-comparison {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 30px 0 38px;
}
body.as-system[data-as-adapter="native"] .as-main :is(.rp-choicecard, .rp-choice-card) {
  min-width: 0;
  padding: 24px 20px;
  border: 1px solid #cad5dc;
  border-radius: 8px;
  background: #eef3f6;
}
body.as-system[data-as-adapter="native"] .as-main :is(.rp-choicecard, .rp-choice-card) > :first-child {
  margin-top: 0;
}
body.as-system[data-as-adapter="native"] .as-main :is(.rp-choicecard, .rp-choice-card) h3 {
  margin: 0 0 16px;
  color: #18342e;
  font-size: 23px;
  line-height: 1.25;
  letter-spacing: -.025em;
}
body.as-system[data-as-adapter="native"] .as-main :is(.rp-choicecard, .rp-choice-card) p {
  margin: 10px 0 0;
  color: #344951;
  font-size: 15px;
  line-height: 1.65;
}
body.as-system[data-as-adapter="native"] .as-main :is(.rp-choice-area, .rp-number) {
  display: block;
  margin: 0 0 14px;
  color: #18342e;
  font-size: 39px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -.045em;
}
body.as-system[data-as-adapter="native"] .as-main .rp-number small { font-size: 22px; font-weight: 400; }
body.as-system[data-as-adapter="native"] .as-main .rp-type {
  display: block;
  margin-bottom: 15px;
  color: #526f80;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .06em;
}
body.as-system[data-as-adapter="native"] .as-main :is(.rp-choicecard, .rp-choice-card) > a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  margin-top: 12px;
  color: #18342e;
  font-size: 14px;
  line-height: 1.5;
  text-underline-offset: .2em;
}
body.as-system[data-as-adapter="native"] .as-main .rp-image-note {
  color: #58636c;
  font-size: 14px;
  line-height: 1.65;
}
body.as-system[data-as-adapter="native"] .as-main .rp-note {
  max-width: 750px;
  margin: 28px 0;
  padding: 20px 24px;
  border-left: 3px solid #526f80;
  background: #f2f5f4;
  color: #34444c;
  font-size: 17px;
  line-height: 1.65;
}
body.as-system[data-as-adapter="native"] .as-main .rp-note p {
  margin: 0;
  font-size: inherit;
  line-height: inherit;
}
body.as-system[data-as-adapter="native"] .as-main :is(table.rp-comparetable, .rp-comparetable table) {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.6;
}
body.as-system[data-as-adapter="native"] .as-main :is(table.rp-comparetable, .rp-comparetable table) caption {
  padding: 0 0 15px;
  color: #58636c;
  font-size: 13px;
  line-height: 1.6;
  text-align: left;
}
body.as-system[data-as-adapter="native"] .as-main .rp-inline-cta {
  max-width: 750px;
  margin: 28px 0 34px;
  padding: 24px 26px;
  border: 1px solid #c9d4cf;
  border-radius: 6px;
  background: #f5f7f6;
}
body.as-system[data-as-adapter="native"] .as-main .rp-inline-cta p {
  margin: 0;
  color: #18342e;
  font-size: 17px;
  line-height: 1.65;
}
body.as-system[data-as-adapter="native"] .as-main .rp-inline-cta a {
  color: #18342e;
  text-underline-offset: .2em;
}
/* Keep the inline action readable; a general link rule must not hide its label. */
body.as-system[data-as-adapter="native"] .as-main .rp-inline-cta a.button.primary {
  min-height: 44px;
  margin-top: 16px;
  border: 1px solid #9aaeb9;
  background: #eef3f6;
  color: #18342e;
  box-shadow: none;
  text-decoration: none;
  background-image: none;
}
body.as-system[data-as-adapter="native"] .as-main .rp-inline-cta a.button.primary:hover {
  background: #e3ecf0;
  color: #18342e;
}
body.as-system[data-as-adapter="native"] .as-main .rp-inline-cta a.button.primary:focus-visible {
  outline: 3px solid #526f80;
  outline-offset: 3px;
}
body.as-system[data-as-adapter="native"] .as-main .guide-cta :is(a.button, a[role="button"]) {
  min-height: 44px;
  text-decoration: none;
  background-image: none;
}

/* Created only when an authorised plan link is opened; otherwise its href works. */
.rp-plan-dialog {
  box-sizing: border-box;
  width: min(1400px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid #cbd5d6;
  border-radius: 9px;
  background: #fff;
  color: #20272d;
  font-family: Inter, system-ui, sans-serif;
  box-shadow: 0 20px 70px #08251f26;
}
.rp-plan-dialog::backdrop { background: #08251fd9; }
.rp-plan-dialog[open] { display: flex; flex-direction: column; }
.rp-plan-dialog-head {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid #d8dedb;
}
.rp-plan-dialog-title {
  margin: 0;
  color: #18342e;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
}
.rp-plan-dialog button {
  box-sizing: border-box;
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border: 1px solid #9aaeb9;
  border-radius: 5px;
  background: #fff;
  color: #18342e;
  font: 600 15px/1.4 Inter, system-ui, sans-serif;
  cursor: pointer;
}
.rp-plan-dialog button:hover { background: #eef3f6; }
.rp-plan-dialog button:disabled { opacity: .5; cursor: default; }
.rp-plan-dialog-close { flex: 0 0 44px; font-size: 24px !important; }
.rp-plan-dialog-tools {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: #eef3f6;
}
.rp-plan-scale { min-width: 48px; color: #34444c; font-size: 14px; text-align: center; }
.rp-plan-canvas {
  min-height: 80px;
  max-height: calc(100dvh - 235px);
  padding: 16px;
  overflow: auto;
  overscroll-behavior: contain;
  touch-action: pan-x pan-y pinch-zoom;
  background: #fff;
}
.rp-plan-canvas img {
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
  margin-inline: auto;
  object-fit: contain;
}
.rp-plan-dialog-foot {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 16px;
  padding: 10px 18px 14px;
  border-top: 1px solid #d8dedb;
  color: #58636c;
  font-size: 12px;
  line-height: 1.6;
}
.rp-plan-dialog-foot p { margin: 0; font-size: inherit; line-height: inherit; }
.rp-plan-dialog-foot a { padding-block: 7px; color: #18342e; text-underline-offset: .2em; }
.rp-plan-dialog :is(a, button, [tabindex]):focus-visible,
body.as-system[data-as-adapter="native"] .rp-plan-open:focus-visible {
  outline: 3px solid #526f80;
  outline-offset: 3px;
}
@media (max-width: 760px) {
  body.as-system[data-as-adapter="native"] .as-main .rp-comparison {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  body.as-system[data-as-adapter="native"] .as-main :is(.rp-choicecard, .rp-choice-card) { padding: 20px; }
  body.as-system[data-as-adapter="native"] .as-main :is(.rp-choice-area, .rp-number) { font-size: 35px; }
}
@media (max-width: 640px) {
  body.as-system[data-as-adapter="native"] .as-main .rp-plan-figure { padding: 8px; margin-block: 24px; }
  body.as-system[data-as-adapter="native"] .as-main .rp-plan-open > :is(span, .rp-plan-open-label) { width: 100%; justify-content: center; }
  body.as-system[data-as-adapter="native"] .as-main .rp-note { padding: 18px 20px; font-size: 16px; }
  body.as-system[data-as-adapter="native"] .as-main .rp-inline-cta { padding: 20px; }
  .rp-plan-dialog { width: calc(100vw - 12px); max-height: calc(100dvh - 12px); border-radius: 6px; }
  .rp-plan-dialog-head { padding: 10px 12px; }
  .rp-plan-dialog-title { font-size: 15px; }
  .rp-plan-dialog-tools { padding: 8px 12px; gap: 6px; }
  .rp-plan-dialog-tools button { padding-inline: 9px; }
  .rp-plan-canvas { padding: 8px; max-height: calc(100dvh - 225px); }
  .rp-plan-dialog-foot { padding-inline: 12px; gap: 0 12px; }
}
@media print {
  .rp-plan-dialog { display: none !important; }
  body.as-system[data-as-adapter="native"] .as-main .rp-plan-open > :is(span, .rp-plan-open-label) { display: none; }
  body.as-system[data-as-adapter="native"] .as-main .rp-comparison { display: block; }
  body.as-system[data-as-adapter="native"] .as-main :is(.rp-plan-figure, .rp-choicecard, .rp-choice-card, .rp-note) { break-inside: avoid; box-shadow: none; }
  body.as-system[data-as-adapter="native"] .as-main :is(.rp-choicecard, .rp-choice-card) { margin-bottom: 12px; }
}
