/* =============================================================================
   45-changelog.css — the public changelog (/changelog/).

   ClickUp 869fm8p4z (item B5). ENQUEUED PER ROUTE in osat_enqueue_assets(), never
   @import'ed into tool-tracker.css — same reasoning as 44-public-tools.css,
   29-alerts.css and scanner.css: one marketing page should not add weight to the
   app's sheet, and the cascade position of an @import'ed file is a promise its
   number has to keep.

   45 is the next free prefix (44-public-tools.css was the last). `ls assets/css/main/`
   before adding another.

   Phone first: the design column is 390–430px, the minimum is 360px (CLAUDE.md
   "Mobile device targets"). The page is a single column at every width — a changelog
   read on a handset is a list of dates, and a second column only ever pushes the
   newest entry off the first screen.
   ============================================================================= */

.osat-chlog {
    --osat-chlog-ink: #1d2733;
    --osat-chlog-muted: #5b6878;
    --osat-chlog-line: #e3e8ee;
    color: var(--osat-chlog-ink);
}

/* --- The one centred column ----------------------------------------------
   Dan's review of 2026-10-26 (CU 869fm8p4z): "currently the title is offset from
   the main content, which is offset from the try on your own kit button. Make sure
   all three elements are in line with each other and centered." There were three
   different left edges, from three separate causes, and all three are fixed here:

     1. the hero was a bare `.osat-container` — 1600px wide, so its <h1> began far
        to the left of the 44rem entry column;
     2. `.osat-chlog-cta` carried `margin: 1.5rem 0 2.5rem`, whose `0` overwrote
        `.osat-container`'s `margin: 20px auto` and pinned the block left instead of
        centring it;
     3. an entry's left rail added `1.25rem + 2px` of its own, so even against the
        CTA the body text started indented.

   The column is now declared ONCE, here, exactly as on /tools/ (44-public-tools.css,
   CU 869fmddgr — the same reported defect on the sibling page).

   [CRITICAL] The horizontal inset is a LONGHAND, and every rule below this one must
   use padding-top / padding-bottom and margin-top / margin-bottom longhands too.
   `.osat-container` in 01-global.css sets its inset with a `padding` shorthand and
   its centring with a `margin` shorthand; a second shorthand here resets the
   horizontal value and reintroduces cause 1 or cause 2 above. Both were invisible
   on a wide screen until the three left edges were measured against each other. */
.osat-chlog > .osat-container {
    max-width: 44rem;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

/* --- Hero ----------------------------------------------------------------- */
.osat-chlog-hero { padding-top: 1.5rem; padding-bottom: 1.25rem; }
.osat-chlog-hero h1 {
    font-size: clamp(1.6rem, 6vw, 2.5rem);
    line-height: 1.15;
    margin: 0 0 0.75rem;
}
.osat-chlog-lead {
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--osat-chlog-muted);
    margin: 0;
}

/* --- The entry list -------------------------------------------------------
   A hairline between entries, not a left rail. The timeline rail that used to tie
   them together was drawn with `border-left` plus `padding-left`, which is cause 3
   above: it is the one decoration that cannot be level with the heading and the
   closing call to action, because its whole job is to sit to the left of the text.
   A date per entry already reads as a timeline. */
.osat-chlog-list { padding-top: 0.5rem; padding-bottom: 1rem; }

.osat-chlog-entry { padding-top: 1.5rem; padding-bottom: 0.25rem; }
.osat-chlog-entry + .osat-chlog-entry {
    border-top: 1px solid var(--osat-chlog-line);
}

.osat-chlog-entry__when {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 0.35rem;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--osat-chlog-muted);
}

/* Dev-only by construction — a drafted entry never reaches staging or production,
   so nobody but the reviewer can see this. */
.osat-chlog-entry__draft {
    text-transform: none;
    letter-spacing: 0;
    font-size: 0.75rem;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    background: #fff4d6;
    color: #7a5200;
    border: 1px solid #e8c877;
}

.osat-chlog-entry__title {
    font-size: clamp(1.15rem, 4.5vw, 1.5rem);
    line-height: 1.25;
    margin: 0 0 0.6rem;
}

.osat-chlog-entry__body { font-size: 1rem; line-height: 1.65; }
.osat-chlog-entry__body p { margin: 0 0 0.85rem; }
.osat-chlog-entry__body ul,
.osat-chlog-entry__body ol { margin: 0 0 0.85rem; padding-left: 1.25rem; }
.osat-chlog-entry__body li { margin-bottom: 0.5rem; }
.osat-chlog-entry__body a { color: #1f7ae0; }
/* An entry should not carry its own headings — but if one ever does, keep it below
   the entry title rather than competing with it. */
.osat-chlog-entry__body h2,
.osat-chlog-entry__body h3 { font-size: 1.0625rem; margin: 1.1rem 0 0.5rem; }

/* --- Closing call to action ---------------------------------------------- */
.osat-chlog-cta {
    margin-top: 1.5rem;
    margin-bottom: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--osat-chlog-line);
}
.osat-chlog-cta h2 { font-size: 1.25rem; margin: 0 0 0.6rem; }
.osat-chlog-cta p { line-height: 1.6; color: var(--osat-chlog-muted); margin: 0 0 1rem; }

.osat-chlog-ctarow {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}
/* 44px minimum touch target, as everywhere public. */
.osat-chlog-ctarow .osat-btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
