/* ==========================================================================
   certificates.css - verified certificate pages
   --------------------------------------------------------------------------
   Scoped to /cert/* via layouts/partials/head.html. The certificate stays live
   HTML while using local brand artwork for a more premium proof surface.
   ========================================================================== */

.hd-cert-page {
  --hd-cert-blue: #0b2f9f;
  --hd-cert-ink: #101010;
  --hd-cert-paper: #f2f2f0;
  --hd-cert-muted: #62646f;
  --hd-cert-line: rgba(11, 47, 159, 0.16);
  --hd-cert-cyan: #31c8d9;
  --hd-cert-lilac: #a8a7ff;
  --hd-cert-green: #19ad69;

  background: var(--hd-cert-paper);
  color: var(--hd-cert-ink);
}

.hd-cert-hero {
  --hd-cert-blue-depth: 560px;
  --hd-cert-blue-clearance: 38px;
  --hd-cert-hero-padding-start: 54px;
  --hd-cert-layout-gap: 44px;

  position: relative;
  min-height: 100vh;
  overflow: hidden;
  padding-block: var(--hd-cert-hero-padding-start) 76px;
  background:
    url("/img/certificates/cert-shadow-left.png") left -260px top -360px / 780px auto no-repeat,
    url("/img/certificates/cert-logo-stack.png") right clamp(28px, 8vw, 118px) top 82px / 132px auto no-repeat,
    linear-gradient(115deg, rgba(49, 200, 217, 0.22) 0 20%, transparent 20% 100%),
    linear-gradient(180deg, var(--hd-cert-blue) 0 var(--hd-cert-blue-depth), var(--hd-cert-paper) var(--hd-cert-blue-depth));
}

.hd-cert-hero::before,
.hd-cert-hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.hd-cert-hero::before {
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(242, 242, 240, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(242, 242, 240, 0.08) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: linear-gradient(180deg, #000 0 58%, transparent 86%);
  opacity: 0.72;
}

.hd-cert-hero::after {
  inset-block-start: 106px;
  inset-inline-start: clamp(24px, 7vw, 104px);
  width: 200px;
  aspect-ratio: 1;
  background: url("/img/certificates/cert-white-logo.png") center / contain no-repeat;
  opacity: 0.08;
  transform: rotate(-8deg);
}

.hd-cert-hero > .hd-container {
  position: relative;
  z-index: 1;
}

.hd-cert-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--hd-cert-layout-gap);
  align-items: start;
}

.hd-cert-copy {
  position: relative;
  display: grid;
  align-content: start;
  justify-self: stretch;
  min-height: calc(
    var(--hd-cert-blue-depth) + var(--hd-cert-blue-clearance) -
    var(--hd-cert-hero-padding-start) - var(--hd-cert-layout-gap)
  );
  max-width: 1040px;
  color: var(--hd-cert-paper);
}

.hd-js .hd-cert-copy[data-hd-animate] {
  animation: none;
  opacity: 1;
  transform: none;
}

.hd-cert-eyebrow {
  display: inline-flex;
  width: fit-content;
  margin: 0 0 16px;
  padding: 8px 12px;
  border: 1px solid rgba(242, 242, 240, 0.22);
  border-radius: 999px;
  background: rgba(242, 242, 240, 0.1);
  color: rgba(242, 242, 240, 0.92);
  font-family: var(--hd-font-latin);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  backdrop-filter: blur(18px);
}

.hd-cert-copy h1 {
  max-width: 900px;
  margin: 0;
  color: var(--hd-cert-paper);
  font-size: clamp(44px, 5.4vw, 74px);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: 0;
}

.hd-cert-copy p:not(.hd-cert-eyebrow) {
  max-width: 880px;
  margin: 22px 0 0;
  color: rgba(242, 242, 240, 0.82);
  font-size: 17px;
  line-height: 1.9;
}

.hd-cert-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hd-cert-hero-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid rgba(242, 242, 240, 0.2);
  border-radius: 999px;
  background: rgba(16, 16, 16, 0.18);
  color: rgba(242, 242, 240, 0.9);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
  backdrop-filter: blur(18px);
}

.hd-cert-hero-meta span[dir="ltr"] {
  font-family: var(--hd-font-latin);
  letter-spacing: 0.04em;
}

