/*
 * content-pages.css — neutral defaults for the public blog / press / case-studies / changelog
 * list and detail views. Loaded globally from /Sites/Shared/_SeoHead.cshtml so every site picks
 * it up without per-site work.
 *
 * Most site _Layout.cshtml files render <main> with no inner container, so without these styles
 * the long-form content would run flush to the viewport edge on wide screens. The classes below
 * give every list/detail view a sensible reading width, and per-site CSS (loaded AFTER this
 * file) can override anything by re-targeting `.content-list`, `.content-detail`, etc.
 *
 * Goals:
 *   - Cap reading width on list and detail pages.
 *   - Keep the markup neutral so site CSS still owns brand colors/typography.
 *   - Visually differentiate the "latest press release" from the archive list.
 */

.content-list,
.content-detail {
    max-width: 56rem;
    margin-left: auto;
    margin-right: auto;
    padding: 2rem 1.25rem 3rem;
    box-sizing: border-box;
}

.content-list > h1,
.content-detail > header > h1 {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    line-height: 1.2;
    margin: 0 0 1rem;
}

.content-empty {
    opacity: .7;
    font-style: italic;
}

/* List of items (blog index, case studies index, archived press releases) */
.content-items {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0;
    display: grid;
    gap: 1.5rem;
}

.content-item {
    margin: 0;
}

.content-item h2,
.content-item h3 {
    font-size: 1.25rem;
    line-height: 1.3;
    margin: 0 0 .35rem;
}

.content-item h2 a,
.content-item h3 a {
    color: inherit;
    text-decoration: none;
}

.content-item h2 a:hover,
.content-item h3 a:hover {
    text-decoration: underline;
}

.content-item p {
    margin: 0;
    opacity: .85;
    line-height: 1.55;
}

.content-item time {
    display: block;
    font-size: .85rem;
    opacity: .6;
    margin: 0 0 .35rem;
}

/* Press: full body of the latest release rendered inline at top, archive list below. */
.content-press-latest {
    margin: 1rem 0 3rem;
    padding: 1.75rem 1.5rem 1.5rem;
    border-radius: 12px;
    background: color-mix(in srgb, currentColor 4%, transparent);
    border: 1px solid color-mix(in srgb, currentColor 14%, transparent);
}

.content-press-latest-header {
    margin-bottom: 1.25rem;
}

.content-press-latest-eyebrow {
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .12em;
    margin: 0 0 .5rem;
    opacity: .6;
}

.content-press-latest-header h2 {
    font-size: clamp(1.4rem, 2.5vw, 1.85rem);
    line-height: 1.2;
    margin: 0 0 .5rem;
}

.content-press-latest-header time {
    display: block;
    font-size: .85rem;
    opacity: .65;
    margin: 0 0 .75rem;
}

.content-press-latest-header .content-summary {
    margin: 0;
    font-size: 1.05rem;
    opacity: .85;
    line-height: 1.5;
}

.content-press-latest .content-body {
    font-size: 1rem;
    line-height: 1.65;
}

.content-press-latest .content-body > * + * {
    margin-top: 1rem;
}

.content-press-latest .content-body h2,
.content-press-latest .content-body h3 {
    line-height: 1.25;
    margin-top: 1.75rem;
}

.content-press-latest .content-body h2 {
    font-size: 1.2rem;
}

.content-press-latest .content-body h3 {
    font-size: 1.05rem;
}

.content-press-latest-footer {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid color-mix(in srgb, currentColor 12%, transparent);
    font-size: .85rem;
    opacity: .8;
}

.content-press-latest-footer p {
    margin: 0;
}

.content-press-archive {
    margin: 2rem 0 0;
}

.content-press-archive > h2 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin: 0 0 1rem;
    opacity: .7;
}

/* Detail page (blog post, press release, case study) — long-form content. */
.content-detail header h1 {
    margin-bottom: .5rem;
}

.content-detail .content-summary {
    font-size: 1.1rem;
    opacity: .8;
    line-height: 1.5;
    margin: 0 0 1.5rem;
}

.content-detail .content-body {
    font-size: 1rem;
    line-height: 1.65;
}

.content-detail .content-body > * + * {
    margin-top: 1rem;
}

.content-detail .content-body h2 {
    font-size: 1.4rem;
    line-height: 1.25;
    margin-top: 2rem;
}

.content-detail .content-body h3 {
    font-size: 1.15rem;
    line-height: 1.3;
    margin-top: 1.5rem;
}

.content-detail .content-body p,
.content-detail .content-body li {
    line-height: 1.65;
}

.content-detail .content-body ul,
.content-detail .content-body ol {
    padding-left: 1.5rem;
}

.content-detail .content-body blockquote {
    margin: 1rem 0;
    padding: .5rem 1rem;
    border-left: 3px solid color-mix(in srgb, currentColor 30%, transparent);
    opacity: .85;
}

.content-detail .content-body code {
    font-size: .92em;
    padding: .1em .35em;
    border-radius: 4px;
    background: color-mix(in srgb, currentColor 8%, transparent);
}

.content-detail .content-body pre {
    overflow-x: auto;
    padding: 1rem;
    border-radius: 8px;
    background: color-mix(in srgb, currentColor 6%, transparent);
}

.content-detail .content-body pre code {
    background: transparent;
    padding: 0;
}

.content-detail .content-body img {
    max-width: 100%;
    height: auto;
}

.content-detail footer {
    margin-top: 2.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid color-mix(in srgb, currentColor 12%, transparent);
    font-size: .9rem;
    opacity: .8;
}

/* Inline collections (changelog, FAQ) render full body inside each item. */
.content-list .content-body {
    margin-top: .75rem;
    line-height: 1.6;
}
