/**
 * DT10 — COA certificate library (page template).
 */

.dt10-coa-page {
  padding: 34px 0 64px;
}

/* ---------- Hero ---------- */
.dt10-coa-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  padding: 30px 32px;
  border: 1px solid var(--dt10-line, #e6eaf0);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 30, 50, .04);
}
.dt10-coa-hero__copy {
  max-width: 640px;
}
.dt10-coa-kicker {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--dt10-accent, #0a608f);
}
.dt10-coa-hero__title {
  margin: 0 0 10px;
  font-family: var(--display);
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.02em;
  color: var(--dt10-navy, #152420);
}
.dt10-coa-hero__intro {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--dt10-ink, #42504b);
}
.dt10-coa-hero__metrics {
  display: flex;
  gap: 10px;
  margin: 0;
  flex-shrink: 0;
}
.dt10-coa-hero__metrics > div {
  min-width: 104px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--dt10-soft, #f1f5f9);
  text-align: center;
}
.dt10-coa-hero__metrics dt {
  font-family: var(--display);
  font-size: 24px;
  font-weight: 800;
  line-height: 1.1;
  color: var(--dt10-accent, #0a608f);
}
.dt10-coa-hero__metrics dd {
  margin: 4px 0 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #667085;
}

/* ---------- Toolbar ---------- */
.dt10-coa-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 22px 0 20px;
  flex-wrap: wrap;
}
.dt10-coa-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 320px;
  max-width: 480px;
  padding: 0 16px;
  min-height: 46px;
  border: 1px solid var(--dt10-line, #e6eaf0);
  border-radius: 999px;
  background: #fff;
  color: #98a2b3;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.dt10-coa-search:focus-within {
  border-color: var(--dt10-accent, #0a608f);
  box-shadow: 0 0 0 3px rgba(10, 96, 143, .12);
}
.dt10-coa-search svg {
  flex-shrink: 0;
}
.dt10-coa-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 12px 0;
  font: inherit;
  font-size: 14px;
  color: var(--dt10-navy, #152420);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.dt10-coa-search input::-webkit-search-cancel-button {
  cursor: pointer;
}
.dt10-coa-count {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: #667085;
}

/* ---------- Grid ---------- */
.dt10-coa-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(248px, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.dt10-coa-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--dt10-line, #e6eaf0);
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
  transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease;
}
.dt10-coa-card:hover {
  border-color: rgba(10, 96, 143, .3);
  box-shadow: 0 12px 28px rgba(15, 30, 50, .09);
  transform: translateY(-2px);
}
.dt10-coa-card.is-hidden {
  display: none;
}
.dt10-coa-card__preview {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  padding: 12px;
  border: 0;
  border-bottom: 1px solid var(--dt10-line, #e6eaf0);
  background: var(--dt10-product-img-bg, #f6f6f6);
  cursor: zoom-in;
  overflow: hidden;
}
.dt10-coa-card__preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform .25s ease;
}
.dt10-coa-card:hover .dt10-coa-card__preview img {
  transform: scale(1.02);
}
.dt10-coa-card__icon {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: .1em;
  color: #b6c0cc;
}
.dt10-coa-card__badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(21, 36, 32, .82);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
}
.dt10-coa-card__hint {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(10, 96, 143, .92);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .18s ease, transform .18s ease;
}
.dt10-coa-card:hover .dt10-coa-card__hint,
.dt10-coa-card__preview:focus-visible .dt10-coa-card__hint {
  opacity: 1;
  transform: translateY(0);
}
.dt10-coa-card__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px 10px;
  flex: 1 1 auto;
}
.dt10-coa-card__title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--dt10-navy, #152420);
}
.dt10-coa-card__meta {
  margin: 0;
  font-size: 12px;
  color: #667085;
}
.dt10-coa-card__product {
  margin: 2px 0 0;
  font-size: 12px;
  font-weight: 600;
}
.dt10-coa-card__product a {
  color: var(--dt10-accent, #0a608f);
  text-decoration: none;
}
.dt10-coa-card__product a:hover {
  text-decoration: underline;
}
.dt10-coa-card__product span {
  color: #98a2b3;
  font-weight: 500;
}
.dt10-coa-card__actions {
  display: flex;
  gap: 8px;
  padding: 0 16px 16px;
}

/* ---------- Buttons ---------- */
.dt10-coa-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 1 1 0;
  min-height: 40px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.dt10-coa-btn--solid {
  background: var(--dt10-accent, #0a608f);
  border-color: var(--dt10-accent, #0a608f);
  color: #fff;
  box-shadow: 0 6px 14px rgba(10, 96, 143, .2);
}
.dt10-coa-btn--solid:hover {
  filter: brightness(.92);
  box-shadow: 0 8px 18px rgba(10, 96, 143, .28);
  color: #fff;
}
.dt10-coa-btn--ghost {
  background: #fff;
  border-color: rgba(10, 96, 143, .35);
  color: var(--dt10-accent, #0a608f);
}
.dt10-coa-btn--ghost:hover {
  background: rgba(10, 96, 143, .08);
  border-color: var(--dt10-accent, #0a608f);
  color: var(--dt10-accent, #0a608f);
}
.dt10-coa-btn.is-disabled {
  opacity: .45;
  pointer-events: none;
}

/* ---------- Empty states ---------- */
.dt10-coa-empty {
  padding: 44px 28px;
  border: 1px dashed #cfd8e5;
  border-radius: 18px;
  background: #fff;
  text-align: center;
}
.dt10-coa-empty h2 {
  margin: 0 0 8px;
  font-size: 20px;
  color: var(--dt10-navy, #152420);
}
.dt10-coa-empty p {
  margin: 0 0 18px;
  font-size: 14px;
  color: #667085;
}
.dt10-coa-empty .dt10-coa-btn {
  flex: 0 0 auto;
  min-width: 180px;
}
.dt10-coa-empty--filter {
  margin-top: 18px;
}

/* ---------- Request band ---------- */
.dt10-coa-request {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 34px;
  padding: 28px 32px;
  border-radius: 20px;
  background: var(--dt10-navy, #152420);
  color: #fff;
}
.dt10-coa-request .dt10-coa-kicker {
  color: #8fd0ec;
}
.dt10-coa-request h2 {
  margin: 0 0 8px;
  font-size: clamp(20px, 2.4vw, 26px);
  line-height: 1.2;
  color: #fff;
}
.dt10-coa-request p {
  margin: 0;
  max-width: 62ch;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, .78);
}
.dt10-coa-request .dt10-coa-btn {
  flex: 0 0 auto;
  min-width: 220px;
  background: #fff;
  border-color: #fff;
  color: var(--dt10-navy, #152420);
  box-shadow: none;
}
.dt10-coa-request .dt10-coa-btn:hover {
  filter: none;
  background: #e8f2f8;
  color: var(--dt10-navy, #152420);
}

.dt10-coa-content {
  margin-top: 28px;
  color: var(--dt10-ink, #42504b);
}

/* ---------- Modal ---------- */
.dt10-coa-modal {
  width: min(1040px, 94vw);
  max-width: none;
  max-height: 92vh;
  padding: 0;
  border: 0;
  border-radius: 18px;
  background: #fff;
  color: var(--dt10-ink, #42504b);
  box-shadow: 0 30px 80px rgba(9, 20, 35, .35);
}
.dt10-coa-modal::backdrop {
  background: rgba(9, 20, 35, .62);
  backdrop-filter: blur(3px);
}
.dt10-coa-modal__panel {
  display: flex;
  flex-direction: column;
  max-height: 92vh;
}
.dt10-coa-modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px 14px;
  border-bottom: 1px solid var(--dt10-line, #e6eaf0);
}
.dt10-coa-modal__head h2 {
  margin: 0 0 4px;
  font-size: 19px;
  line-height: 1.3;
  color: var(--dt10-navy, #152420);
}
.dt10-coa-modal__meta {
  margin: 0;
  font-size: 13px;
  color: #667085;
}
.dt10-coa-modal__close {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border: 1px solid var(--dt10-line, #e6eaf0);
  border-radius: 50%;
  background: #fff;
  color: #475467;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.dt10-coa-modal__close:hover {
  background: #f1f5f9;
  color: var(--dt10-navy, #152420);
}
.dt10-coa-modal__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  background: #eef1f5;
  display: grid;
  place-items: center;
  padding: 14px;
}
.dt10-coa-modal__body iframe {
  width: 100%;
  height: min(68vh, 780px);
  border: 0;
  border-radius: 10px;
  background: #fff;
}
.dt10-coa-modal__body img {
  max-width: 100%;
  max-height: min(70vh, 820px);
  width: auto;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 26px rgba(9, 20, 35, .16);
}
.dt10-coa-modal__body p {
  margin: 0;
  padding: 28px;
  font-size: 14px;
  color: #667085;
  text-align: center;
}
.dt10-coa-modal__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 22px;
  border-top: 1px solid var(--dt10-line, #e6eaf0);
}
.dt10-coa-modal__foot p {
  margin: 0;
  font-size: 12px;
  color: #98a2b3;
}
.dt10-coa-modal__actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.dt10-coa-modal__actions .dt10-coa-btn {
  flex: 0 0 auto;
  min-width: 132px;
}

/* Body scroll lock while the viewer is open. */
html.dt10-coa-lock,
html.dt10-coa-lock body {
  overflow: hidden;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .dt10-coa-hero {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
  }
  .dt10-coa-request {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
  }
  .dt10-coa-request .dt10-coa-btn {
    width: 100%;
  }
}
@media (max-width: 720px) {
  .dt10-coa-page {
    padding: 20px 0 44px;
  }
  .dt10-coa-hero__metrics {
    width: 100%;
  }
  .dt10-coa-hero__metrics > div {
    flex: 1 1 0;
    min-width: 0;
    padding: 12px 10px;
  }
  .dt10-coa-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 14px;
  }
  .dt10-coa-card__body {
    padding: 12px 12px 8px;
  }
  .dt10-coa-card__title {
    font-size: 14px;
  }
  .dt10-coa-card__actions {
    padding: 0 12px 12px;
  }
  .dt10-coa-btn {
    min-height: 38px;
    padding: 9px 12px;
    font-size: 12px;
  }
  .dt10-coa-toolbar {
    margin: 16px 0 14px;
  }
  .dt10-coa-search {
    max-width: none;
    flex: 1 1 100%;
  }
  .dt10-coa-modal {
    width: 100vw;
    max-height: 100vh;
    border-radius: 0;
  }
  .dt10-coa-modal__panel {
    max-height: 100vh;
  }
  .dt10-coa-modal__foot {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .dt10-coa-modal__actions .dt10-coa-btn {
    flex: 1 1 0;
    min-width: 0;
  }
}