.hd-cert-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hd-cert-copy .hd-button {
  border: 1px solid rgba(242, 242, 240, 0.86);
  background-color: var(--hd-cert-paper);
  color: var(--hd-cert-blue);
  box-shadow: 0 20px 50px rgba(3, 11, 41, 0.18);
}

.hd-cert-copy .hd-button:hover {
  background-color: #fff;
  color: var(--hd-cert-blue);
  box-shadow: 0 24px 56px rgba(3, 11, 41, 0.24);
  transform: translateY(-1px);
}

.hd-cert-copy .hd-cert-linkedin-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-color: rgba(242, 242, 240, 0.26);
  background: rgba(242, 242, 240, 0.1);
  color: var(--hd-cert-paper);
  backdrop-filter: blur(18px);
}

.hd-cert-copy .hd-cert-linkedin-button:hover {
  border-color: rgba(242, 242, 240, 0.4);
  background: rgba(242, 242, 240, 0.18);
  color: var(--hd-cert-paper);
}

.hd-cert-linkedin-button span {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 5px;
  background: var(--hd-cert-paper);
  color: var(--hd-cert-blue);
  font-family: var(--hd-font-latin);
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  text-transform: none;
}

.hd-cert-proof-shell {
  position: relative;
  isolation: isolate;
  width: min(100%, 1120px);
  justify-self: center;
  margin-top: 0;
  padding: 18px;
  border: 1px solid rgba(242, 242, 240, 0.28);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(242, 242, 240, 0.22), rgba(242, 242, 240, 0.04)),
    #101010;
  box-shadow:
    0 38px 100px rgba(16, 16, 16, 0.24),
    0 12px 34px rgba(11, 47, 159, 0.16);
  overflow: visible;
}

.hd-cert-proof-shell::before,
.hd-cert-proof-shell::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
}

.hd-cert-proof-shell::before {
  inset-inline: 8%;
  inset-block-start: -16px;
  height: 36px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(49, 200, 217, 0.58), rgba(168, 167, 255, 0.48), transparent);
  filter: blur(18px);
}

.hd-cert-proof-shell::after {
  inset-inline-end: -70px;
  inset-block-end: -120px;
  width: 280px;
  aspect-ratio: 1;
  background: url("/img/certificates/cert-arrow-color.png") center / contain no-repeat;
  opacity: 0.2;
  transform: rotate(12deg);
}

.hd-cert-browser {
  overflow: hidden;
  border: 1px solid rgba(242, 242, 240, 0.26);
  border-radius: 20px;
  background: var(--hd-cert-paper);
}

.hd-cert-browser-chrome {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  min-height: 62px;
  padding-inline: 20px;
  border-bottom: 1px solid rgba(242, 242, 240, 0.12);
  background:
    linear-gradient(90deg, rgba(242, 242, 240, 0.08), rgba(242, 242, 240, 0.02)),
    #101010;
}

.hd-cert-window-controls {
  display: flex;
  gap: 8px;
}

.hd-cert-window-controls span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(242, 242, 240, 0.3);
}

