.cert-page {
  --cert-paper: #fffdf7;
  --cert-ink: #0c332e;
  --cert-muted: #425e56;
  --cert-line: #e9dbc4;
  color: var(--cert-ink);
}

.cert-page h1,
.cert-page h2,
.cert-page h3,
.cert-page p { margin: 0; }
.cert-page p, .cert-page dd { line-height: 1.55; }
.cert-page h2 {
  margin-top: 5px;
  font-size: clamp(28px, 4.1vw, 50px);
  line-height: 1.08;
  letter-spacing: -.045em;
}
.cert-page h3 { font-size: 18px; line-height: 1.25; }
.cert-page :focus-visible { outline: 2px solid #126343; outline-offset: 3px; }

.cert-hero {
  position: relative;
  isolation: isolate;
  min-height: clamp(390px, 37vw, 550px);
  display: flex;
  align-items: center;
  padding: clamp(30px, 5.5vw, 82px) max(5vw, calc((100% - 1180px) / 2));
  background: #fff2df;
}
.cert-hero picture,
.cert-hero::after { position: absolute; inset: 0; z-index: -1; }
.cert-hero picture img { width: 100%; height: 100%; object-fit: cover; object-position: right center; }
.cert-hero::after {
  content: "";
  background: linear-gradient(90deg, #fff5e8 0%, #fff5e8 20%, #fff5e8f0 33%, #fff5e8a8 48%, transparent 68%);
}
.cert-hero-copy { max-width: min(53vw, 620px); }
.cert-hero h1 {
  margin: 10px 0 17px;
  font-size: clamp(38px, 5vw, 72px);
  line-height: 1;
  letter-spacing: -.06em;
}
.cert-hero h1 em { display: block; color: #bd402f; font-style: normal; }
.cert-hero-copy > p:not(.eyebrow) { max-width: 46ch; font-size: clamp(16px, 1.45vw, 19px); }
.cert-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 22px; margin-top: 23px; }
.cert-text-link { font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }

.cert-section { width: min(calc(100% - 40px), 1180px); margin: clamp(30px, 5vw, 65px) auto 0; }
.cert-section[id] { scroll-margin-top: 102px; }
.cert-page .cert-lead { margin-top: 9px; max-width: 70ch; color: var(--cert-muted); }
.cert-markets, .cert-three-columns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 20px; }
.cert-market, .cert-panel {
  --cert-tint: #fff1cb;
  padding: 16px;
  border: 1px solid var(--cert-line);
  border-radius: 20px;
  background: var(--cert-tint);
}
.cert-market:nth-child(2), .cert-panel:nth-child(2) { --cert-tint: #e3f4fb; }
.cert-market:nth-child(3), .cert-panel:nth-child(3) { --cert-tint: #e7f2e7; }
.cert-market h3 { display: flex; gap: 9px; align-items: center; margin-bottom: 12px; }
.cert-market h3 span {
  display: grid;
  min-width: 33px;
  min-height: 33px;
  place-items: center;
  padding: 3px;
  border-radius: 50%;
  background: var(--cert-paper);
  font-size: 12px;
  font-weight: 850;
}
.cert-report-list, .cert-steps, .cert-factors, .cert-numbered {
  padding: 0;
  list-style: none;
}
.cert-report-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin: 0; }
.cert-report-list li { display: flex; min-width: 0; }
.cert-report {
  display: flex;
  flex-direction: column;
  width: 100%;
  border: 1px solid #153a2b22;
  border-radius: 12px;
  background: #fff;
  transition: box-shadow .18s, border-color .18s;
}
.cert-report:hover { border-color: #1a523c; box-shadow: 0 5px 15px #1638281c; }
.cert-report img {
  width: 100%;
  height: auto;
  aspect-ratio: 453 / 640;
  object-fit: contain;
  border-radius: 11px 11px 0 0;
}
.cert-report-caption {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: space-between;
  gap: 7px;
  padding: 10px;
  border-top: 1px solid var(--cert-line);
  font-size: 14px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.cert-report-caption > span { font-size: 12px; color: #215b46; font-weight: 750; }
.cert-report:hover .cert-report-caption > span { text-decoration: underline; }
.cert-page .cert-note { margin-top: 13px; padding: 12px 16px; border-left: 4px solid #e6ad17; background: #fff6de; color: var(--cert-muted); font-size: 14px; }
.cert-panel dl { margin: 12px 0 0; }
.cert-panel dt { font-weight: 800; }
.cert-panel dd { margin: 2px 0 12px; color: var(--cert-muted); }
.cert-panel dd:last-child { margin-bottom: 0; }
.cert-other-market {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-top: 14px;
  padding: 12px 20px;
  border-radius: 20px;
  background: #fff0d0;
}
.cert-other-market img { width: 85px; height: 85px; object-fit: contain; }
.cert-other-market p { margin-top: 4px; }

.cert-workflow { margin-top: clamp(30px, 5vw, 65px); padding: clamp(26px, 4vw, 55px) 0; background: #e4f5fb; }
.cert-workflow .cert-section { margin-top: 0; }
.cert-steps, .cert-factors, .cert-numbered {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
}
.cert-steps { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.cert-steps li, .cert-factors li, .cert-numbered li { background: var(--cert-paper); border: 1px solid var(--cert-line); border-radius: 15px; }
.cert-steps img { display: block; width: 100%; height: auto; border-radius: 14px 14px 0 0; }
.cert-steps li > div, .cert-factors li, .cert-numbered li { padding: 13px; }
.cert-step-number, .cert-numbered li::before {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-bottom: 6px;
  border-radius: 50%;
  background: #ffdf65;
  font-size: 12px;
  font-weight: 850;
}
.cert-page .cert-subheading { margin-top: 22px; font-size: 23px; }
.cert-factors, .cert-support { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.cert-numbered:not(.cert-support) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cert-numbered { counter-reset: cert-step; }
.cert-numbered li::before { counter-increment: cert-step; content: counter(cert-step, decimal-leading-zero); }
.cert-steps p, .cert-factors p, .cert-numbered p { margin-top: 4px; color: var(--cert-muted); font-size: 14px; }

.cert-questions { max-width: 850px; }
.cert-questions h2 { margin-bottom: 16px; }
.cert-questions details { border: 1px solid var(--cert-line); background: var(--cert-paper); }
.cert-questions details[open] { background: #fff4d7; }
.cert-questions details p { margin-top: 8px; }
.cert-cta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  border-radius: 24px;
  overflow: hidden;
  background: #ffe88c;
}
.cert-cta > div { padding: clamp(18px, 3vw, 36px); }
.cert-cta p:not(.eyebrow) { margin: 9px 0 18px; }
.cert-cta img { width: 100%; height: 100%; min-height: 190px; object-fit: cover; object-position: 76% center; }

.cert-dialog {
  width: min(94vw, 900px);
  max-height: 90dvh;
  padding: 0;
  border: 1px solid var(--cert-line);
  border-radius: 18px;
  background: #f5eee2;
  color: var(--cert-ink);
}
.cert-dialog::backdrop { background: #0a241bd9; }
.cert-dialog-toolbar {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  gap: 8px 16px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--cert-line);
  background: var(--cert-paper);
}
.cert-dialog-toolbar h2 { margin: 0 auto 0 0; font-size: clamp(15px, 2.2vw, 23px); letter-spacing: -.015em; }
.cert-dialog-toolbar a { flex: none; font-size: 13px; }
.cert-dialog-toolbar button { width: 44px; height: 44px; border: 0; border-radius: 50%; background: #ffe68a; color: inherit; font-size: 26px; cursor: pointer; }
.cert-dialog-document img { display: block; width: 100%; height: auto; }
body:has(.cert-dialog[open]) { overflow: hidden; }

@media (max-width: 980px) {
  .cert-steps, .cert-factors, .cert-support { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .cert-hero { display: block; padding: 24px 20px 0; }
  .cert-hero-copy { max-width: none; }
  .cert-hero picture { position: static; display: block; height: clamp(190px, 54vw, 270px); margin: 14px -20px 0; }
  .cert-hero picture img { object-position: center 48%; }
  .cert-hero::after { content: none; }
  .cert-hero-actions { gap: 14px 18px; }
  .cert-markets, .cert-three-columns, .cert-numbered:not(.cert-support) { grid-template-columns: 1fr; }
  .cert-report img { max-height: 285px; }
  .cert-cta { grid-template-columns: 1fr; }
  .cert-cta img { height: 155px; min-height: 0; }
}
@media (max-width: 480px) {
  .cert-steps, .cert-factors, .cert-support { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cert-market { padding: 12px; }
  .cert-dialog-toolbar { gap: 8px; padding: 8px; }
}
