.cert-page {
  background: var(--paper, #f7f8f3);
  color: var(--ink, #152f29);
}

.cert-page [hidden] { display: none; }

.cert-hero {
  overflow: hidden;
  background: var(--sage);
  border-bottom: 1px solid var(--line);
}

.cert-hero-inner {
  position: relative;
  isolation: isolate;
  padding-block: 20px 48px;
}

.cert-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin-bottom: 21px;
  color: var(--muted, #53675e);
  font-size: .875rem;
}

.cert-breadcrumb a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--green, #146650);
}

.cert-hero h1 {
  margin: 0;
  font: 750 clamp(2.25rem, 4.4vw, 3.625rem)/1.25 var(--sans, sans-serif);
  letter-spacing: .025em;
}

.cert-intro {
  max-width: 32em;
  margin: 15px 0 0;
  color: var(--muted, #53675e);
  line-height: 1.65;
}

.cert-hero-art {
  position: absolute;
  z-index: -1;
  top: 50%;
  right: 3%;
  width: clamp(250px, 32vw, 380px);
  height: auto;
  transform: translateY(-50%);
  pointer-events: none;
}

.cert-content { padding-block: clamp(26px, 5vw, 58px) clamp(45px, 7vw, 80px); }

.cert-channels { margin-bottom: clamp(26px, 4vw, 42px); }
.cert-channels h2 { margin-bottom: 14px; font-size: 1.55rem; }
.cert-channels > p { margin-top: 12px; color: var(--muted); }
.cert-inline-link { color: var(--green); text-decoration: underline; text-underline-offset: .2em; }

.cert-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(20px, 3vw, 36px);
}

.cert-card, .cert-example, .cert-help {
  padding: clamp(21px, 3.2vw, 38px);
  border: 1px solid var(--line, #dae4d9);
  border-radius: var(--radius, 8px);
}

.cert-card {
  background: #fff;
}

.cert-query-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 26px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line, #dae4d9);
}

.cert-query h2, .cert-aside h2 {
  margin: 0;
  color: var(--ink, #152f29);
  line-height: 1.35;
}

.cert-query h2 { font: 700 clamp(1.35rem, 3vw, 1.8rem)/1.35 var(--sans, sans-serif); }

.cert-query-header p, .cert-aside p {
  margin: 7px 0 0;
  color: var(--muted, #53675e);
  line-height: 1.65;
}

.cert-demo-pill {
  flex: none;
  padding: 4px 11px;
  background: #edf5e8;
  border: 1px solid #dce9d8;
  border-radius: 999px;
  color: #325c41;
  font-size: .8125rem;
  font-weight: 700;
}

.cert-field + .cert-field { margin-top: 17px; }

.cert-field label {
  display: block;
  margin-bottom: 7px;
  font-size: .9375rem;
  font-weight: 700;
}

.cert-field input {
  box-sizing: border-box;
  width: 100%;
  min-height: 52px;
  padding: 11px 14px;
  border: 1px solid #839d90;
  border-radius: var(--radius, 8px);
  background: #fbfcfa;
  color: var(--ink, #152f29);
  font: inherit;
  font-size: 1rem;
}

.cert-field input::placeholder { color: #586b60; }
.cert-field input[aria-invalid="true"] { border: 2px solid var(--deep); }

.cert-field-error {
  margin: 0;
  color: var(--deep);
  font-size: .875rem;
  line-height: 1.5;
}

.cert-field-error:not(:empty) { margin-top: 7px; }

.cert-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 23px;
}

.cert-primary, .cert-reset, .cert-example-button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 17px;
  border: 1px solid transparent;
  border-radius: var(--radius, 8px);
  font: inherit;
  font-size: .9375rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color .18s, border-color .18s;
}

.cert-primary { background: var(--green, #146650); color: #fff; }
.cert-primary:hover { background: #0e503e; }
.cert-reset { border-color: #a9b9ad; background: #fff; color: var(--ink, #152f29); }
.cert-reset:hover { background: #eef4ec; }

.cert-aside { display: grid; gap: 16px; }
.cert-aside h2 { font-size: 1.12rem; }
.cert-example { background: #e9f2e6; border-color: #d4e3d2; }
.cert-example-top { display: flex; align-items: center; gap: 11px; }

.cert-example-icon {
  display: grid;
  width: 40px;
  height: 40px;
  flex: none;
  place-items: center;
  background: #d8e9d9;
  color: var(--green, #146650);
  border-radius: var(--radius, 8px);
}

.cert-sample-values {
  display: grid;
  gap: 6px;
  margin: 16px 0 0;
  padding: 12px 14px;
  border: 1px solid #d4e3d2;
  border-radius: var(--radius, 8px);
  background: #f7faf4;
}

.cert-sample-values div { display: flex; flex-wrap: wrap; gap: 2px 10px; justify-content: space-between; }
.cert-sample-values dt, .cert-result-details dt { color: var(--muted, #53675e); font-size: .875rem; }
.cert-sample-values dd, .cert-result-details dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.cert-sample-values dd { font-size: .9375rem; }

.cert-example-button {
  margin-top: 13px;
  border-color: #7b9d89;
  background: #f9fcf7;
  color: var(--green, #146650);
}

.cert-example-button:hover { background: #dcebdd; }
.cert-help { padding-block: 18px; background: #fcfdf9; }
.cert-help p { font-size: .9375rem; }

.cert-help a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: 5px;
  margin-top: 2px;
  color: var(--green, #146650);
  font-size: .875rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.cert-page :is(a, button, input):focus-visible {
  outline: 2px solid #146650;
  outline-offset: 3px;
}

.cert-result {
  padding: clamp(15px, 3vw, 23px);
  border: 1px solid #c9dfcd;
  border-radius: var(--radius, 8px);
  background: #f1f8ef;
}

.cert-result[data-status="missing"] { border-color: var(--line); background: var(--sage); }
.cert-results { display: grid; max-width: 820px; gap: 14px; }
.cert-result :is(h2, h3) { margin: 0; font-size: 1.125rem; line-height: 1.4; }
.cert-result p { margin: 4px 0 0; color: var(--muted, #53675e); font-size: .9375rem; line-height: 1.65; }

.cert-result-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 16px;
  margin: 16px 0 0;
  padding-top: 15px;
  border-top: 1px solid #c9dfcd;
}

.cert-result-details:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.cert-result-actions { max-width: 820px; }

.cert-noscript { color: var(--deep); }

@media (max-width: 760px) {
  .cert-grid { grid-template-columns: minmax(0, 1fr); }
  .cert-hero-inner { padding-block: 10px 35px; }
  .cert-hero-art { right: -75px; opacity: .35; }
  .cert-breadcrumb { margin-bottom: 15px; }
}

@media (max-width: 420px) {
  .cert-hero-art { display: none; }
  .cert-primary { flex: 1; }
  .cert-result-details { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .cert-primary, .cert-reset, .cert-example-button { transition: none; }
}

#certificate-status:empty { display: none; }
#certificate-status { color: var(--muted); margin-block: 0.75rem; }
.cert-primary:disabled { opacity: .65; cursor: wait; }