.hd-cert-window-controls span:nth-child(1) { background: #ff6b5f; }
.hd-cert-window-controls span:nth-child(2) { background: #f2bf4b; }
.hd-cert-window-controls span:nth-child(3) { background: #42c17b; }

.hd-cert-browser-url {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  min-height: 34px;
  padding-inline: 14px;
  border: 1px solid rgba(242, 242, 240, 0.16);
  border-radius: 999px;
  background: rgba(242, 242, 240, 0.06);
  color: rgba(242, 242, 240, 0.9);
  font-family: var(--hd-font-latin);
  font-size: 12px;
  font-weight: 800;
}

.hd-cert-browser-url svg {
  flex: none;
  width: 15px;
  height: 15px;
}

.hd-cert-browser-url span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hd-cert-card {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: clamp(820px, 76vw, 920px);
  margin: 0;
  padding: clamp(28px, 3.4vw, 46px);
  padding-left: clamp(150px, 13vw, 176px);
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(11, 47, 159, 0.97) 0 118px, transparent 118px),
    linear-gradient(135deg, rgba(49, 200, 217, 0.18) 0 16%, transparent 16.1%),
    linear-gradient(315deg, rgba(11, 47, 159, 0.12) 0 20%, transparent 20.1%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(242, 242, 240, 0.9)),
    var(--hd-cert-paper);
  color: var(--hd-cert-ink);
}

.hd-cert-card::before,
.hd-cert-card::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.hd-cert-card::before {
  inset: clamp(14px, 1.8vw, 22px);
  border: 1px solid rgba(11, 47, 159, 0.18);
  border-inline-start-color: rgba(242, 242, 240, 0.36);
  background-image:
    linear-gradient(rgba(11, 47, 159, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 47, 159, 0.04) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.08) 42%, transparent 74%);
}

.hd-cert-card::after {
  inset-inline-start: 32px;
  inset-block-end: 34px;
  width: clamp(76px, 8vw, 112px);
  aspect-ratio: 1;
  background: url("/img/certificates/cert-logo-stack.png") center / contain no-repeat;
  opacity: 0.34;
}

.hd-cert-card-header,
.hd-cert-card-main,
.hd-cert-card-footer {
  position: relative;
  z-index: 1;
}

.hd-cert-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.hd-cert-brand {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 58px;
}

.hd-cert-brand img {
  width: 62px;
  height: 62px;
  border: 1px solid rgba(242, 242, 240, 0.26);
  border-radius: 18px;
  box-shadow:
    0 18px 42px rgba(3, 11, 41, 0.22),
    inset 0 1px 0 rgba(242, 242, 240, 0.18);
}

.hd-cert-brand strong {
  display: block;
  color: var(--hd-cert-ink);
  font-family: var(--hd-font-latin);
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
}

.hd-cert-brand span {
  display: block;
  margin-top: 6px;
  color: rgba(16, 16, 16, 0.55);
  font-size: 12px;
  font-weight: 800;
}

.hd-cert-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid rgba(25, 173, 105, 0.28);
  border-radius: 999px;
  background: rgba(235, 255, 245, 0.86);
  color: #12693f;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
  box-shadow: 0 14px 34px rgba(25, 173, 105, 0.14);
  backdrop-filter: blur(16px);
}

.hd-cert-status span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--hd-cert-green);
  box-shadow: 0 0 0 5px rgba(25, 173, 105, 0.16);
}

.hd-cert-card-main {
  align-self: center;
  display: grid;
  gap: clamp(12px, 1.15vw, 15px);
  margin-top: 22px;
}

.hd-cert-title-block p {
  display: inline-flex;
  width: fit-content;
  margin: 0;
  padding: 7px 10px;
  border: 1px solid rgba(11, 47, 159, 0.18);
  border-radius: 999px;
  background: rgba(11, 47, 159, 0.07);
  color: var(--hd-cert-blue);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.3;
}

.hd-cert-title-block h2 {
  max-width: 780px;
  margin: 12px 0 0;
  color: var(--hd-cert-ink);
  font-size: clamp(48px, 5.7vw, 76px);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: 0;
}

.hd-cert-title-block span {
  display: block;
  margin-top: 10px;
  color: rgba(16, 16, 16, 0.5);
  font-family: var(--hd-font-latin);
  font-size: 16px;
  font-weight: 800;
  text-align: right;
}

.hd-cert-statement {
  max-width: 820px;
  margin: 0;
  padding: 18px 20px;
  border: 1px solid rgba(16, 16, 16, 0.08);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.38)),
    rgba(255, 255, 255, 0.46);
  color: rgba(16, 16, 16, 0.74);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.78;
  box-shadow:
    0 18px 50px rgba(11, 47, 159, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.74);
  backdrop-filter: blur(18px);
}

