/* This stylesheet is loaded only on the certificate library. The shared header
   supplies the local Geist face, including for the mobile menu and search. */
@layer certificate-type {
  :where(body, body *), .rh-search-dialog input::placeholder {
    font-family: Geist, "Avenir Next", Arial, sans-serif !important;
    font-weight: 400 !important;
    font-synthesis: none;
  }
}

.cr-page {
  /* Model banner, gallery and closing CTA sizes from the Road Glide and
     Panigale pages (model-typography.css and model-front-cta.css). */
  --cr-display: clamp(40px, 4.85vw, 83px);
  --cr-subtitle: clamp(22px, 2vw, 34px);
  --cr-section: clamp(32px, 3.6vw, 54px);
  --cr-card-title: 20px;
  --cr-cta: clamp(42px, 4.8vw, 78px);
  --cr-line: #ffffff24;
  --cr-muted: #b8bbb5;
  --cr-gold: #dac79f;
  background: #0a0b0b;
  color: #f1f0eb;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.cr-wrap { width: min(100%, 1560px); margin-inline: auto; padding-inline: clamp(24px, 5.5vw, 86px); }
.cr-page :is(h1, h2, h3, p) { margin: 0; }
.cr-page [id] { scroll-margin-top: 12px; } /* The shared header sets scroll-padding. */
.cr-page a:focus-visible { outline: 2px solid var(--cr-gold); outline-offset: 4px; }
.cr-page .cr-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 48px;
  border-bottom: 1px solid #838780;
  padding-block: 12px;
  font-size: 15px;
  line-height: 1.45;
  color: #efeee8;
}
.cr-page .cr-link:hover { color: var(--cr-gold); border-color: var(--cr-gold); }

.cr-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.2fr);
  gap: 2%;
  align-items: center;
  min-height: 570px;
  padding-block: 54px 42px;
  overflow: hidden;
  background: radial-gradient(ellipse at 78% 42%, #a48c5120, transparent 47%);
}
.cr-hero-copy { position: relative; z-index: 6; }
.cr-kicker { color: var(--cr-muted); font-size: 14px; line-height: 1.5; letter-spacing: .18em; }
.cr-hero h1 { margin-block: 22px; font-size: var(--cr-display); line-height: 1.12; letter-spacing: -.018em; }
.cr-hero h1 span {
  display: block;
  margin-top: clamp(14px, 1.35vw, 22px);
  font-size: var(--cr-subtitle);
  line-height: 1.22;
  letter-spacing: 0;
  color: var(--cr-gold);
}
.cr-intro { max-width: 40ch; color: var(--cr-muted); }
.cr-hero .cr-link { margin-top: 24px; }

