/* The changelog pages (/changelog/trados/, /changelog/memoq/). Their own
   file rather than more of mono.css, which every page loads: the rules below
   mean nothing anywhere else. The house style still applies - black type, one
   accent per product, set by the page as --accent. */

.cl-hero { padding-bottom: 1.5rem; }
.cl-hero h1 .host { color: var(--accent); }

/* "What changed since version 0.1.12: 5 releases". The one line that answers
   the question the update offer sent the reader here with. */
.cl-since { max-width: var(--measure); margin: 0; padding: .8rem 1rem;
            border-left: 3px solid var(--accent); background: var(--wash);
            font-size: 1rem; color: var(--ink-soft); }

/* The release list beside the releases, always in view on a desktop: the
   sidebar GitHub hides behind a button. */
.cl-layout { display: grid; grid-template-columns: 13rem minmax(0, 1fr); gap: 3rem;
             padding-top: 1rem; padding-bottom: 4rem; align-items: start; }
.cl-versions { position: sticky; top: 1.25rem; max-height: calc(100vh - 2.5rem);
               overflow-y: auto; font-size: .9rem; }
.cl-versions summary { font-weight: 600; cursor: pointer; margin-bottom: .5rem; }
.cl-versions ol { list-style: none; margin: 0; padding: 0; }
.cl-versions li { margin: 0; }
.cl-versions a { display: block; padding: .28rem .5rem; border-radius: 3px;
                 text-decoration: none; color: var(--ink-soft); line-height: 1.35; }
.cl-versions a:hover { background: var(--wash); color: var(--ink); }
.cl-versions .cl-date { display: block; color: var(--ink-faint); font-size: .8rem; }

.cl-entries { max-width: var(--measure); min-width: 0; }
.cl-loading, .cl-problem { color: var(--ink-faint); }

.cl-release { padding-top: 1.75rem; border-top: 1px solid var(--rule); margin-bottom: 1.5rem;
              scroll-margin-top: 1rem; }
.cl-release:first-child { border-top: 0; padding-top: 0; }
.cl-release h2 { font-size: 1.45rem; letter-spacing: -.015em; margin: 0 0 .6rem;
                 display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem .9rem; }
.cl-release h2 time { font-size: .95rem; font-weight: 400; color: var(--ink-faint); }

/* Added / Changed / Fixed: labels, not headings to read. */
.cl-body h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em;
              color: var(--accent); margin: 1.4rem 0 .5rem; }
.cl-body ul { margin: 0 0 1rem; padding-left: 1.2rem; }
.cl-body li { margin-bottom: .75rem; color: var(--ink-soft); font-size: .99rem; }
.cl-body li::marker { color: var(--ink-faint); }
.cl-body li strong:first-child { color: var(--ink); }
.cl-body ul ul { margin: .5rem 0 0; }
.cl-body ul ul li { margin-bottom: .35rem; font-size: .96rem; }
.cl-body p { color: var(--ink-soft); }
.cl-body blockquote { margin: 0 0 1rem; padding-left: 1rem; border-left: 3px solid var(--rule);
                      color: var(--ink-faint); }
.cl-body code { font-family: Consolas, "SF Mono", Menlo, monospace; font-size: .88em;
                background: var(--wash); border: 1px solid var(--rule); border-radius: 3px;
                padding: 0 .25em; overflow-wrap: anywhere; }

/* The things a release would be announced for. */
.cl-body li.cl-star { list-style: none; margin-left: -1.2rem; padding: .6rem .8rem;
                      border-left: 3px solid var(--accent); background: var(--wash); }

/* The changelog list at /changelog/ */
.cl-pick { display: grid; gap: 1.5rem; max-width: var(--measure);
           grid-template-columns: repeat(auto-fit, minmax(min(16rem, 100%), 1fr)); }

@media (max-width: 860px) {
    /* The list goes above the releases, folded: on a phone it is a menu to
       open, not a column to scroll past. */
    .cl-layout { grid-template-columns: 1fr; gap: 1.5rem; }
    .cl-versions { position: static; max-height: none; border: 1px solid var(--rule);
                   border-radius: 4px; padding: .6rem .8rem; }
    .cl-versions summary { margin-bottom: 0; }
    .cl-versions[open] summary, .cl-versions details[open] summary { margin-bottom: .5rem; }
    .cl-versions ol { max-height: 50vh; overflow-y: auto; }
}
