/* ==========================================================================
   Release Notes Viewer — 360 Hextile
   Scoped to .release-notes-md. Wraps render_markdown() output on the public
   index cards, the public detail page, and the admin release detail preview,
   so all three surfaces read identically.

   Dark-first, warm industrial, minimal. No glow, halo, neon, or gradient
   chrome (design-system AI Slop blacklist #9). Brand is carried by the link
   underline and the list marker only.
   ========================================================================== */

.release-notes-md {
    color: #a1a1aa; /* zinc-400 — WCAG-safe on #0a0a0b */
    font-size: 0.9375rem;
    line-height: 1.75;
    max-width: 72ch;
}

.release-notes-md > *:first-child { margin-top: 0; }
.release-notes-md > *:last-child { margin-bottom: 0; }

/* ---------- Headings ----------
   The hierarchy is the point: h2 must outrank body in BOTH size and the
   space above it, or a long set of notes reads as one undifferentiated slab. */

.release-notes-md h1 {
    color: #fafafa;
    font-size: 1.75rem;
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 0.875rem;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.release-notes-md h2 {
    color: #fafafa;
    font-size: 1.375rem;
    font-weight: 650;
    margin-top: 2.5rem;
    margin-bottom: 0.75rem;
    line-height: 1.3;
    letter-spacing: -0.015em;
}

.release-notes-md h3 {
    color: #e4e4e7; /* zinc-200 */
    font-size: 1.0625rem;
    font-weight: 600;
    margin-top: 1.75rem;
    margin-bottom: 0.5rem;
    line-height: 1.45;
    letter-spacing: -0.005em;
}

.release-notes-md h4 {
    color: #d4d4d8; /* zinc-300 */
    font-size: 0.9375rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.375rem;
    line-height: 1.5;
}

.release-notes-md h5,
.release-notes-md h6 {
    color: #d4d4d8;
    font-size: 0.875rem;
    font-weight: 600;
    margin-top: 1.25rem;
    margin-bottom: 0.375rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* ---------- Body ---------- */

.release-notes-md p {
    font-size: 0.9375rem;
    margin-top: 0;
    margin-bottom: 1.125rem;
}

.release-notes-md strong,
.release-notes-md b {
    color: #e4e4e7; /* zinc-200 */
    font-weight: 650;
}

.release-notes-md em { font-style: italic; }

.release-notes-md del {
    color: #8a8a93;
    text-decoration-color: rgba(255,255,255,0.3);
}

/* ---------- Links ---------- */

.release-notes-md a {
    color: #ff9f95; /* brand-300 */
    text-decoration: underline;
    text-decoration-color: rgba(225,62,19,0.35);
    text-underline-offset: 2px;
    transition: color 0.15s, text-decoration-color 0.15s;
}
.release-notes-md a:hover {
    color: #ff6758; /* brand-400 */
    text-decoration-color: #e13e13;
}

/* ---------- Lists ---------- */

.release-notes-md ul,
.release-notes-md ol {
    margin-top: 0;
    margin-bottom: 1.125rem;
    padding-left: 1.375rem;
}
.release-notes-md ul { list-style: disc; }
.release-notes-md ol { list-style: decimal; }

.release-notes-md li { margin-bottom: 0.4375rem; }
.release-notes-md li::marker { color: rgba(225,62,19,0.8); }

.release-notes-md li > ul,
.release-notes-md li > ol {
    margin-top: 0.4375rem;
    margin-bottom: 0;
}

/* ---------- Inline code ---------- */

.release-notes-md code:not(pre code):not(.codehilite code) {
    background: rgba(255,255,255,0.055);
    border: 1px solid rgba(255,255,255,0.07);
    color: #d4d4d8; /* zinc-300 — elevated, not a colour shout */
    padding: 0.1em 0.36em;
    border-radius: 0.3125rem;
    font-size: 0.85em;
    font-weight: 500;
}

/* ---------- Code blocks ---------- */

.release-notes-md pre,
.release-notes-md .codehilite {
    background: rgba(0,0,0,0.38);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 0.625rem;
    padding: 0.875rem 1.125rem;
    margin-top: 0;
    margin-bottom: 1.125rem;
    overflow-x: auto;
    font-size: 0.8125rem;
    line-height: 1.65;
}
.release-notes-md pre code,
.release-notes-md .codehilite code {
    background: transparent;
    border: 0;
    color: #e4e4e7;
    padding: 0;
    border-radius: 0;
    font-size: inherit;
    font-weight: 400;
}

/* ---------- Tables ---------- */

.release-notes-md table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.125rem;
    font-size: 0.875rem;
}
.release-notes-md thead th {
    background: rgba(255,255,255,0.04);
    color: #e4e4e7;
    font-weight: 600;
    text-align: left;
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.release-notes-md tbody td {
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    vertical-align: top;
}

/* ---------- Quotes, rules, media ---------- */

.release-notes-md blockquote {
    margin: 0 0 1.125rem;
    padding-left: 1rem;
    border-left: 2px solid rgba(255,255,255,0.12);
    color: #8a8a93; /* zinc-450 — caption weight */
}
.release-notes-md blockquote p:last-child { margin-bottom: 0; }

.release-notes-md hr {
    border: 0;
    border-top: 1px solid rgba(255,255,255,0.07);
    margin: 2rem 0;
}

.release-notes-md img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    border: 1px solid rgba(255,255,255,0.07);
    margin-bottom: 1.125rem;
}
