@import url('../home/styles.css');

/* Match the typography and content proportions used by the Help article. */
.data-content {
    width: var(--content-width);
    margin: 0 auto;
    padding: clamp(16px, 2vw, 40px) clamp(16px, 2vw, 40px) clamp(32px, 4vw, 80px);
}

.data-page {
    width: 88%;
    margin: 0 auto;
    color: var(--dark-color);
    font-size: clamp(0.9rem, 1.1vw, 2.2rem);
    line-height: 1.75;
    text-align: left;
    overflow-wrap: anywhere;
}

.data-page h1 {
    color: var(--dark-color);
    font-size: clamp(1.2rem, 1.6vw, 3rem);
    font-weight: 700;
    line-height: 1.3;
    text-align: left;
    margin: 0 0 clamp(0.8rem, 1vw, 1.8rem);
}

.data-page h2 {
    color: var(--dark-color);
    font-size: clamp(1.1rem, 1.4vw, 2.6rem);
    line-height: 1.35;
    margin: clamp(1.8rem, 2.5vw, 4rem) 0 clamp(0.8rem, 1vw, 1.8rem);
}

.data-page p {
    margin: 0 0 clamp(0.8rem, 1vw, 1.8rem);
}

.data-page a { color: var(--secondary-color); text-decoration: none; }
.data-page a:hover { text-decoration: underline; }
.data-page [id] { scroll-margin-top: clamp(70px, 8vh, 120px); }
.data-page .release-summary { background: #edf6fc; border-left: 4px solid #2989d8; padding: 1rem 1.4rem; margin: 1.5rem 0; }
.data-page .release-summary p:last-child { margin-bottom: 0; }
.data-page table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.data-page th, .data-page td { text-align: left; padding: .7rem; border-bottom: 1px solid #cddde8; vertical-align: top; }
.data-page .release-notes { white-space: pre-wrap; }
.release-history-wrapper { width: 100%; overflow-x: auto; }
.data-page .release-history { table-layout: fixed; min-width: 780px; }
.release-col-version { width: 14%; }
.release-col-entries { width: 12%; }
.release-col-subentries { width: 14%; }
.release-col-coverage { width: 24%; }
.release-col-changes { width: 36%; }
.release-notes-preview {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    line-height: 1.75;
    max-height: 5.25em;
    overflow: hidden;
    white-space: normal;
}
.release-notes-link { display: inline-block; margin-top: .35rem; }
.data-page dl { display: grid; grid-template-columns: minmax(130px, 1fr) minmax(0, 3fr); gap: .5rem 1rem; margin-bottom: 1rem; }
.data-page ul { padding-left: 1.4em; }

@media (max-width: 800px) {
    .data-content { width: 100%; padding: 16px 16px 32px; }
    .data-page { width: 100%; }
}

@media (max-width: 600px) {
    .data-page dl { display: block; }
    .data-page dt { font-weight: 700; }
    .data-page dd { margin-bottom: .7rem; }
}

.data-layout { padding-bottom: 0; }
.data-layout #bottom { position: static; }
