/* ============================================================
   TRSuite Release Notes - Ergaenzung zu downloads.css
   Die Seite laedt ZUERST downloads.css (Kopf, Hero, Karten,
   Buttons, Fussbereich) und danach diese Datei; hier steht nur,
   was der Fliesstext zusaetzlich braucht.
   Erzeugt aus RELEASE_NOTES_*.md von
   homepage/tools/ReleaseNotesGenerator.java
   ============================================================ */

/* ---------- Hero ---------- */

.hero-compact { padding: 2.75rem 0 2.25rem; }
.hero-compact .lead { margin-bottom: .9rem; }
.hero-compact .release-facts { color: #9aa5b4; }
.hero-compact .release-facts b { color: #e7ecf3; font-weight: 600; }

.rn-langs { display: inline-flex; gap: .8rem; }
.rn-langs a { color: #cfe0f5; }
.rn-langs b { color: #fff; }

/* ---------- Layout: Inhaltsverzeichnis + Dokument ---------- */

.rn-layout {
    display: grid;
    grid-template-columns: 232px minmax(0, 1fr);
    gap: 2.5rem;
    align-items: start;
}

.rn-layout > .rn-doc:only-child { grid-column: 1 / -1; }

.rn-toc {
    position: sticky;
    top: 76px;
    font-size: .86rem;
    line-height: 1.45;
}

.rn-toc-head {
    margin: 0 0 .6rem;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--ink-faint);
}

.rn-toc ul { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.rn-toc li { margin: 0; }

.rn-toc a {
    display: block;
    padding: .32rem .8rem;
    margin-left: -1px;
    border-left: 2px solid transparent;
    color: var(--ink-soft);
}

.rn-toc a:hover { color: var(--action); border-left-color: var(--action); text-decoration: none; }

/* ---------- Dokument ---------- */

.rn-doc {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 2rem 2.25rem .5rem;
    overflow: hidden;
}

.rn-doc > :first-child { margin-top: 0; }

.rn-doc h2 {
    margin: 2.4rem 0 .9rem;
    padding-top: 1.4rem;
    border-top: 1px solid var(--line);
    font-size: 1.35rem;
}

.rn-doc > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }

.rn-doc h3 {
    margin: 1.8rem 0 .6rem;
    font-size: 1.02rem;
    color: var(--brand);
}

.rn-doc h4 { margin: 1.3rem 0 .5rem; font-size: .95rem; }

.rn-doc p { margin: 0 0 1rem; }

.rn-doc ul, .rn-doc ol { margin: 0 0 1.15rem; padding-left: 1.25rem; }
.rn-doc li { margin-bottom: .55rem; }
.rn-doc li > ul, .rn-doc li > ol { margin: .5rem 0 .2rem; }
.rn-doc ul { list-style: none; padding-left: 1.1rem; }

.rn-doc ul > li { position: relative; }

.rn-doc ul > li::before {
    content: "";
    position: absolute;
    left: -.95rem;
    top: .62em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--ink-faint);
}

.rn-doc strong { font-weight: 650; color: var(--ink); }

.rn-doc code {
    font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
    font-size: .88em;
    background: #f4f6f9;
    border: 1px solid var(--line);
    border-radius: 5px;
    padding: .1em .35em;
    color: var(--ink-soft);
    word-break: break-word;
}

.rn-doc pre {
    background: #f7f9fb;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: .9rem 1.1rem;
    overflow-x: auto;
    margin: 0 0 1.15rem;
}

.rn-doc pre code { background: none; border: 0; padding: 0; font-size: .84rem; color: var(--ink); }

.rn-doc blockquote {
    margin: 0 0 1.15rem;
    padding: .1rem 0 .1rem 1.1rem;
    border-left: 3px solid var(--line);
    color: var(--ink-soft);
}

.rn-doc hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }

.rn-table-wrap { overflow-x: auto; margin: 0 0 1.15rem; }

.rn-doc table { border-collapse: collapse; width: 100%; font-size: .9rem; }
.rn-doc th, .rn-doc td { text-align: left; padding: .55rem .7rem; border-bottom: 1px solid var(--line); }
.rn-doc th { background: #fafbfc; font-weight: 650; }

/* ---------- Ticket-Verweise ---------- */

.ticket {
    display: inline-block;
    margin-left: .15em;
    padding: .05em .45em;
    border: 1px solid var(--line);
    border-radius: 5px;
    background: #f7f9fb;
    font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
    font-size: .72em;
    letter-spacing: .01em;
    color: var(--ink-faint);
    white-space: nowrap;
    vertical-align: .08em;
}

a.ticket:hover { border-color: var(--action); color: var(--action); text-decoration: none; }

/* ---------- Fussleiste des Dokuments ---------- */

.rn-resources {
    margin: 1.6rem -2.25rem 0;
    border-bottom: 0;
}

/* ---------- Index ---------- */

.rn-md { font-size: .82rem; color: var(--ink-soft); }

/* ---------- Mobil ---------- */

@media (max-width: 900px) {
    .rn-layout { grid-template-columns: 1fr; gap: 1.25rem; }
    .rn-toc { position: static; order: -1; }
    .rn-toc ul { columns: 2; column-gap: 1.5rem; }
}

@media (max-width: 720px) {
    .rn-doc { padding: 1.4rem 1.1rem .3rem; }
    .rn-resources { margin-left: -1.1rem; margin-right: -1.1rem; }
    .rn-toc ul { columns: 1; }
}
