/* EMRFlow Updates (v1). Layered over /insights/insights.css, which owns the tokens, nav, footer,
   skip link, dark theme and reduced-motion base. Logical properties throughout (RTL-tolerant). */
html { scroll-padding-block-start: 96px; }  /* skip link and deep links land clear of the sticky nav */
#main:focus { outline: none; }  /* programmatic focus target only; links and buttons keep :focus-visible */
.intro { color: var(--text-muted); margin-block-end: 1.25rem; }
.stores { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-block: 0 2.5rem; }
.stores a {
    display: inline-flex; align-items: center; min-height: 44px; padding-inline: 1rem;
    border: 1px solid var(--border-strong); border-radius: 10px; background: var(--surface);
    color: var(--text); text-decoration: none; font-weight: 600; font-size: 0.95rem;
    transition: border-color 0.15s ease, color 0.15s ease;
}
.stores a:hover { border-color: var(--primary); color: var(--primary); }
.release { border-block-start: 1px solid var(--border); padding-block: 2rem; scroll-margin-block-start: 96px; }
.release:first-of-type { border-block-start: 0; padding-block-start: 0.5rem; }
.release-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.4rem 0.9rem; margin-block-end: 1rem; }
.release h2 { font-size: 1.35rem; letter-spacing: -0.01em; margin: 0; }
.release time { color: var(--text-muted); font-size: 0.9rem; }
.changes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.65rem; }
.changes li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.7rem; align-items: start; }
.changes li > span:last-child { overflow-wrap: anywhere; }
.changes li.plain { grid-template-columns: minmax(0, 1fr); position: relative; padding-inline-start: 1.1rem; }
.changes li.plain::before { content: "\2022"; position: absolute; inset-inline-start: 0.1rem; color: var(--text-muted); }
/* Label chips: single line, centered (PRODUCTION-STANDARDS 15). Translucent washes keep AA contrast in
   both themes because the text inherits the page color; the word carries the meaning, not the hue. */
.tag {
    display: inline-block; min-inline-size: 5.6rem; text-align: center; white-space: nowrap;
    font-size: 0.72rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
    padding: 0.24rem 0.65rem; border-radius: 999px; margin-block-start: 0.2rem; color: inherit;
}
.tag-new { background: rgba(33, 113, 181, 0.16); }
.tag-improved { background: rgba(16, 185, 129, 0.18); }
.tag-fixed { background: rgba(245, 158, 11, 0.20); }
.tag-security { background: rgba(198, 40, 40, 0.16); }
.tag-maintenance { background: rgba(100, 116, 139, 0.18); }
.tag-latest { background: var(--primary); color: #fff; margin-block-start: 0; }
.page-updates .byline { margin-block-end: 1rem; }
.notice { background: var(--surface-tint); border: 1px solid var(--border-strong); border-radius: 12px; padding: 1rem 1.2rem; margin-block-end: 1.1rem; }
.notice h3 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--primary); margin-block-end: 0.45rem; }
.notice p { margin-block-end: 0.6rem; }
.notice p:last-child { margin-block-end: 0; }
.narrative p { margin-block-end: 0.8rem; }
.tail { color: var(--text-muted); font-size: 0.92rem; border-block-start: 1px solid var(--border); padding-block-start: 1.5rem; margin-block-start: 1rem; }
.tail a { color: var(--primary); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; border-radius: 4px; }
@media (max-width: 480px) {
    .stores a { flex: 1 1 100%; justify-content: center; }
}
@media (max-width: 420px) {
    .changes li { grid-template-columns: minmax(0, 1fr); gap: 0.3rem; }  /* chip on its own row: long labels and 40% longer strings still fit */
    .tag { justify-self: start; }
}
@media (prefers-reduced-motion: reduce) {
    .stores a { transition: none; }
}
/* Dark theme lightens --primary to #5AA6E5 for text on dark; white text on that chip would be 2.6:1.
   Keep the chip on the brand blue, the same override insights.css applies to .nav-cta (white on #2171B5 = 5:1). */
@media (prefers-color-scheme: dark) {
    .tag-latest { background: #2171B5; }
}