.cr-domino-scene {
  position: relative;
  min-width: 0;
  width: 100%;
  height: clamp(360px, 32vw, 510px);
  isolation: isolate;
}
.cr-domino-halo {
  position: absolute;
  z-index: -1;
  inset: 6% -10% 3% -9%;
  background: radial-gradient(ellipse at 56% 48%, #c5ad7340, #c5ad7317 33%, transparent 68%);
  filter: blur(18px);
}
.cr-domino-orbit {
  position: absolute;
  inset: auto 0 4%;
  height: 24%;
  border: 1px solid #dac79f28;
  border-radius: 50%;
  transform: rotate(11deg) scaleY(.5);
}
.cr-domino-stage { position: absolute; inset: 0; }
.cr-domino {
  position: absolute;
  left: calc(64% - var(--i) * 14%);
  top: calc(6% + (4 - var(--i)) * 5%);
  width: 28%;
  max-width: 210px;
  z-index: calc(var(--i) + 1);
  animation: cr-domino-settle .9s ease-out backwards;
  animation-delay: calc(var(--i) * .08s);
}
.cr-domino-paper {
  position: relative;
  display: block;
  border: 4px solid #eeede5;
  background: #f8f7ef;
  box-shadow: 4px 4px 0 #c6b99e, -12px 20px 24px #0008, -24px 37px 36px #0004;
  transition: transform .25s ease;
}
.cr-domino-paper img { display: block; width: 100%; height: auto; }
.cr-domino-edge { position: absolute; inset: 0; box-shadow: inset -1px 0 0 #7b6d5129; pointer-events: none; }
.cr-domino:focus-visible { z-index: 7; }
.cr-domino:is(:hover, :focus-visible) .cr-domino-paper { transform: translateY(-8px); }
@keyframes cr-domino-settle { from { transform: translateY(16px); } to { transform: none; } }

.cr-overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  padding-block: 24px;
  border-block: 1px solid var(--cr-line);
}
.cr-overview > div { display: flex; align-items: center; gap: 16px; }
.cr-overview strong { color: var(--cr-gold); font-size: 16px; line-height: 1.65; }
.cr-overview p { color: var(--cr-muted); font-size: 13px; line-height: 1.55; }
.cr-section { padding-top: clamp(48px, 6vw, 90px); }
#performance-documents { padding-top: clamp(80px, 8.5vw, 120px); }
.cr-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 36px;
  padding-bottom: clamp(24px, 3vw, 44px);
}
.cr-section-heading h2 { font-size: var(--cr-section); line-height: 1.1; letter-spacing: -.045em; }
.cr-section-heading p { max-width: 40ch; color: var(--cr-muted); }
.cr-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 1.6vw, 24px); }
.cr-grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 2.3vw, 32px); }
.cr-report { display: flex; flex-direction: column; min-width: 0; border: 1px solid #ffffff24; background: #121413; }
.cr-preview {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 8px;
  height: 300px;
  padding: 12px 20px 18px;
  background: #d9dbd5;
}
.cr-preview-tag { color: #454b42; font-size: 12px; line-height: 1.5; letter-spacing: .075em; text-transform: uppercase; }
.cr-preview img {
  display: block;
  justify-self: center;
  align-self: center;
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}
.cr-preview-open { position: absolute; right: 12px; bottom: 12px; color: #343b31; font-size: 20px; line-height: 1.5; }
.cr-report-body { flex: 1; padding: 24px 24px 0; min-width: 0; }
.cr-report-label { color: var(--cr-gold); font-size: 12px; line-height: 1.6; letter-spacing: .075em; }
.cr-report h3 { margin-block: 12px; font-size: var(--cr-card-title); line-height: 1.35; letter-spacing: -.02em; }
.cr-result { color: #c7cac4; font-size: 14px; line-height: 1.6; }
.cr-report-links { padding: 14px 24px 20px; }
.cr-report-links .cr-link { min-height: 44px; gap: 16px; }
.cr-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  margin-top: clamp(48px, 5vw, 78px);
  padding-block: clamp(36px, 4.5vw, 68px);
  background: #deded5;
  color: #171b17;
}
.cr-cta h2 { max-width: 16ch; font-size: var(--cr-cta); line-height: 1.045; letter-spacing: -.048em; }
.cr-cta p { margin-top: 18px; max-width: 56ch; color: #475044; font-size: clamp(15px, 1.13vw, 17px); }
.cr-cta .cr-link { flex: none; color: #1b2519; border-color: #697461; }
.cr-cta .cr-link:is(:hover, :focus-visible) { color: #354331; border-color: currentColor; outline-color: #354331; }
.cr-bottom { display: flex; justify-content: flex-end; padding-block: 10px; }
.cr-bottom a { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; font-size: 15px; color: var(--cr-muted); }

@media (min-width: 1100px) {
  .cr-grid--two .cr-report { display: grid; grid-template-columns: 43% minmax(0, 1fr); grid-template-rows: 1fr auto; }
  .cr-grid--two .cr-preview { grid-row: 1 / 3; min-height: 430px; height: 100%; }
  .cr-grid--two .cr-preview img { width: 100%; height: auto; max-height: 100%; }
}
@media (max-width: 900px) {
  .cr-hero { min-height: 0; }
  .cr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cr-report-body { padding: 20px 18px 0; }
  .cr-report-links { padding-inline: 18px; }
}
@media (max-width: 800px) {
  .cr-page {
    --cr-display: clamp(30px, 9.8vw, 58px);
    --cr-subtitle: clamp(20px, 4.8vw, 26px);
    --cr-cta: clamp(35px, 7.8vw, 54px);
  }
  .cr-hero { grid-template-columns: 1fr; gap: 12px; padding-block: 44px 12px; }
  .cr-domino-scene { justify-self: center; max-width: 560px; height: auto; aspect-ratio: 1.6; }
  .cr-section-heading, .cr-cta { align-items: flex-start; flex-direction: column; gap: 18px; }
  .cr-section-heading p { max-width: 52ch; }
}
@media (max-width: 700px) {
  .cr-page { --cr-section: clamp(28px, 8.5vw, 34px); --cr-card-title: 17px; }
  .cr-hero h1 { margin-block: 16px; }
  .cr-hero .cr-link { margin-top: 14px; }
  .cr-domino-paper { border-width: 3px; }
  .cr-grid { grid-template-columns: 1fr; gap: 24px; }
  .cr-overview { gap: 20px; }
  .cr-overview > div { align-items: flex-start; flex-direction: column; gap: 8px; }
  .cr-report-body { padding: 24px 22px 0; }
  .cr-report-links { padding-inline: 22px; }
}
@media (max-width: 640px) {
  .cr-kicker { font-size: 13px; }
  .cr-section-heading p { font-size: 14px; }
  .cr-preview-open { font-size: 17px; }
}
@media (max-width: 480px) {
  .cr-overview { grid-template-columns: 1fr; gap: 12px; padding-block: 20px; }
  .cr-overview > div { display: grid; grid-template-columns: 3.4rem 1fr; align-items: center; gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .cr-domino { animation: none; }
  .cr-domino-paper { transition: none; }
}
