/* ===== VERSION HISTORY (js/version-history.js) ===== */
.vh-card-meta { display: block; margin-top: 8px; font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--text-muted); }
.vh-new {
  margin-left: 4px; padding: 1px 6px; border-radius: 999px;
  background: var(--accent-primary-dim); color: var(--accent-primary);
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700;
}

.portal-version a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* Type chips */
.vh-type { padding: 1px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.vh-type-added { background: rgba(15,122,106,0.13); color: #0f7a6a; }
.vh-type-improved { background: rgba(15,108,189,0.12); color: #0f6cbd; }
.vh-type-updated { background: rgba(107,63,160,0.13); color: #6b3fa0; }
.vh-type-fixed { background: rgba(180,87,15,0.13); color: #b4570f; }
body[data-theme="dark-mode"] .vh-type-added { color: #5fd0bd; }
body[data-theme="dark-mode"] .vh-type-improved { color: #7ab8ef; }
body[data-theme="dark-mode"] .vh-type-updated { color: #c3a0ec; }
body[data-theme="dark-mode"] .vh-type-fixed { color: #f0a868; }

/* Timeline */
.vh-timeline { list-style: none; margin: 0; padding: 0; }
.vh-entry { position: relative; padding: 0 0 16px 18px; border-left: 2px solid var(--border-subtle); margin-left: 4px; }
.vh-entry::before {
  content: ''; position: absolute; left: -6px; top: 4px; width: 10px; height: 10px;
  border-radius: 50%; background: var(--bg-card); border: 2px solid var(--accent-primary);
}
.vh-entry:last-child { border-left-color: transparent; padding-bottom: 4px; }
.vh-entry-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 4px; }
.vh-entry-tool { font-weight: 700; color: var(--text-primary); text-decoration: none; }
.vh-entry-tool:hover { color: var(--accent-primary); }
.vh-ver, .vh-mono { font-family: 'JetBrains Mono', monospace; font-size: 12px; font-weight: 700; color: var(--text-primary); }
.vh-date { font-size: 12px; color: var(--text-muted); }
.vh-items { margin: 0; padding-left: 18px; color: var(--text-secondary); font-size: 13px; line-height: 1.55; }
.vh-items li + li { margin-top: 2px; }

/* Drawer */
.vh-drawer-wrap { position: fixed; inset: 0; z-index: 300; }
.vh-backdrop { position: absolute; inset: 0; background: rgba(20,16,12,0.35); }
.vh-drawer {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(460px, 100%);
  background: var(--bg-card); border-left: 1px solid var(--border);
  display: flex; flex-direction: column; box-shadow: -12px 0 32px rgba(0,0,0,0.12);
}
.vh-drawer-head { display: flex; justify-content: space-between; gap: 12px; padding: 20px 20px 14px; border-bottom: 1px solid var(--border-subtle); }
.vh-drawer-head h2 { font-family: 'Sora', sans-serif; font-size: 18px; margin: 2px 0 4px; color: var(--text-primary); }
.vh-drawer-head p { font-size: 12px; color: var(--text-muted); }
.vh-kicker { font-family: 'JetBrains Mono', monospace; font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent-primary); }
.vh-close { width: 32px; height: 32px; flex: none; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--bg-card); color: var(--text-secondary); font-size: 20px; line-height: 1; cursor: pointer; }
.vh-close:hover { border-color: var(--accent-primary); color: var(--accent-primary); }
.vh-drawer .vh-timeline { flex: 1; overflow-y: auto; padding: 18px 20px 8px; }
.vh-drawer-foot { padding: 12px 20px; border-top: 1px solid var(--border-subtle); font-size: 13px; }
.vh-drawer-foot a { color: var(--accent-primary); font-weight: 600; }

/* What's new page */
.vh-page { display: flex; flex-direction: column; gap: 18px; }
.vh-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.vh-filter {
  padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--bg-card); color: var(--text-secondary); font-size: 13px; cursor: pointer;
}
.vh-filter:hover { border-color: var(--accent-primary); }
.vh-filter.on { background: var(--accent-primary); border-color: var(--accent-primary); color: #ffffff; font-weight: 600; }
.vh-columns { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.vh-feed, .vh-versions { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; min-width: 0; }
.vh-versions { overflow-x: auto; position: sticky; top: 16px; }
.vh-day + .vh-day { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border-subtle); }
.vh-day-title { font-family: 'Sora', sans-serif; font-size: 15px; color: var(--text-primary); margin-bottom: 12px; }
.vh-empty { color: var(--text-muted); font-size: 13px; }
.vh-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.vh-table th { text-align: left; font-family: 'JetBrains Mono', monospace; font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); padding: 0 8px 8px 0; }
.vh-table td { padding: 7px 8px 7px 0; border-top: 1px solid var(--border-subtle); color: var(--text-secondary); white-space: nowrap; }
.vh-table td a { color: var(--text-primary); font-weight: 600; text-decoration: none; }
.vh-table td a:hover { color: var(--accent-primary); }
.vh-link { background: none; border: 0; padding: 0; color: var(--accent-primary); font-size: 13px; font-weight: 600; cursor: pointer; }

@media (max-width: 1100px) {
  .vh-columns { grid-template-columns: minmax(0, 1fr); }
  .vh-versions { position: static; }
}

/* What's new tabs and Microsoft updates (version-history.js) */
.vh-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 18px; }
.vh-tab {
  padding: 9px 14px; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px;
  background: none; color: var(--text-secondary); font-size: 14px; font-weight: 600; cursor: pointer;
}
.vh-tab:hover { color: var(--text-primary); }
.vh-tab.on { color: var(--accent-primary); border-bottom-color: var(--accent-primary); }
.vh-tab-count { margin-left: 4px; padding: 1px 7px; border-radius: 999px; background: var(--accent-primary-dim); color: var(--accent-primary); font-size: 11px; }
.ms-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.ms-field { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-secondary); }
.ms-field select, .ms-search {
  padding: 6px 10px; border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: var(--bg-card); color: var(--text-primary); font-size: 13px;
}
.ms-search { flex: 1 1 220px; min-width: 0; }
.ms-count { font-size: 12px; color: var(--text-muted); }
.ms-btn {
  padding: 5px 11px; border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: var(--bg-card); color: var(--text-secondary); font-size: 12px; font-weight: 600; cursor: pointer;
}
.ms-btn:hover { border-color: var(--accent-primary); color: var(--accent-primary); }
.ms-btn.done { border-color: #0f7a6a; color: #0f7a6a; }
.ms-note { font-size: 12.5px; color: var(--text-muted); line-height: 1.5; max-width: 900px; }
.ms-list { list-style: none; margin: 0; padding: 0; }
.ms-item { padding: 12px 0; border-top: 1px solid var(--border-subtle); }
.ms-item:first-child { border-top: 0; padding-top: 0; }
.ms-title { font-weight: 700; color: var(--text-primary); text-decoration: none; font-size: 14px; line-height: 1.4; }
.ms-title:hover { color: var(--accent-primary); text-decoration: underline; }
.ms-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: 5px; font-size: 12.5px; color: var(--text-secondary); }
.ms-meta a { color: var(--accent-primary); text-decoration: none; font-weight: 600; }
.ms-url { margin-top: 4px; font-family: 'JetBrains Mono', monospace; font-size: 11.5px; color: var(--text-muted); overflow-wrap: anywhere; }
.ms-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.ms-status { padding: 1px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; white-space: nowrap; background: rgba(107,63,160,0.13); color: #6b3fa0; }
.ms-st-ga, .ms-st-launched { background: rgba(15,122,106,0.13); color: #0f7a6a; }
.ms-st-preview, .ms-st-rolling, .ms-st-in-development { background: rgba(15,108,189,0.12); color: #0f6cbd; }
.ms-st-retiring, .ms-st-change { background: rgba(180,87,15,0.13); color: #b4570f; }
body[data-theme="dark-mode"] .ms-status { color: #c3a0ec; }
body[data-theme="dark-mode"] .ms-st-ga, body[data-theme="dark-mode"] .ms-st-launched { color: #5fd0bd; }
body[data-theme="dark-mode"] .ms-st-preview, body[data-theme="dark-mode"] .ms-st-rolling, body[data-theme="dark-mode"] .ms-st-in-development { color: #7ab8ef; }
body[data-theme="dark-mode"] .ms-st-retiring, body[data-theme="dark-mode"] .ms-st-change { color: #f0a868; }
