/* Data Portal page layout and resource list */

@media only screen and (min-width: 996px) {
    .inside {
        max-width: 80%;
        padding: 48px 4% 40px;
        margin: 0 auto;
        margin-top: 80px;
        margin-bottom: 16px;
        background-color: white;
        box-shadow: rgba(27, 84, 111, 0.06) 0 18px 50px;
    }
    .inside p {
        font-size: 14px;
        color: #333;
    }
    .inside p span {
        font-size: 16px;
    }
    .inside p img {
        margin: 0 auto;
        display: block;
        max-width: 75%;
    }
    .inside .anchors {
        padding-top: 0;
    }
    .inside .Datasets {
        padding-top: 0;
        padding-bottom: 0;
    }
}

@media only screen and (max-width: 996px) {
    .inside {
        padding: 40px 15px 10px;
        margin: 0 auto;
        margin-top: 76px;
        margin-bottom: 9px;
        background-color: white;
    }
    .inside p {
        font-size: 14px;
        color: #333;
    }
    .inside p span {
        font-size: 16px;
    }
    .inside p img {
        margin: 0 auto;
        display: block;
        max-width: 100%;
    }
    .inside .Datasets {
        padding-top: 0;
        padding-bottom: 0;
    }
}

.resource-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 6%;
    align-items: stretch;
}

.resource-grid-title {
    align-self: end;
    min-height: 2.4em;
    font-size: 29px;
    color: #595959;
    text-decoration: underline;
}

.resource-grid-cell {
    min-width: 0;
    border-bottom: 1px dashed #ccc;
}

.linkg a,
.linkg .resource-unavailable,
.resource-grid-cell .resource-unavailable,
.resource-grid-cell a {
    display: block;
    font-size: 16px;
    font-weight: bold;
    color: #444;
    margin: 0;
    padding: 12px 0;
    border-bottom: 0;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.linkg a:hover {
    color: var(--main-color);
}

.linkg .resource-unavailable,
.resource-grid-cell .resource-unavailable {
    align-items: center;
    color: #777;
    cursor: default;
    display: flex;
    font-weight: 700;
    justify-content: center;
    text-align: center;
}

.linkg .source-this-study,
.resource-grid-cell .source-this-study {
    color: #444;
    justify-content: flex-start;
    text-align: left;
}

@media only screen and (min-width: 996px) {
    .link_box:not(.is-row-grid) {
        display: flex;
        justify-content: space-between;
        flex-wrap: wrap;
    }
    .linkg {
        margin-top: 30px;
        width: 100%;
    }
    .li_item {
        width: 31%;
    }
}

@media only screen and (max-width: 996px) {
    .link_box:not(.is-row-grid) {
        display: flex;
        justify-content: space-between;
        flex-wrap: wrap;
    }
    .linkg {
        margin-top: 30px;
        width: 100%;
    }
    .li_item {
        width: 100%;
        margin-bottom: 20px;
    }
}

@media only screen and (max-width: 640px) {
    .resource-grid {
        display: block;
    }
    .resource-grid-title {
        display: block;
        min-height: 0;
        margin-top: 24px;
        font-size: 16px;
    }
    .resource-grid-cell {
        border-bottom: 1px dashed #ccc;
    }
    .resource-grid-cell:empty {
        display: none;
    }
}

.download-request-dialog {
    border: 0;
    border-radius: 8px;
    box-shadow: 0 18px 48px rgba(20, 36, 53, 0.26);
    color: #243646;
    margin: auto;
    max-width: min(620px, calc(100vw - 32px));
    padding: 0;
    width: 100%;
}

.download-request-dialog::backdrop {
    background: rgba(16, 34, 54, 0.62);
}

.download-request-panel {
    padding: 30px;
    position: relative;
}

.download-request-close {
    background: transparent;
    border: 0;
    color: #526270;
    cursor: pointer;
    font-size: 28px;
    height: 36px;
    line-height: 1;
    padding: 0;
    position: absolute;
    right: 16px;
    top: 16px;
    width: 36px;
}

.download-request-eyebrow {
    color: #2f7eaa;
    font-size: 13px;
    font-weight: 700;
    margin: 0 0 5px;
}

.download-request-panel h2 {
    font-size: 26px;
    margin: 0 44px 14px 0;
}

.download-request-panel p {
    line-height: 1.6;
}

.download-request-note {
    color: #5b6874;
}

.download-request-panel label {
    display: block;
    font-weight: 700;
    margin: 20px 0 8px;
}

#DownloadRequestTemplate {
    border: 1px solid #b9c6d1;
    border-radius: 6px;
    box-sizing: border-box;
    color: #243646;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 13px;
    line-height: 1.5;
    min-height: 250px;
    padding: 12px;
    resize: vertical;
    width: 100%;
}

.download-request-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.download-request-actions a,
.download-request-actions button {
    align-items: center;
    background: #fff;
    border: 1px solid #0f6e98;
    border-radius: 6px;
    color: #0f6e98;
    cursor: pointer;
    display: inline-flex;
    font-size: 14px;
    font-weight: 700;
    justify-content: center;
    min-height: 42px;
    padding: 9px 15px;
    text-decoration: none;
}

.download-request-actions .download-request-primary {
    background: #0f6e98;
    color: #fff;
}

.download-request-close:focus-visible,
.download-request-actions a:focus-visible,
.download-request-actions button:focus-visible,
#DownloadRequestTemplate:focus-visible {
    outline: 3px solid #f0b44c;
    outline-offset: 2px;
}

.download-request-status {
    min-height: 1.6em;
    margin: 12px 0 0;
}

.download-request-status.is-error {
    color: #a33824;
}

@media only screen and (max-width: 640px) {
    .download-request-panel {
        padding: 22px;
    }

    .download-request-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .download-request-actions a,
    .download-request-actions button {
        width: 100%;
    }
}
