/* What's New (whats-new.js, owner 11/5: "I don't want it to be a huge eye sore"): a quiet row at the bottom of the sidebar /
   phone menu + a side panel of short update cards. Prefix .wnew-* */

/* sidebar row: looks like a menu item, a small gold dot + "New" while there's something you haven't opened */
.site-sidebar .wnew-btn { position: relative; display: flex; align-items: center; gap: 11px; width: 100%; min-height: 0 !important; height: auto; padding: 9px 12px !important;
  border: 1px solid transparent; border-radius: 10px; background: transparent; color: rgba(255,255,255,.62); cursor: pointer; text-align: left;
  font: 900 11px/1.2 "Trebuchet MS", "Arial Narrow", Arial, sans-serif; letter-spacing: 1.6px; text-transform: uppercase; transition: background .18s, color .18s, border-color .18s; }
.site-sidebar .wnew-btn:hover, .site-sidebar .wnew-btn:focus-visible { background: rgba(255,255,255,.05); color: rgba(255,255,255,.88); outline: none; }
.site-sidebar .wnew-btn svg { flex: 0 0 auto; width: 18px; height: 18px; color: #c9a8ff; }
.site-sidebar .wnew-btn > span { flex: 1; }
.wnew-dot { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 5px; font: 700 10px/1 system-ui, sans-serif; letter-spacing: .08em; color: #ffd67a; font-style: normal; }
.wnew-dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #ffc44d; box-shadow: 0 0 0 3px rgba(255,196,77,.16); }
.wnew-dot[hidden] { display: none; }
.site-sidebar .wnew-btn.wnew-fresh { color: rgba(255,255,255,.86); }
/* phone menu button: the same small dot */
.mobile-hamburger { position: relative; }
.wnew-ham-dot { position: absolute; top: 7px; right: 7px; width: 8px; height: 8px; border-radius: 50%; background: #ffc44d; box-shadow: 0 0 0 2px #120c06; pointer-events: none; }

/* the panel: slides in from the right (desktop), full screen on phones */
html.wnew-lock, html.wnew-lock body { overflow: hidden; }
.wnew-ov { position: fixed; inset: 0; z-index: 5200; display: flex; justify-content: flex-end; background: rgba(4,4,8,0); transition: background .2s ease; }
.wnew-ov.on { background: rgba(4,4,8,.62); }
.wnew-panel { display: flex; flex-direction: column; width: min(460px, 100%); height: 100%; box-sizing: border-box; padding-top: var(--safe-top, 0px);
  background: linear-gradient(180deg, #15131c, #0c0c11 40%); border-left: 1px solid rgba(255,255,255,.09); box-shadow: -24px 0 60px rgba(0,0,0,.55);
  transform: translateX(28px); opacity: 0; transition: transform .22s cubic-bezier(.2,.8,.2,1), opacity .18s ease; }
.wnew-ov.on .wnew-panel { transform: none; opacity: 1; }
.wnew-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 20px 20px 14px; border-bottom: 1px solid rgba(255,255,255,.07); }
.wnew-head h2 { margin: 0; font: 800 28px/1 "Barlow Condensed", system-ui, sans-serif; letter-spacing: .02em; color: #fff; text-transform: none; }
.wnew-head p { margin: 6px 0 0; font: 500 14px/1.3 "Barlow Condensed", system-ui, sans-serif; letter-spacing: .02em; color: #8d95a5; }
.wnew-x { flex: 0 0 auto; display: grid; place-items: center; width: 38px; height: 38px; min-height: 0 !important; padding: 0 !important; border-radius: 12px;
  border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.04); color: #cfd5df; font: 600 16px/1 system-ui, sans-serif; cursor: pointer; }
.wnew-x:hover { background: rgba(255,255,255,.1); color: #fff; }
.wnew-list { flex: 1; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 6px 16px calc(24px + env(safe-area-inset-bottom, 0px)); }
.wnew-empty { margin: 30px 4px; color: #8d95a5; font: 500 15px/1.4 "Barlow Condensed", system-ui, sans-serif; text-align: center; }
.wnew-day { display: grid; gap: 10px; padding-top: 14px; }
.wnew-day h4 { display: flex; align-items: center; gap: 10px; margin: 0 2px 2px; font: 700 12.5px/1 "Barlow Condensed", system-ui, sans-serif; letter-spacing: .2em; text-transform: uppercase; color: #7d8593; }
.wnew-day h4::after { content: ""; flex: 1; height: 1px; background: rgba(255,255,255,.07); }
.wnew-card { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 14px; border-radius: 14px; border: 1px solid rgba(255,255,255,.07);
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.012)); }
.wnew-card.has-img { grid-template-columns: 64px minmax(0, 1fr); }
.wnew-thumb { width: 64px; height: 86px; border-radius: 9px; overflow: hidden; background: #0a0a0e; border: 1px solid rgba(255,255,255,.08); }
.wnew-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.wnew-thumb.contain { background: radial-gradient(circle at 50% 40%, rgba(197,139,255,.16), transparent 70%), #0d0c12; }
.wnew-thumb.contain img { object-fit: contain; padding: 6px 8px; box-sizing: border-box; }
.wnew-body { display: grid; gap: 8px; min-width: 0; align-content: start; }
.wnew-body h3 { display: flex; align-items: center; gap: 8px; margin: 0; font: 800 20px/1.1 "Barlow Condensed", system-ui, sans-serif; letter-spacing: .01em; color: #fff; text-transform: none; }
.wnew-new { flex: 0 0 auto; padding: 3px 7px 2px; border-radius: 999px; background: rgba(255,196,77,.14); border: 1px solid rgba(255,196,77,.4); color: #ffd67a;
  font: 700 10.5px/1 system-ui, sans-serif; letter-spacing: .1em; text-transform: uppercase; font-style: normal; }
.wnew-body ul { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.wnew-body li { display: grid; grid-template-columns: 70px minmax(0, 1fr); align-items: start; gap: 8px; color: #c4cad4; font: 500 15px/1.32 "Barlow Condensed", system-ui, sans-serif; letter-spacing: .01em; }
.wnew-tag { justify-self: stretch; margin-top: 1px; padding: 3px 0 2px; border-radius: 6px; font: 700 9.5px/1.1 system-ui, sans-serif; letter-spacing: .06em; text-transform: uppercase; text-align: center; }
.wnew-tag.t-added { color: #7ee3a0; background: rgba(49,209,124,.14); }
.wnew-tag { font-size: 10px !important; padding: 4px 0 3px !important; }
.wnew-tag.t-changed { color: #8cc4ff; background: rgba(61,154,255,.13); }
.wnew-tag.t-removed { color: #ff9a9a; background: rgba(255,77,77,.13); }
.wnew-tag.t-fixed { color: #ffd17a; background: rgba(255,196,77,.12); }
.wnew-go { justify-self: start; display: inline-flex; align-items: center; gap: 7px; min-height: 0 !important; height: 34px; margin-top: 4px; padding: 0 14px !important; border-radius: 999px;
  border: 1px solid rgba(201,168,255,.4); background: rgba(201,168,255,.1); color: #dcc8ff; font: 700 15px/1 "Barlow Condensed", system-ui, sans-serif; letter-spacing: .04em; text-transform: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.wnew-go span { transition: transform .15s; }
.wnew-go:hover, .wnew-go:focus-visible { color: #fff; background: rgba(201,168,255,.2); border-color: rgba(201,168,255,.7); outline: none; } .wnew-go:hover span { transform: translateX(3px); }
/* clearer layout (owner 11/5 night): unread updates get a gold edge, a short "N new" line on top, brighter day headers */
.wnew-sum { margin: 14px 2px 0; padding: 10px 12px; border-radius: 12px; background: rgba(255,196,77,.08); border: 1px solid rgba(255,196,77,.25); color: #e8d6a6; font: 600 15px/1.3 "Barlow Condensed", system-ui, sans-serif; letter-spacing: .02em; }
.wnew-sum b { color: #ffd67a; font-weight: 800; }
.wnew-card.is-new { border-color: rgba(255,196,77,.28); box-shadow: inset 3px 0 0 #ffc44d; background: linear-gradient(180deg, rgba(255,196,77,.06), rgba(255,255,255,.012)); }
.wnew-body h3 { flex-wrap: wrap; row-gap: 4px; }
.wnew-body h3 > span { min-width: 0; overflow-wrap: anywhere; }
.wnew-day h4 { color: #b9c0cc; font-size: 13.5px; letter-spacing: .16em; }
.wnew-body li { grid-template-columns: 66px minmax(0, 1fr); font-size: 15.5px; }
@media (max-width: 767px) {
  .wnew-panel { width: 100%; border-left: 0; }
  .wnew-head { padding: 16px 16px 12px; }
  .wnew-list { padding: 4px 12px calc(24px + env(safe-area-inset-bottom, 0px)); }
  .wnew-card { padding: 12px; gap: 12px; }
}
@media (prefers-reduced-motion: reduce) { .wnew-ov, .wnew-panel { transition: none; } }

/* owner 11/7: highlighted credit line (music: Beat by @diemasua) */
.wnew-credit { color: #ff3b3b; font-weight: 800; text-shadow: 0 0 8px rgba(255, 40, 40, .55); }
