/* What's new (updates.html): owned by the services stream (F). Colours only from the tokens in npd.css; spacing
   on the 4/8 px scale; every control 40 px tall or more. */

/* ---------- head and the feed address ---------- */
.up-head .meta{max-width:65ch}
.up-feed{margin-top:24px;max-width:820px;display:grid;grid-template-columns:minmax(0,1fr);gap:12px 24px;align-items:center;background:var(--surface);border:1px solid var(--line);border-radius:var(--r);padding:16px}
@media (min-width:760px){.up-feed{grid-template-columns:minmax(0,1fr) auto;padding:20px 24px}}
.up-feed-h{font-size:17px;font-weight:650;letter-spacing:-.01em;line-height:1.3}
.up-feed-txt p{margin-top:4px;max-width:46ch}
.up-feed-open{display:inline-block;padding-block:4px;font-weight:600;white-space:nowrap}
.up-feed-row{display:flex;flex-wrap:wrap;gap:8px;min-width:0}
.up-feed-url{flex:1 1 auto;min-width:0;display:flex;align-items:center;min-height:40px;padding:8px 12px;border-radius:10px;border:1px solid var(--line-2);background:var(--bg-2);color:var(--ink);font:13px/1.35 var(--mono);overflow-wrap:break-word;-webkit-user-select:all;user-select:all;cursor:text}
.up-copy{flex:none}
.up-copy::before{content:"";width:14px;height:14px;flex:none;background:currentColor;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='9' y='9' width='12' height='12' rx='2'/%3E%3Cpath d='M5 15V5a2 2 0 0 1 2-2h10'/%3E%3C/svg%3E") center/contain no-repeat;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='9' y='9' width='12' height='12' rx='2'/%3E%3Cpath d='M5 15V5a2 2 0 0 1 2-2h10'/%3E%3C/svg%3E") center/contain no-repeat}
.up-copy.done{border-color:var(--accent);background:var(--accent-soft);color:var(--accent-ink)}
.up-copy.done::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
  mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E")}
.up-copy:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.up-copy-st{grid-column:1/-1;min-height:1.4em;margin-top:-4px}
.up-copy-st:empty{display:none}

