.gw-article--certificate-documents .papers {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-block: var(--gw-article-media-gap);
}

.gw-article--certificate-documents .paper {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 8px;
    padding: 12px;
    border: 1px solid #d9e0e7;
    border-radius: 8px;
    background: #fafbfc;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.gw-article--certificate-documents .paper:hover,
.gw-article--certificate-documents .paper:focus-visible {
    border-color: #b80916;
    background: #fff;
}

.gw-article--certificate-documents .paper img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 0;
}

.gw-article--certificate-documents .paper strong {
    color: #26374d;
    font-size: 15px;
    line-height: 1.35;
}

.gw-article--certificate-documents .paper small {
    color: #576477;
    font-size: 12px;
    line-height: 1.4;
}

.gw-article--certificate-documents .certificate-list { padding-inline-start: 1.25em; }
.gw-article--certificate-documents .certificate-list li { margin-block-end: .7em; }
.gw-article--certificate-documents .certificate-id { overflow-wrap: anywhere; }
.gw-article--certificate-documents .gw-article-body h3 { margin-block: 28px 8px; }
.gw-article--certificate-documents .document-link { font-weight: 600; }

.gw-article--certificate-documents .order-docs {
    width: 100%;
    margin-block: 20px;
    border-collapse: collapse;
    font-size: .95em;
    overflow-wrap: anywhere;
}

.gw-article--certificate-documents .order-docs th,
.gw-article--certificate-documents .order-docs td {
    padding: 12px;
    border-bottom: 1px solid #d9e0e7;
    text-align: start;
    vertical-align: top;
}

.gw-article--certificate-documents .order-docs thead { background: #f1f4f7; }
.gw-article--certificate-documents .order-docs tbody th { width: 29%; }

.gw-article--certificate-documents .ats-views {
    width: min(100%, var(--gw-article-media-width));
    margin-inline: auto;
}

.gw-article--certificate-documents .scan-dialog {
    width: min(94vw, 860px);
    max-width: 94vw;
    max-height: 94vh;
    margin: auto;
    padding: 0;
    border: 1px solid #d6dce5;
    border-radius: 10px;
    background: white;
    color: #17243a;
}

.gw-article--certificate-documents .scan-dialog::backdrop { background: rgb(15 25 39 / 65%); }

.gw-article--certificate-documents .scan-tools {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 14px;
}

.gw-article--certificate-documents .scan-tools strong { flex: 1 1 175px; }
.gw-article--certificate-documents .scan-tools [hidden] { display: none; }

.gw-article--certificate-documents .scan-tools button {
    padding: 8px 12px;
    border: 1px solid #b8c4d3;
    border-radius: 5px;
    background: white;
    color: inherit;
    cursor: pointer;
}

.gw-article--certificate-documents .scan-pane { max-height: 75vh; overflow: auto; }
.gw-article--certificate-documents .scan-pane img { display: block; width: 100%; height: auto; }
.gw-article--certificate-documents .scan-pane.is-enlarged img { width: auto; max-width: none; }

@media (min-width: 641px) {
    .gw-article--certificate-documents .ats-views { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .gw-article--certificate-documents .ats-views > figure { grid-column: auto; }
}

@media (max-width: 640px) {
    .gw-article--certificate-documents .papers { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .gw-article--certificate-documents .paper { padding: 8px; }
    .gw-article--certificate-documents .order-docs th,
    .gw-article--certificate-documents .order-docs td { padding: 8px; }
}
