/* What's new: release notes per version. Self-contained on top of /styles.css and ../cms-nav.css. */
.cms { --muted: #5d6a5f; --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace; --box: #e4ebd7; --tile: #edf1e3; --line: #a7b2a5; --soft-line: #d0d4b9; padding: 44px var(--rail) 40px 0; }
.cms a:not(.button) { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.eyebrow { margin: 0 0 14px; font-family: var(--mono); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--green); }
.cms-help { max-width: none; }
.cms-roadmap { max-width: 820px; }
.h-title { margin: 0 0 14px; font-size: clamp(34px, 4vw, 46px); line-height: 1.1; letter-spacing: -1.3px; text-wrap: balance; }
.h-lede { margin: 0; max-width: 640px; font-size: 18px; line-height: 1.5; }
.h-sec { padding: 34px 0 6px; border-top: 1px solid var(--line); scroll-margin-top: 16px; }
.h-sec > h2 { margin: 0 0 14px; font-size: 27px; line-height: 1.2; letter-spacing: -.5px; }
.h-sec > h2 .eyebrow { display: block; margin: 0 0 8px; }
.h-sec h3 { margin: 24px 0 8px; font-size: 19px; line-height: 1.3; letter-spacing: -.2px; }
.h-sec p, .h-sec li { font-size: 16px; line-height: 1.6; }
.h-sec p { margin: 0 0 12px; }
.h-sec ul, .h-sec ol { margin: 0 0 14px; padding-left: 22px; }
.h-sec b, .ui, .r-list b { font-weight: 700; }
.tag { display: inline-block; margin-right: 6px; padding: 2px 7px; border: 1px solid #b7c3a5; border-radius: 4px; background: var(--box); color: var(--green); font-size: 12px; font-weight: 700; line-height: 1.4; vertical-align: 1px; white-space: nowrap; }
.soon { display: inline-block; padding: 1px 7px; border-radius: 999px; background: #fdf1d8; border: 1px solid #e3c98f; color: #6b4e12; font-size: 12px; font-weight: 700; line-height: 1.5; white-space: nowrap; vertical-align: 1px; }
.h-anchor { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; margin: -6px 0 -6px 4px; vertical-align: middle; border-radius: 6px; font-family: var(--mono); font-size: 16px; font-weight: 400; }
.cms a.h-anchor { color: var(--muted); text-decoration: none; }
.cms a.h-anchor:hover, .cms a.h-anchor:focus-visible { color: var(--green); background: var(--tile); }
.h-anchor::before { content: ""; position: absolute; inset: -7px; }
.h-anchor[data-copied]::after { content: attr(data-copied); position: absolute; right: 0; top: calc(100% + 4px); z-index: 2; padding: 4px 8px; border-radius: 4px; background: var(--ink); color: var(--paper); font: 700 12px/1.4 Arial, Helvetica, sans-serif; white-space: nowrap; }
.h-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.r-sec > h2 { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.r-sec > h2 .eyebrow { flex-basis: 100%; }
.r-list { margin: 4px 0 8px; padding: 0; list-style: none; }
.r-list li { margin: 0; padding: 12px 0; border-top: 1px solid var(--soft-line); font-size: 16px; line-height: 1.6; }
.r-list li:first-child { border-top: 0; }

/* A version: where and when it came out, then what changed. */
.w-ver { scroll-margin-top: 16px; }
.w-ver:first-of-type { border-top: 0; margin-top: 18px; }
.w-ver:target > h2 { color: var(--green); }
.w-ver h3 { margin: 22px 0 2px; font-family: var(--mono); font-size: 12px; font-weight: 400; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.h-sec ul.w-where { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 10px; padding: 0; list-style: none; }
.h-sec .w-where li { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; margin: 0; padding: 7px 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--tile); font-size: 14px; line-height: 1.4; }
.w-place { font-weight: 700; }
.w-when { color: var(--muted); }
.h-sec .w-where li.w-pending { border-style: dashed; background: transparent; }
/* Rows for a store are links to it (the App Store page or the free Mac download): the box moves onto the link,
   with a ↗ after it and a hover and pressed state. The ↗ is drawn here, so it isn't in the link's text. */
.h-sec .w-where li.w-has-link { padding: 0; border: 0; background: none; }
.cms .w-where a.w-link { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; min-height: 44px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--tile); color: var(--ink); text-decoration: none; -webkit-tap-highlight-color: transparent; }
.cms .w-where a.w-link::after { content: "\2197"; content: "\2197" / ""; margin-left: 2px; color: var(--green); font-weight: 700; }
.cms .w-where a.w-link:hover { border-color: var(--green); background: var(--box); }
.cms .w-where a.w-link:hover .w-place { text-decoration: underline; text-underline-offset: 3px; }
.cms .w-where a.w-link:active { background: var(--soft-line); }
.cms .w-where a.w-link:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.w-where .soon { vertical-align: 0; }
.h-sec p.w-aside { margin: 4px 0 0; font-size: 14px; line-height: 1.5; color: var(--muted); }
.h-sec p.w-note { margin: 14px 0 4px; padding: 12px 14px; border-left: 3px solid var(--green); border-radius: 0 6px 6px 0; background: var(--tile); font-size: 15px; line-height: 1.55; }

@media (max-width: 850px) {
  .cms { padding-top: 34px; }
}
@media (max-width: 620px) {
  .cms { padding: 26px 0 30px; }
  .h-sec { padding-top: 28px; }
  .h-sec > h2 { font-size: 23px; }
  .h-sec .w-where li { width: 100%; justify-content: space-between; }
  /* Phones: one line, the date right before the arrow. On the narrowest screens the name wraps, never the date or the arrow. */
  .cms .w-where a.w-link { flex-wrap: nowrap; gap: 0 8px; width: 100%; }
  .cms .w-where a.w-link .w-place { min-width: 0; }
  .cms .w-where a.w-link .w-when { margin-left: auto; white-space: nowrap; }
  .cms .w-where a.w-link::after { margin-left: 0; }
  /* and the month is short (Nov 23, 2026), so every row fits on one line from 360 px up. */
  .w-mo { display: none; }
}
@media screen and (prefers-color-scheme: dark) {
  .cms { --muted: var(--soft); --box: #1a281f; --tile: var(--card); --line: var(--rule); --soft-line: var(--card-line); }
  .tag { border-color: var(--chip-line); background: var(--chip); }
  .soon { background: #3a2f17; border-color: #6b5626; color: #f0d9a4; }
}