.hd-cert-validation-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(100%, 820px);
  padding: 13px 16px;
  border: 1px solid rgba(11, 47, 159, 0.2);
  border-radius: 16px;
  background:
    linear-gradient(90deg, rgba(11, 47, 159, 0.1), rgba(49, 200, 217, 0.09)),
    rgba(255, 255, 255, 0.62);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.hd-cert-validation-strip span {
  color: var(--hd-cert-blue);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.hd-cert-validation-strip strong {
  min-width: 0;
  overflow: hidden;
  color: rgba(16, 16, 16, 0.72);
  font-family: var(--hd-font-latin);
  font-size: 12px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hd-cert-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 0;
}

.hd-cert-facts div,
.hd-cert-project {
  border: 1px solid rgba(11, 47, 159, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.6);
  box-shadow:
    0 14px 34px rgba(11, 47, 159, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(16px);
}

.hd-cert-facts div {
  min-width: 0;
  padding: 13px 14px;
}

.hd-cert-facts dt,
.hd-cert-project span,
.hd-cert-code span {
  color: rgba(16, 16, 16, 0.52);
  font-size: 11px;
  font-weight: 900;
}

.hd-cert-facts dd {
  margin: 6px 0 0;
  color: var(--hd-cert-ink);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.45;
}

.hd-cert-project {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
}

.hd-cert-project strong {
  color: var(--hd-cert-blue);
  font-size: 17px;
  font-weight: 900;
  line-height: 1.4;
}

.hd-cert-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 0;
}

.hd-cert-skills span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 6px 11px;
  border: 1px solid rgba(11, 47, 159, 0.18);
  border-radius: 999px;
  background: rgba(11, 47, 159, 0.08);
  color: var(--hd-cert-blue);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.3;
}

.hd-cert-card-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
  margin-top: 22px;
  padding-block-start: 18px;
  border-top: 1px solid rgba(11, 47, 159, 0.18);
}

.hd-cert-code strong {
  display: block;
  margin-top: 5px;
  color: var(--hd-cert-ink);
  font-family: var(--hd-font-latin);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.hd-cert-signatures {
  display: flex;
  gap: 24px;
}

.hd-cert-signatures div {
  min-width: 142px;
  padding-top: 9px;
  border-top: 2px solid rgba(11, 47, 159, 0.82);
}

.hd-cert-signatures strong {
  display: block;
  color: var(--hd-cert-ink);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.4;
}

.hd-cert-signatures span {
  display: block;
  margin-top: 2px;
  color: rgba(16, 16, 16, 0.56);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.4;
}

.hd-cert-context {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 1px;
  width: min(100%, 1120px);
  justify-self: center;
  overflow: hidden;
  border: 1px solid rgba(16, 16, 16, 0.1);
  border-radius: 8px;
  background: rgba(16, 16, 16, 0.14);
  box-shadow: 0 26px 70px rgba(16, 16, 16, 0.12);
}

.hd-cert-context-main,
.hd-cert-teachers {
  min-width: 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(242, 242, 240, 0.88)),
    var(--hd-cert-paper);
}

.hd-cert-context-main {
  display: grid;
  grid-template-columns: minmax(180px, 0.38fr) minmax(0, 1fr);
}

.hd-cert-context-kicker {
  display: grid;
  align-content: space-between;
  gap: 28px;
  padding: 22px;
  background:
    linear-gradient(180deg, rgba(11, 47, 159, 0.96), rgba(7, 30, 99, 0.98)),
    var(--hd-cert-blue);
  color: var(--hd-cert-paper);
}

.hd-cert-context-kicker span {
  color: rgba(242, 242, 240, 0.72);
  font-family: var(--hd-font-latin);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1.35;
  text-transform: uppercase;
}

.hd-cert-context-kicker strong {
  color: var(--hd-cert-paper);
  font-size: 19px;
  font-weight: 900;
  line-height: 1.35;
}

.hd-cert-context-topics {
  padding: 22px 24px;
}

.hd-cert-context-topics h2 {
  margin: 0;
  color: var(--hd-cert-ink);
  font-size: 20px;
  font-weight: 900;
  line-height: 1.35;
}

.hd-cert-context-topics ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 18px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.hd-cert-context-topics li {
  position: relative;
  min-width: 0;
  padding-inline-start: 16px;
  color: rgba(16, 16, 16, 0.72);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.75;
}

.hd-cert-context-topics li::before {
  content: "";
  position: absolute;
  inset-block-start: 0.82em;
  inset-inline-start: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--hd-cert-blue);
  box-shadow: 0 0 0 4px rgba(11, 47, 159, 0.1);
}

.hd-cert-context-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.hd-cert-context-links a,
.hd-cert-teachers-head a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid rgba(11, 47, 159, 0.18);
  border-radius: 8px;
  background: rgba(11, 47, 159, 0.08);
  color: var(--hd-cert-blue);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.3;
  text-decoration: none;
  transition:
    background-color var(--hd-transition-duration-fast),
    border-color var(--hd-transition-duration-fast),
    transform var(--hd-transition-duration-fast);
}