/* ---------- filters ---------- */
.up-main{padding-bottom:24px}
.up-filters{display:grid;gap:8px;padding-top:16px;border-top:1px solid var(--line)}
.up-frow{display:grid;grid-template-columns:minmax(0,1fr);gap:6px;min-width:0}
@media (min-width:640px){.up-frow{grid-template-columns:112px minmax(0,1fr);align-items:start;gap:12px}.up-flab{padding-top:11px}}
.up-flab{font-size:12.5px;font-weight:650;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
html[data-lang="ne"] .up-flab{letter-spacing:0;font-size:13.5px}
.up-chips{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch;padding:3px;margin:-3px;min-width:0}
.up-chips::-webkit-scrollbar{display:none}
@media (min-width:960px){.up-chips{flex-wrap:wrap;overflow:visible}}
.up-skchip{flex:none;height:40px;border-radius:999px}
.up-opt{flex:none;display:inline-flex;align-items:center;gap:8px;min-height:40px;padding:6px 14px;border:1px solid var(--line);border-radius:999px;background:var(--surface);color:var(--ink);font-size:14.5px;font-weight:560;line-height:1.25;white-space:nowrap;cursor:pointer;transition:background var(--ease),border-color var(--ease),color var(--ease)}
.up-opt:hover{border-color:var(--line-2);background:var(--surface-2)}
.up-opt:active{background:var(--surface-3)}
.up-opt:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.up-opt[aria-pressed="true"]{background:var(--accent);border-color:var(--accent);color:var(--on-accent)}
.up-opt[aria-pressed="true"]:hover{background:var(--accent-ink);border-color:var(--accent-ink)}
.up-opt[disabled]{opacity:.42;cursor:not-allowed}
.up-opt[disabled]:hover{background:var(--surface);border-color:var(--line)}
.up-n{font-size:12.5px;font-weight:600;color:var(--muted);font-variant-numeric:tabular-nums}
.up-opt[aria-pressed="true"] .up-n{color:inherit}
.up-count{margin-top:16px;min-height:1.5em;font-size:15px;color:var(--ink-2)}

/* ---------- the list: one block per day ---------- */
.up-list{margin-top:4px}
.up-day{display:grid;gap:12px;padding-block:20px;border-top:1px solid var(--line)}
.up-day:first-child{border-top:0}
@media (min-width:900px){
  .up-day{grid-template-columns:184px minmax(0,1fr);gap:32px;padding-block:28px}
  .up-dh{position:sticky;top:calc(var(--hdr-vis) + 16px);align-self:start;transition:top var(--ease)}
}
.up-dh h3{font-size:19px;font-weight:700;letter-spacing:-.015em;line-height:1.25}
.up-dsub{margin-top:2px;font-size:14px;color:var(--muted)}
.up-items{display:grid;gap:12px;min-width:0}
.up-item{display:grid;gap:8px;min-width:0;background:var(--surface);border:1px solid var(--line);border-radius:var(--r);padding:16px;transition:border-color var(--ease),box-shadow var(--ease)}
@media (min-width:640px){.up-item{padding:18px 20px}}
.up-item:focus{outline:none}
.up-item:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.up-item.hit{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft)}
.up-skel .up-item{min-height:150px}
.up-top{display:flex;flex-wrap:wrap;align-items:center;gap:4px 10px;font-size:13.5px;color:var(--muted)}
.up-kind{font-size:11.5px;font-weight:650;letter-spacing:.04em;text-transform:uppercase;line-height:1.5;padding:1px 8px;border-radius:6px}
html[data-lang="ne"] .up-kind{font-size:12.5px;letter-spacing:0}
.up-k-data{background:var(--accent-soft);color:var(--accent-ink)}
.up-k-page{background:var(--accent);color:var(--on-accent,#fff)}
.up-k-correction{background:var(--surface-2);color:var(--ink-2)}
.up-k-issue{background:color-mix(in srgb,var(--warn) 14%,transparent);color:var(--warn-ink)}
.up-t{font-size:19px;font-weight:650;letter-spacing:-.01em;line-height:1.3;text-wrap:balance;overflow-wrap:anywhere}
.up-t a{color:var(--ink);text-decoration:underline;text-decoration-color:var(--line-2);text-decoration-thickness:1px}
.up-t a:hover{color:var(--accent-ink);text-decoration-color:currentColor}
.up-nums{display:flex;flex-wrap:wrap;margin:0;padding:0;list-style:none;font-size:15px;color:var(--ink-2)}
.up-nums li{white-space:nowrap}
.up-nums li:not(:last-child)::after{content:"·";margin:0 8px;color:var(--muted)}
.up-nums b{color:var(--ink);font-weight:700}
.up-cov{font-size:14px;color:var(--muted);max-width:75ch}
.up-tps{font-size:14.5px;max-width:75ch}
.up-lab{color:var(--muted);font-weight:600;margin-right:6px}
.up-was{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 8px;font-size:15px}
.up-was .up-lab{margin-right:0}
.up-old{color:var(--ink-2)}
.up-arr{color:var(--muted)}
.up-was b{font-size:17px}
.up-why{color:var(--ink-2);max-width:75ch}

/* ---------- details: measures, files, problems ---------- */
.up-more{border-top:1px solid var(--line);margin-top:4px}
.up-more>summary{display:inline-flex;align-items:center;gap:8px;min-height:40px;padding-right:8px;font-size:14.5px;font-weight:600;color:var(--accent-ink);cursor:pointer;list-style:none;border-radius:8px;transition:color var(--ease)}
.up-more>summary::-webkit-details-marker{display:none}
.up-more>summary::before{content:"";flex:none;width:7px;height:7px;margin:0 3px 2px 2px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg);transition:transform var(--ease)}
.up-more[open]>summary::before{transform:rotate(-135deg);margin-bottom:-4px}
.up-more>summary:hover{color:var(--accent)}
.up-more-b{display:grid;gap:16px;padding:4px 0 6px}
.up-more-b .up-lab{font-size:13px;letter-spacing:.04em;text-transform:uppercase}
html[data-lang="ne"] .up-more-b .up-lab{letter-spacing:0;text-transform:none;font-size:14px}
.up-ul,.up-ol{margin:6px 0 0;padding-left:20px;display:grid;gap:6px;font-size:15px;max-width:75ch}
.up-ul a,.up-ol{overflow-wrap:anywhere}
.up-ul li::marker{color:var(--muted)}
.up-ol{font-size:14.5px;color:var(--ink-2)}
.up-ol b{color:var(--ink)}
.up-more-b .small{margin-top:6px}

/* ---------- earlier months ---------- */
.up-old-sec{margin-top:24px;padding-top:24px;border-top:1px solid var(--line)}
.up-old-sec h3{font-size:19px}
.up-old-sec td:first-child{white-space:nowrap}

@media (prefers-reduced-motion:reduce){.up-more>summary::before{transition:none}}
