/* Shared by every changelog page: /changelog (Mac), /windows/changelog, /android/changelog,
   /lite/changelog and their 18 translations. Moved out of changelog.html on 2026-10-07 so the
   four platforms cannot drift apart. ⚠️ /assets/ is cached for a week and this name is not
   hashed: bump the ?v= on the <link> in every changelog page when this file changes. */
:root {
  --cream: #F2EDE6; --cream-dark: #E8E1D8; --orange: #E8622A;
  --ink: #1A1714; --ink-soft: #3D3830; --ink-muted: #7A7268;
  --border: rgba(26,23,20,0.10);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { overflow-x: hidden; }
body { background: var(--cream); color: var(--ink); font-family: "DM Sans", sans-serif; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }

.wrap { max-width: 720px; margin: 0 auto; padding: 24px 16px; }
header.hero { text-align: center; padding: 32px 0 8px; }
header.hero .eyebrow { color: var(--orange); font-weight: 700; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
header.hero h1 { font-family: "Instrument Serif", serif; font-weight: 400; font-size: 48px; line-height: 1.1; margin: 12px 0 8px; text-wrap: balance; }
header.hero p { color: var(--ink-soft); font-size: 17px; }
header.hero .road { font-size: 14px; margin-top: 10px; }
header.hero .road a { color: var(--orange); text-decoration: none; font-weight: 600; }

/* Platform switcher: Mac · Windows · Android · Lite. The current one carries aria-current. */
.cl-switch { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.cl-switch a { display: inline-block; padding: 7px 16px; border-radius: 100px; font-size: 14px; font-weight: 600; text-decoration: none;
  color: var(--ink-soft); background: rgba(26,23,20,0.05); box-shadow: inset 0 0 0 1px var(--border); }
.cl-switch a:hover { color: var(--ink); background: rgba(26,23,20,0.09); }
.cl-switch a[aria-current="page"] { background: var(--ink); color: var(--cream); box-shadow: none; }
.cl-switch a:focus-visible { outline: 3px solid #B8460F; outline-offset: 2px; }

.rel { border-left: 2px solid var(--border); padding: 6px 0 30px 24px; margin-left: 8px; position: relative; }
.rel::before { content: ""; position: absolute; left: -7px; top: 12px; width: 12px; height: 12px; border-radius: 50%; background: var(--orange); }
.rel.minor::before { background: var(--cream-dark); border: 2px solid var(--border); }
.rel h2 { display: inline; font: inherit; }
.rel .ver { font-family: "Instrument Serif", serif; font-size: 26px; font-weight: 400; }
.rel .date { color: var(--ink-muted); font-size: 13px; margin-inline-start: 10px; }
.rel .tag { display:inline-block; font-size: 11px; font-weight: 700; color: var(--orange); background: rgba(232,98,42,0.10); border-radius: 100px; padding: 2px 10px; margin-inline-start: 8px; vertical-align: middle; }
.rel ul { margin-block: 12px 0; margin-inline: 18px 0; }
.rel li { margin: 6px 0; color: var(--ink-soft); }
.rel li b { color: var(--ink); }
/* Release images. ⭐ Anthony: a changelog should SHOW the change, not only describe it.
   Before/after sit side by side and stack on a phone. */
.rel figure { margin: 14px 0 6px; }
.rel figure img { display:block; width:100%; height:auto; border-radius:10px; border:1px solid var(--border);
                  box-shadow:0 10px 26px rgba(26,23,20,0.12); background:#fff; }
.rel figcaption { font-size:12.5px; color:var(--ink-muted); margin-top:7px; line-height:1.5; font-style:italic; }
.rel .ba { display:grid; grid-template-columns:1fr 1fr; gap:14px; margin:14px 0 6px; }
.rel .ba figure { margin:0; }
@media (max-width: 620px) { .rel .ba { grid-template-columns:1fr; } }

/* What's-new video, click to load. Nothing is fetched from YouTube until the button is pressed:
   the poster is our own file and the iframe (youtube-nocookie.com, allowed by frame-src in
   _headers) is only created on click by /assets/whatsnew-video.js. Markup:
   <div class="wn-video" data-yt="VIDEO_ID"><button type="button" class="wn-play" aria-label="Play …">
     <img src="/assets/whatsnew/<platform>-<version>.webp" alt="" width="1280" height="720" loading="lazy">
     <span class="wn-icon" aria-hidden="true"></span></button>
   <p class="wn-note">…</p></div> */
.wn-video { margin: 16px 0 8px; }
.wn-frame, .wn-play { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; padding: 0; border-radius: 12px; overflow: hidden;
  background: #2a2016; box-shadow: 0 12px 30px rgba(26,23,20,0.18); cursor: pointer; }
.wn-play img { display: block; width: 100%; height: 100%; object-fit: cover; }
.wn-icon { position: absolute; left: 50%; top: 50%; width: 76px; height: 54px; margin: -27px 0 0 -38px; border-radius: 14px;
  background: rgba(26,23,20,0.82); transition: background .2s, transform .2s; }
.wn-icon::after { content: ""; position: absolute; left: 31px; top: 15px; border-style: solid; border-width: 12px 0 12px 20px; border-color: transparent transparent transparent #fff; }
.wn-play:hover .wn-icon, .wn-play:focus-visible .wn-icon { background: #C94E14; transform: scale(1.06); }
.wn-play:focus-visible { outline: 3px solid #B8460F; outline-offset: 3px; }
.wn-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.wn-note { font-size: 12.5px; color: var(--ink-muted); margin-top: 7px; }

.cl-more { text-align: center; color: var(--ink-soft); font-size: 15px; margin: 8px 0 40px; }
.cl-more a { color: #B8460F; font-weight: 600; text-decoration: none; }
.cl-more a:hover { text-decoration: underline; }

@media (max-width: 600px){ header.hero h1{ font-size: 34px; } .rel { padding-inline-start: 18px; } }
@media (max-width: 420px){ .cl-switch { gap: 6px; } .cl-switch a { padding: 6px 11px; font-size: 13px; } }
[dir="rtl"] .rel { border-left: 0; border-right: 2px solid var(--border); margin-left: 0; margin-right: 8px; padding-left: 0; padding-right: 24px; }
[dir="rtl"] .rel::before { left: auto; right: -7px; }
@media (max-width: 600px){ [dir="rtl"] .rel { padding-right: 18px; } }