.hd-cert-context-links a:hover,
.hd-cert-teachers-head a:hover {
  border-color: rgba(11, 47, 159, 0.34);
  background: rgba(11, 47, 159, 0.12);
  transform: translateY(-1px);
}

.hd-cert-teachers {
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 22px;
}

.hd-cert-teachers-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.hd-cert-teachers-head span {
  color: rgba(16, 16, 16, 0.52);
  font-size: 12px;
  font-weight: 900;
}

.hd-cert-teacher-list {
  display: grid;
  gap: 10px;
}

.hd-cert-teacher {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-width: 0;
  padding-block: 2px;
}

.hd-cert-teacher img {
  width: 46px;
  height: 46px;
  border: 1px solid rgba(11, 47, 159, 0.16);
  border-radius: 50%;
  object-fit: cover;
  background: rgba(11, 47, 159, 0.08);
}

.hd-cert-teacher strong {
  display: block;
  color: var(--hd-cert-ink);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.45;
}

.hd-cert-teacher span {
  display: block;
  margin-top: 2px;
  color: rgba(16, 16, 16, 0.56);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.55;
}

.hd-cert-list {
  min-height: 100vh;
  background:
    url("/img/certificates/cert-shadow-left.png") left -300px top -420px / 820px auto no-repeat,
    linear-gradient(180deg, rgba(11, 47, 159, 0.06), transparent 360px),
    var(--hd-cert-paper);
}

.hd-cert-list-header {
  max-width: 760px;
}

.hd-cert-list-header .hd-cert-eyebrow {
  border-color: rgba(11, 47, 159, 0.16);
  background: rgba(11, 47, 159, 0.08);
  color: var(--hd-cert-blue);
}

.hd-cert-list-header h1 {
  color: var(--hd-cert-ink);
}

.hd-cert-list-header p {
  color: var(--hd-cert-muted);
}

.hd-cert-list-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 34px;
}

