.ti-badge-page { width: calc(100% - 72px); max-width: 1140px; margin: 0 auto; padding: 50px 0 64px; }
.ti-badge-intro { margin-bottom: 26px; }
.ti-badge-intro h1 { font: 400 53px/1.15 var(--serif); margin: 12px 0 20px; }
.ti-badge-page h2 { font: 400 34px/1.2 var(--serif); }
.ti-badge-intro > p:last-child { max-width: 66ch; }
.ti-badge-intro h1, .ti-badge-band h2, .ti-badge-program h2 { overflow-wrap: break-word; text-wrap: balance; }
.ti-badge-form { background: #f7f0e7; border: 1px solid #e5d5c6; border-top: 3px solid #936443; border-radius: 5px; padding: 25px 30px; margin-bottom: 48px; }
.ti-badge-form label { display: block; font-size: 19px; font-weight: 700; }
.ti-badge-field-note { margin: 6px 0 12px; }
.ti-badge-form input:not([type=hidden]) { display: block; width: 100%; max-width: 400px; min-height: 52px; padding: 10px 13px; margin-bottom: 14px; border: 1px solid #a7907d; border-radius: 5px; font: inherit; font-variant-numeric: tabular-nums; }
.ti-badge-form input[aria-invalid=true] { border-color: #a94037; }
.ti-badge-form .ti-badge-error { color: #8f2c27; font-weight: 700; margin: 10px 0 18px; }
.ti-badge-band { position: relative; isolation: isolate; overflow: hidden; border: 1px solid #936443; border-radius: 5px; padding: 26px 30px 46px; color: #fff5e9; background: #29252b; }
.ti-badge-band > .institutional-waves { height: 40px; bottom: 0; }
.ti-badge-band h2, .ti-badge-band p { position: relative; color: inherit; margin: 0; }
.ti-badge-band p { margin-top: 8px; }
.ti-badge-form-actions {
  display: flex;
  flex-direction: var(--ti-badge-action-direction, row);
  align-items: var(--ti-badge-action-alignment, center);
  margin-top: 18px;
}
.ti-badge-form-actions > .button {
  flex: 0 0 auto;
  max-width: var(--ti-badge-button-width, 55%);
  margin: 0;
}
.ti-badge-form-actions > .text-link {
  min-width: 0;
  max-width: 100%;
  margin: var(--ti-badge-link-margin, 0 0 0 20px);
  overflow-wrap: break-word;
}
.ti-site.cw-max580 .ti-badge-form-actions {
  --ti-badge-action-direction: column;
  --ti-badge-action-alignment: flex-start;
  --ti-badge-button-width: 100%;
  --ti-badge-link-margin: 10px 0 0;
}
@media (max-width: 580px) {
  .ti-badge-form-actions {
    --ti-badge-action-direction: column;
    --ti-badge-action-alignment: flex-start;
    --ti-badge-button-width: 100%;
    --ti-badge-link-margin: 10px 0 0;
  }
}

/* Issued credentials follow the order of the original public badge page. */
.ti-badge-page.ti-badge-issued { max-width: 1360px; }
.ti-badge-result {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr) auto;
  align-items: start;
  gap: 18px 24px;
  padding: 30px;
  margin-bottom: 32px;
  border: 1px solid #dfc9b2;
  border-top: 3px solid #a56e43;
  border-radius: 8px;
  background: linear-gradient(120deg, #faf4ea, #fff 68%);
  box-shadow: 0 18px 36px -24px #48312360;
}
.ti-badge-holder { grid-column: 1 / 3; display: flex; align-items: center; min-width: 0; }
.ti-badge-holder > img {
  flex: 0 0 84px;
  width: 84px;
  height: 84px;
  margin-right: 24px;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid #d9c0a9;
  box-shadow: 0 8px 22px #3d2b1928;
}
.ti-badge-holder .eyebrow { margin: 0 0 3px; color: #795033; }
.ti-badge-recipient { font: 400 clamp(26px, 3vw, 40px)/1.15 var(--serif); overflow-wrap: break-word; }
.ti-badge-recipient strong { font-weight: inherit; }
.ti-badge-issued-on { margin-top: 5px; color: var(--muted); }
.ti-badge-result > .button { grid-column: 3; grid-row: 1; align-self: center; max-width: 100%; margin: 0; }
.ti-badge-sharing {
  grid-column: 2 / -1;
  padding-top: 16px;
  border-top: 1px solid #e4d5c7;
}
.ti-badge-sharing h2 { margin: 0 0 4px; font: 700 20px/1.3 var(--sans); letter-spacing: 0; }
.ti-badge-sharing p { color: var(--muted); }
.ti-badge-sharing .ti-share { margin: 12px 0 -10px; text-align: left; }
.ti-badge-sharing .ti-share-intro:empty { display: none; }
.ti-badge-sharing .ti-share-actions { display: flex; justify-content: flex-start; }
.ti-badge-sharing .ti-share-network { margin: 0 8px 10px 0; max-width: 100%; }
.ti-badge-static-verification { grid-column: 2 / -1; }
.ti-badge-static-verification summary { cursor: pointer; font-weight: 700; }

.ti-badge-profile {
  display: grid;
  grid-template-columns: minmax(0, 43fr) minmax(0, 57fr);
  align-items: start;
  gap: 32px;
  padding: 34px 0 40px;
  border-top: 1px solid #e4d5c7;
}
.ti-badge-art {
  min-width: 0;
  margin: 0;
  padding: 20px;
  text-align: center;
  border: 1px solid #e5d5c6;
  border-radius: 8px;
  background: linear-gradient(#fffdfa, #f7f0e7);
}
.ti-badge-art img, .ti-badge-list img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto;
  filter: drop-shadow(0 10px 10px #49311f38);
  transition: transform .2s, filter .2s;
}
@media (hover: hover) {
  .ti-badge-art a:hover img, .ti-badge-list a:hover img {
    transform: translateY(-3px);
    filter: drop-shadow(0 15px 13px #49311f50);
  }
}
.ti-badge-art dl { margin: 20px 0 8px; text-align: left; }
.ti-badge-art dl > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 12px; padding: 8px 0; border-bottom: 1px solid #e4d5c7; }
.ti-badge-art dt, .ti-badge-dialog-facts dt { font-weight: 700; }
.ti-badge-art dd, .ti-badge-dialog-facts dd { margin: 0; overflow-wrap: break-word; }
.ti-badge-program h1 {
  margin: 0 0 12px;
  font: 400 clamp(32px, 4vw, 55px)/1.1 var(--serif);
  overflow-wrap: break-word;
  text-wrap: balance;
}
.ti-badge-program h3 { margin: 24px 0 10px; font-weight: 700; }
.ti-badge-program p, .ti-badge-program li { max-width: 70ch; }
.ti-badge-program p { margin: 0 0 14px; }
.ti-badge-program li + li { margin-top: 12px; }

.ti-badge-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 390px));
  gap: 16px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}
.ti-badge-list a {
  display: block;
  height: 100%;
  padding: 16px;
  text-decoration: none;
  border: 1px solid #e5d5c6;
  border-radius: 6px;
}
.ti-badge-list strong, .ti-badge-list span { display: block; overflow-wrap: break-word; }
.ti-badge-list strong { margin-top: 14px; }
.ti-badge-list span { margin-top: 4px; color: var(--muted); }

.ti-badge-issued > .ti-training-entry { margin: 34px 0 0; }
.ti-badge-issued > .ti-training-entry p { margin-bottom: 16px; }
.ti-badge-issued .ti-training-entry .button { flex: 1 1 230px; justify-content: space-between; min-width: 0; }

.ti-badge-dialog:not([open]) { display: none; }
body.ti-site .ti-badge-dialog[open] {
  position: fixed;
  z-index: 18000;
  height: auto;
  min-height: 0;
  max-width: 650px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  overflow: visible;
}
.ti-badge-dialog-panel {
  position: relative;
  width: 100%;
  max-height: calc(var(--site-host-height, 100vh) - 24px);
  padding: 26px 30px;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid #d5b99f;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 58px #231b2259;
}
.ti-badge-overlay { position: fixed; z-index: 17999; }
body.ti-badge-modal-open { overflow: hidden; }
.ti-badge-dialog .modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #e5d9cb;
  border-radius: 50%;
  background: #fff;
  color: #77695f;
  font-size: 25px;
  line-height: 1;
}
.ti-badge-dialog .modal-close:hover { background: #f7f0e7; }
.ti-badge-dialog .eyebrow { padding-right: 44px; margin-bottom: 8px; }
.ti-badge-dialog h2 { padding-right: 36px; margin: 0 0 15px; font: 400 36px/1.1 var(--serif); }
.ti-badge-dialog-facts { margin: 0; }
.ti-badge-dialog-facts > div {
  display: grid;
  grid-template-columns: minmax(110px, 1fr) minmax(0, 2fr);
  align-items: baseline;
  gap: 2px 16px;
  padding: 10px 0;
  border-top: 1px solid #e6d9ce;
}
.ti-badge-dialog [data-badge-step] {
  grid-template-columns: 32px minmax(110px, 1fr) minmax(0, 2fr);
  align-items: center;
}
.ti-badge-dialog [data-badge-step] dd { visibility: hidden; }
.ti-badge-dialog .is-verified dd { visibility: visible; animation: ti-badge-reveal .24s ease-out; }
.ti-badge-check {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid #dfc7af;
  border-radius: 50%;
  background: #f9f1e8;
  color: #815231;
}
.ti-badge-check svg { display: block; fill: none; stroke: currentColor; }
.ti-badge-check-track, .ti-badge-check-arc { stroke-width: 1.8; }
.ti-badge-check-track { opacity: .25; }
.ti-badge-check-arc { stroke-dasharray: 18 36; stroke-linecap: round; }
.ti-badge-check-tick { display: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.ti-badge-dialog[open] [data-badge-step]:not(.is-verified) .ti-badge-check svg { animation: ti-badge-progress .85s linear infinite; }
.ti-badge-dialog .is-verified .ti-badge-check {
  border-color: #d7b391;
  background: #f5e5d2;
  animation: ti-badge-check-settle .28s ease-out;
}
.ti-badge-dialog .is-verified .ti-badge-check circle { display: none; }
.ti-badge-dialog .is-verified .ti-badge-check-tick {
  display: block;
  stroke-dasharray: 1;
  animation: ti-badge-check-draw .24s ease-out;
}
.ti-badge-dialog-facts > div:last-child dd { color: #276044; font-weight: 700; }
.ti-badge-dialog [data-badge-step].is-verified:last-child .ti-badge-check {
  border-color: #a8cbb4;
  background: #e3f3e9;
  color: #276044;
}

@keyframes ti-badge-progress { to { transform: rotate(360deg); } }
@keyframes ti-badge-reveal { from { transform: translateX(4px); } to { transform: translateX(0); } }
@keyframes ti-badge-check-settle { 50% { transform: scale(1.12); } }
@keyframes ti-badge-check-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

.ti-site.cw-max800 .ti-badge-profile { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 24px; }
.ti-site.cw-max800 .ti-badge-art { width: 100%; max-width: 590px; }
@media (max-width: 800px) {
  .ti-badge-page { width: calc(100% - 40px); padding: 36px 0 48px; }
  .ti-badge-intro h1 { font-size: 41px; }
  .ti-badge-profile { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 24px; }
  .ti-badge-art { width: 100%; max-width: 590px; }
}
@media (max-width: 580px) {
  .ti-badge-page { width: calc(100% - 32px); padding-top: 26px; }
  .ti-badge-intro h1 { font-size: 36px; }
  .ti-badge-band h2 { font-size: 29px; }
  .ti-badge-result { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 16px; margin-bottom: 24px; }
  .ti-badge-holder, .ti-badge-result > .button, .ti-badge-sharing, .ti-badge-static-verification { grid-column: 1; grid-row: auto; }
  .ti-badge-result > .button { justify-self: start; }
  .ti-badge-holder > img { flex-basis: 55px; width: 55px; height: 55px; margin-right: 12px; }
  .ti-badge-art, .ti-badge-form, .ti-badge-band, .ti-badge-dialog-panel, .ti-badge-issued > .ti-training-entry { padding-left: 15px; padding-right: 15px; }
  .ti-badge-list { grid-template-columns: minmax(0, 1fr); }
  .ti-badge-issued .ti-training-entry .button { flex: 0 0 auto; width: 100%; }
  .ti-badge-dialog h2 { font-size: 30px; }
  .ti-badge-dialog-facts > div { grid-template-columns: minmax(0, 1fr); }
  .ti-badge-dialog [data-badge-step] { grid-template-columns: 30px minmax(0, 1fr); gap: 2px 12px; }
  .ti-badge-dialog .ti-badge-check { grid-row: span 2; width: 30px; height: 30px; }
  .ti-badge-dialog [data-badge-step] dd { grid-column: 2; }
}
