/* Update log page (#updates). Layout, colours and type follow the guide page so both read as one
   document; the dark panel drawings (.ru) follow the 1.2.77 tool design. */

/* Page frame: same calm background and header as the guide. */
body[data-page="updates"]{background:#f6f8f5;background-attachment:scroll}
body[data-page="updates"] .topbar{background:#f6f8f5f5;border-bottom:1px solid #dce3dd;box-shadow:none;backdrop-filter:blur(12px)}
body[data-page="updates"] .footer{background:#f1f4ef;border-top-color:#dce3dd}
body[data-page="updates"] .pointer-light{display:none!important}
#updates .page-heading{margin-bottom:32px}
#updates .page-heading h1{font-size:clamp(32px,3.5vw,46px)}
#updates .page-heading .eyebrow{margin-bottom:12px}
#updates .page-heading>p{margin-top:12px;font-size:14px;max-width:62ch}

/* Sidebar + content, as in the guide. */
.updates-layout{display:grid;grid-template-columns:210px minmax(0,820px);gap:64px;justify-content:center;align-items:start}
.updates-sidebar{display:flex;flex-direction:column;gap:7px;position:sticky;top:calc(var(--navigation-height,88px) + 24px)}
.updates-sidebar>strong{font-size:13px;margin:0 0 8px;padding-inline:12px}
.updates-versions{display:grid;gap:6px}
.updates-versions a{display:flex;flex-direction:column;align-items:flex-start;text-align:left;gap:4px;padding:13px 14px;border:1px solid transparent;border-radius:8px;color:inherit;text-decoration:none;line-height:1.5}
.updates-versions a>strong{font-size:14px;display:flex;gap:8px;align-items:baseline;font-variant-numeric:tabular-nums}
.updates-versions a>strong em{font-style:normal;font-size:11px;font-weight:700;color:#087f83;background:#dcf1e7;border-radius:999px;padding:0 8px}
.updates-versions a>span{font-size:11px;line-height:1.7;color:#607a6e}
.updates-versions a:hover{background:#edf3ee;color:#285e4b}
.updates-versions a.is-current{background:#e4efe7;border-color:#b8cfc0;color:#185f49}
.updates-toc{display:grid;gap:2px;margin:14px 0 0;padding:12px 0 0 12px;border-top:1px solid #dce3dd}
.updates-toc>span{font-size:11px;color:#607a6e;margin-bottom:4px}
.updates-toc a{font-size:12px;color:#52685f;text-decoration:none;padding:3px 0}
.updates-toc a:hover{color:#087f80}
.updates-sidebar>.text-link{font-size:12px;margin:14px 12px 0}
.updates-sidebar a:focus-visible,.update-older>summary:focus-visible{outline:2px solid #268577;outline-offset:3px}

/* One version. */
.updates-content{min-width:0}
.update-entry{scroll-margin-top:calc(var(--navigation-height,88px) + 20px)}
.update-entry-head{display:grid;grid-template-columns:auto auto 1fr;align-items:center;gap:8px 10px;padding-bottom:20px;border-bottom:1px solid #c1ddd6}
.update-entry-head h2{grid-column:1/-1;margin:4px 0 0;font-size:27px;font-weight:600;letter-spacing:-.04em;line-height:1.4}
.update-entry-head p{grid-column:1/-1;margin:0;font-size:14px;line-height:1.85;color:#40605c;max-width:66ch}
.update-ver{font-size:13px;font-weight:700;color:#008f8b;border:1px solid #98cfbf;border-radius:999px;padding:1px 12px;font-variant-numeric:tabular-nums;justify-self:start}
.update-latest{font-size:11px;font-weight:700;color:#0d6b52;background:#d7f0e2;border-radius:999px;padding:1px 9px;justify-self:start}
.update-defaults{margin:0 0 30px;padding:16px 18px;border-radius:12px;background:#fff4df;border-left:3px solid #d99a2b}
.update-defaults strong{display:block;font-size:14px;color:#7a4f00;margin-bottom:6px}
.update-defaults ul{margin:0 0 8px!important}
.update-defaults p{margin:0!important;font-size:13px!important;color:#5c5240}
.update-section{padding:26px 0;border-top:1px solid #dce3dd;scroll-margin-top:calc(var(--navigation-height,88px) + 20px)}
.update-section h4{font-size:19px;margin:0 0 10px;line-height:1.45;letter-spacing:-.02em}
.update-new{display:inline-block;vertical-align:3px;font-size:11px;font-weight:700;color:#087f83;background:#dcf1e7;border-radius:999px;padding:0 9px;letter-spacing:.02em}
.update-styles{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,180px),1fr));gap:10px;margin:14px 0 18px}
.update-styles>div{display:grid;gap:3px;padding:12px 14px;border:1px solid #c1ddd6;border-radius:10px;background:rgba(255,255,255,.5);font-size:13px;line-height:1.7;min-width:0}
.update-styles b{font-size:14px;color:#185f49}
.update-notes{margin-top:8px;padding-top:18px;border-top:1px solid #dce3dd;font-size:13px;color:#5c7c79}
.update-notes ul{margin:6px 0 0!important}
.update-notes li{font-size:13px!important}

/* Earlier versions: one row each, opened on demand. */
.updates-older-title{font-size:13px;letter-spacing:.06em;color:#607a6e;margin:44px 0 10px;font-weight:700}
.update-older{border-top:1px solid #c1ddd6}
.update-older:last-child{border-bottom:1px solid #c1ddd6}
.update-older>summary{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:14px;align-items:center;padding:18px 4px;cursor:pointer;list-style:none}
.update-older>summary::-webkit-details-marker{display:none}
.update-older-copy{display:grid;gap:2px;min-width:0}
.update-older-copy b{font-size:15px;font-weight:650}
.update-older-copy small{font-size:12px;color:#607a6e}
.update-open{font-size:12px;color:#087f80;white-space:nowrap}
.update-open::after{content:" ▾"}
.update-older[open] .update-open::after{content:" ▴"}
.update-older-body{padding:0 4px 18px}
.update-older-body>p:first-child{font-size:14px;color:#40605c}

/* Package file names are long single words: let them wrap inside the step columns. */
.release-steps li{min-width:0;overflow-wrap:anywhere}

/* Guide: link into the log, and the Simple-view tip. */
.release-log-link{margin:18px 0 0}
.release-view-tip{margin-top:0}
.lag-view-note{padding:10px 14px;background:#e5f2ed;border-left:3px solid #389c8a;border-radius:0 8px 8px 0;font-size:13px}

/* ---- 1.2.77 panel drawings: flat dark cards, one accent ---- */
.ru{--ru-bg:#2a2c2f;--ru-card:#323438;--ru-line:rgba(255,255,255,.09);--ru-fill:rgba(255,255,255,.055);--ru-raise:#70777f;
 --ru-fg:#e6ebf0;--ru-mute:#99a3ad;--ru-desc:#b4bcc4;--ru-acc:#4db3f5;--ru-warn:#ffbd52;--ru-bad:#ff736b;
 background:var(--ru-bg);color:var(--ru-fg);border-radius:12px;padding:12px;font-size:12px;line-height:1.45;display:grid;gap:8px;border:1px solid #1b1d20}
.ru-card{background:var(--ru-card);border:1px solid var(--ru-line);border-radius:8px;padding:12px 14px;display:grid;gap:7px;box-shadow:0 2px 6px rgba(0,0,0,.18)}
.ru-group{display:flex;justify-content:space-between;gap:8px;align-items:baseline;font-weight:700;font-size:13.5px;padding-bottom:4px;border-bottom:1px solid var(--ru-line)}
.ru-group small{font-weight:400;font-size:10.5px;color:var(--ru-mute);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.ru-t{display:flex;justify-content:space-between;gap:8px;font-weight:700}
.ru-info{color:var(--ru-mute);font-weight:400}
.ru-d{font-size:10.5px;color:var(--ru-desc)}
.ru-sec{font-size:10.5px;font-weight:700;color:var(--ru-mute);margin-top:3px}
.ru-btn{border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.07);border-radius:6px;padding:3px 8px;text-align:center}
.ru-s{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.9fr) 40px;gap:8px;align-items:center}
.ru-s>span{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;position:relative}
.ru-s>span.ru-dot{overflow:visible}
.ru-s>span.ru-dot::before{content:"";position:absolute;left:-7px;top:50%;width:4px;height:4px;margin-top:-2px;border-radius:50%;background:var(--ru-acc)}
.ru-s i{height:4px;border-radius:2px;background:rgba(255,255,255,.12);position:relative}
.ru-s i b{position:absolute;left:0;top:0;bottom:0;border-radius:2px;background:var(--ru-acc)}
.ru-s i b::after{content:"";position:absolute;right:-7px;top:-5px;width:14px;height:14px;border-radius:50%;background:#f2f5f7;box-shadow:0 1px 2px rgba(0,0,0,.4)}
.ru-s em{font-style:normal;background:#1f2124;border-radius:3px;padding:0 4px;text-align:right;font-variant-numeric:tabular-nums}
.ru-tog{display:flex;gap:9px;align-items:center}
.ru-tog i{width:30px;height:16px;border-radius:8px;background:var(--ru-acc);position:relative;flex:none}
.ru-tog i::after{content:"";position:absolute;right:1px;top:1px;width:14px;height:14px;border-radius:50%;background:#fff}
.ru-seg{display:flex;background:var(--ru-fill);border:1px solid var(--ru-line);border-radius:7px;padding:2px}
.ru-seg span{flex:1;min-width:0;text-align:center;padding:2px 4px;font-size:10.5px;color:var(--ru-mute);border-radius:5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;position:relative}
.ru-seg span.on{background:var(--ru-raise);color:var(--ru-fg);font-weight:700;box-shadow:0 1px 1px rgba(0,0,0,.35),inset 0 0 0 1px rgba(255,255,255,.16)}
.ru-seg span.on::after{content:"";position:absolute;left:50%;bottom:1px;width:14px;height:2px;margin-left:-7px;border-radius:1px;background:var(--ru-acc)}
.ru-view{display:flex;justify-content:flex-end;align-items:center;gap:8px;font-size:10.5px;color:var(--ru-mute)}
.ru-view .ru-seg{width:118px;flex:none}
.ru-hint{font-size:10.5px;color:var(--ru-mute)}
.ru-chips{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.ru-chips span{border:1px solid rgba(255,255,255,.22);border-radius:999px;padding:1px 10px;font-size:11px}
.ru-chips span.on{background:rgba(77,179,245,.2);border-color:rgba(77,179,245,.65);color:var(--ru-acc);font-weight:700}
.ru-chips a{color:var(--ru-acc);font-size:11px}
.ru-head{display:flex;justify-content:space-between;align-items:baseline;gap:8px}
.ru-head b{font-size:14px}
.ru-badge{font-size:10.5px;font-weight:700;border-radius:999px;padding:0 9px}
.ru-badge.warn{background:rgba(255,189,82,.18);color:var(--ru-warn)}
.ru-bar{height:6px;border-radius:3px;background:var(--ru-fill);position:relative;overflow:hidden}
.ru-bar i{position:absolute;left:0;top:0;bottom:0;border-radius:3px}
.ru-bar i.tool{background:var(--ru-acc)}.ru-bar i.avatar{background:#878e96}
.ru-legend{display:flex;gap:12px;flex-wrap:wrap;font-size:10.5px;color:var(--ru-mute)}
.ru-legend span::before{content:"";display:inline-block;width:6px;height:6px;border-radius:50%;margin-right:5px;background:transparent}
.ru-legend .tool::before{background:var(--ru-acc)}.ru-legend .avatar::before{background:#878e96}
.ru-fig{display:flex;gap:8px;flex-wrap:wrap;align-items:baseline;font-size:10.5px;color:var(--ru-mute)}
.ru-fig b{color:var(--ru-acc);font-size:11.5px}
.ru-call{background:rgba(255,115,107,.10);border-radius:6px;padding:8px 10px 8px 14px;position:relative;display:grid;gap:6px}
.ru-call::before{content:"";position:absolute;left:5px;top:6px;bottom:6px;width:2px;border-radius:1px;background:var(--ru-bad)}
.ru-console{background:#1e1f21;color:#d8dde2;border-radius:10px;border:1px solid #111;font-family:var(--font-code,ui-monospace),Consolas,monospace;font-size:11.5px;line-height:1.55;overflow-x:auto}
.ru-console-bar{display:flex;gap:10px;padding:5px 10px;background:#2b2d30;color:#b8bec4;font-family:var(--font-ui,system-ui);border-radius:10px 10px 0 0}
.ru-console p{margin:0!important;padding:7px 10px;border-top:1px solid #2c2e31;font-size:11.5px!important;color:#d8dde2}
.ru-console mark{background:none;color:#ffb4ad}
.ru-scene{display:block;width:100%;height:auto;border-radius:12px;font-family:var(--font-ui,system-ui)}

/* Guide Q&A drawings follow the 1.2.77 panel: one flat accent, no title bars,
   segmented controls with a raised face. Overrides beginner-qa-diagrams.css. */
:is(#guide-beginner,#guide-general) .u{--u-acc:#4db3f5}
:is(#guide-beginner,#guide-general) .u-title::before{display:none}
:is(#guide-beginner,#guide-general) .u-btn.primary{background:var(--u-acc)}
:is(#guide-beginner,#guide-general) .u-sw::before{background:var(--u-acc)}
:is(#guide-beginner,#guide-general) .u-sw.off::before{background:#5b6265}
:is(#guide-beginner,#guide-general) .u-track i{background:var(--u-acc)}
:is(#guide-beginner,#guide-general) .u-tabs span.on::after{background:var(--u-acc)}
:is(#guide-beginner,#guide-general) .u-seg{display:flex;gap:0;padding:2px;border:1px solid rgba(255,255,255,.09);border-radius:7px;background:rgba(255,255,255,.055);overflow:visible}
:is(#guide-beginner,#guide-general) .u-seg span{flex:1;min-width:0;background:transparent;border-left:0;border-radius:5px;color:var(--u-muted);font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
:is(#guide-beginner,#guide-general) .u-seg span.on{background:#70777f;color:var(--u-text);font-weight:700;box-shadow:0 1px 1px rgba(0,0,0,.35),inset 0 0 0 1px rgba(255,255,255,.16)}
:is(#guide-beginner,#guide-general) .u-seg span.on::after{left:50%;right:auto;width:14px;margin-left:-7px;background:var(--u-acc)}
:is(#guide-beginner,#guide-general) .u-sec{font-size:11px;font-weight:700;color:var(--u-muted)}
:is(#guide-beginner,#guide-general) .u-chips{display:flex;flex-wrap:wrap;gap:6px}
:is(#guide-beginner,#guide-general) .u-chips span{border:1px solid rgba(255,255,255,.22);border-radius:999px;padding:1px 10px;font-size:11.5px}
:is(#guide-beginner,#guide-general) .u-chips span.on{background:rgba(77,179,245,.2);border-color:rgba(77,179,245,.65);color:var(--u-acc);font-weight:700}
:is(#guide-beginner,#guide-general) .u-budget{display:flex;justify-content:space-between;align-items:baseline;gap:8px}
:is(#guide-beginner,#guide-general) .u-budget b{font-size:14px}
:is(#guide-beginner,#guide-general) .u-budget span{font-size:11px;font-weight:700;color:#ffbd52;background:rgba(255,189,82,.18);border-radius:999px;padding:0 9px}
:is(#guide-beginner,#guide-general) .u-bar{height:6px;border-radius:3px;background:rgba(255,255,255,.055);position:relative;overflow:hidden}
:is(#guide-beginner,#guide-general) .u-bar i{position:absolute;left:0;top:0;bottom:0;width:96%;border-radius:3px;background:linear-gradient(90deg,#878e96 0 78%,var(--u-acc) 78% 100%)}

@media(max-width:1050px){.updates-layout{grid-template-columns:180px minmax(0,1fr);gap:36px}}
@media(max-width:760px){
 .updates-layout{grid-template-columns:1fr;gap:20px}
 .updates-sidebar{position:static}
 .updates-sidebar>strong,.updates-toc,.updates-sidebar>.text-link{display:none}
 .updates-versions{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
 .updates-versions a{padding:9px 10px;border-color:#dce3dd}
 .updates-versions a>span{display:none}
 .update-entry-head h2{font-size:23px}
 .update-older>summary{grid-template-columns:auto minmax(0,1fr)}
 .update-open{display:none}
}
@media(prefers-reduced-motion:no-preference){.updates-versions a{transition:background .2s,color .2s}}