.hd-cert-list-card {
  position: relative;
  display: grid;
  gap: 8px;
  min-height: 164px;
  overflow: hidden;
  padding: 22px;
  border: 1px solid rgba(11, 47, 159, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 16px 50px rgba(16, 16, 16, 0.06);
  text-decoration: none;
  transition:
    transform var(--hd-transition-duration-fast),
    box-shadow var(--hd-transition-duration-fast),
    border-color var(--hd-transition-duration-fast);
}

.hd-cert-list-card::after {
  content: "";
  position: absolute;
  inset-inline-start: -42px;
  inset-block-end: -84px;
  width: 150px;
  aspect-ratio: 0.63;
  background: url("/img/certificates/cert-logo-stack.png") center / contain no-repeat;
  opacity: 0.08;
}

.hd-cert-list-card:hover {
  border-color: rgba(11, 47, 159, 0.48);
  box-shadow: 0 22px 60px rgba(11, 47, 159, 0.12);
  transform: translateY(-2px);
}

.hd-cert-list-card span {
  color: var(--hd-cert-blue);
  font-family: var(--hd-font-latin);
  font-size: 13px;
  font-weight: 900;
}

.hd-cert-list-card strong {
  color: var(--hd-cert-ink);
  font-size: 24px;
  font-weight: 900;
}

.hd-cert-list-card em {
  color: var(--hd-cert-muted);
  font-size: 15px;
  font-style: normal;
  line-height: 1.6;
}

@media screen and (max-width: 991px) {
  .hd-cert-hero {
    --hd-cert-blue-depth: 520px;
    --hd-cert-blue-clearance: 30px;
    --hd-cert-hero-padding-start: 46px;
    --hd-cert-layout-gap: 36px;

    background:
      url("/img/certificates/cert-shadow-left.png") left -320px top -420px / 760px auto no-repeat,
      url("/img/certificates/cert-logo-stack.png") right 24px top 78px / 104px auto no-repeat,
      linear-gradient(115deg, rgba(49, 200, 217, 0.2) 0 22%, transparent 22% 100%),
      linear-gradient(180deg, var(--hd-cert-blue) 0 var(--hd-cert-blue-depth), var(--hd-cert-paper) var(--hd-cert-blue-depth));
  }

  .hd-cert-copy {
    max-width: none;
  }

  .hd-cert-card {
    aspect-ratio: auto;
    min-height: 0;
    padding-left: clamp(136px, 18vw, 176px);
  }

  .hd-cert-card-header,
  .hd-cert-card-main,
  .hd-cert-card-footer {
    padding-left: 0;
  }

  .hd-cert-facts,
  .hd-cert-list-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hd-cert-context,
  .hd-cert-context-main {
    grid-template-columns: 1fr;
  }

  .hd-cert-context-kicker {
    gap: 8px;
  }
}

@media screen and (max-width: 767px) {
  .hd-cert-hero {
    --hd-cert-blue-depth: 620px;
    --hd-cert-blue-clearance: 24px;
    --hd-cert-hero-padding-start: 32px;
    --hd-cert-layout-gap: 28px;

    padding-block: var(--hd-cert-hero-padding-start) 40px;
    background:
      url("/img/certificates/cert-shadow-left.png") left -360px top -480px / 700px auto no-repeat,
      linear-gradient(115deg, rgba(49, 200, 217, 0.18) 0 34%, transparent 34% 100%),
      linear-gradient(180deg, var(--hd-cert-blue) 0 var(--hd-cert-blue-depth), var(--hd-cert-paper) var(--hd-cert-blue-depth));
  }

  .hd-cert-hero::after {
    inset-block-start: 78px;
    inset-inline-start: 16px;
    width: 120px;
  }

  .hd-cert-copy h1 {
    font-size: clamp(36px, 11vw, 46px);
    line-height: 1.12;
  }

  .hd-cert-copy p:not(.hd-cert-eyebrow) {
    font-size: 15px;
    line-height: 1.9;
  }

  .hd-cert-hero-meta {
    gap: 8px;
  }

  .hd-cert-hero-meta span {
    flex: 1 1 calc(50% - 8px);
    justify-content: center;
    text-align: center;
  }

  .hd-cert-hero-meta span[dir="ltr"] {
    flex-basis: 100%;
  }

  .hd-cert-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hd-cert-actions .hd-button {
    width: 100%;
  }

  .hd-cert-proof-shell {
    padding: 10px;
    border-radius: 20px;
  }

  .hd-cert-proof-shell::after {
    display: none;
  }

  .hd-cert-browser {
    border-radius: 16px;
  }

  .hd-cert-browser-chrome {
    grid-template-columns: 1fr;
    min-height: 58px;
    padding-inline: 12px;
  }

  .hd-cert-window-controls {
    display: none;
  }

  .hd-cert-card {
    min-height: auto;
    padding: 104px 22px 24px;
    background:
      linear-gradient(180deg, rgba(11, 47, 159, 0.98) 0 78px, transparent 78px),
      linear-gradient(135deg, rgba(49, 200, 217, 0.16) 0 24%, transparent 24.1%),
      linear-gradient(315deg, rgba(11, 47, 159, 0.1) 0 20%, transparent 20.1%),
      var(--hd-cert-paper);
  }

  .hd-cert-card::before {
    inset: 12px;
    border-inline-start-color: rgba(11, 47, 159, 0.18);
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.18), transparent 70%);
  }

  .hd-cert-card::after {
    inset-inline-start: 22px;
    inset-block-start: 18px;
    inset-block-end: auto;
    width: 48px;
    opacity: 0.5;
  }

  .hd-cert-card-header,
  .hd-cert-card-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .hd-cert-brand {
    align-items: flex-start;
  }

  .hd-cert-brand img {
    position: static;
    width: 48px;
    height: 48px;
  }

  .hd-cert-title-block h2 {
    font-size: clamp(34px, 11.5vw, 46px);
  }

  .hd-cert-card-main {
    gap: 10px;
    margin-top: 16px;
  }

  .hd-cert-statement {
    font-size: 15px;
    line-height: 1.65;
    padding: 16px;
  }

  .hd-cert-validation-strip {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .hd-cert-facts,
  .hd-cert-list-grid {
    grid-template-columns: 1fr;
  }

  .hd-cert-signatures {
    width: 100%;
    flex-direction: column;
    gap: 18px;
  }

  .hd-cert-context-topics,
  .hd-cert-teachers,
  .hd-cert-context-kicker {
    padding: 18px;
  }

  .hd-cert-context-topics ul {
    grid-template-columns: 1fr;
  }

  .hd-cert-teachers-head {
    align-items: flex-start;
    flex-direction: column;
  }
}
