/* Modern Work Weekly — main.css */

:root {
  --color-bg: #080c12;
  --color-surface: #161b22;
  --color-border: #30363d;
  --color-text: #f0f6fc;
  --color-text-muted: #8b949e;
  --color-accent: #58a6ff;
  --color-accent-hover: #79b8ff;
  --color-badge-ep: #1c2d3f;
  --color-badge-ep-text: #79b8ff;
  --color-badge-ia: #1e1e3a;
  --color-badge-ia-text: #b392f0;
  --color-badge-sc: #2a1a1a;
  --color-badge-sc-text: #f97583;
  --color-badge-ai: #1a2a1a;
  --color-badge-ai-text: #85e89d;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  --max-width: 740px;
  --radius: 6px;
}


*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 17px; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
}

/* ── Ambient background glow ─────────────────────────────────────────── */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 75% 55% at 15% 8%,  rgba(55, 40, 130, 0.40) 0%, transparent 65%),
    radial-gradient(ellipse 60% 45% at 85% 75%, rgba(30, 60, 140, 0.30) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 55% 45%, rgba(80, 30, 120, 0.15) 0%, transparent 55%);
  pointer-events: none;
  animation: ambientShift 20s ease-in-out infinite alternate;
}

@keyframes ambientShift {
  0%   { opacity: 1;    transform: scale(1)    translate(0,    0); }
  40%  { opacity: 0.88; transform: scale(1.03) translate(1%,   0.8%); }
  100% { opacity: 1;    transform: scale(1)    translate(-1%, -0.5%); }
}

@media (prefers-reduced-motion: reduce) {
  body::before { animation: none; }
}

/* Ensure content sits above the glow layer */
main, .site-footer { position: relative; z-index: 1; }

main { flex: 1; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

a { color: var(--color-accent); text-decoration: none; }
a:hover { color: var(--color-accent-hover); text-decoration: underline; }

/* ── Header ─────────────────────────────────────────────────────────── */
.site-header {
  border-bottom: 1px solid var(--color-border);
  padding: 0.9rem 0;
  background: var(--color-bg);
  position: relative;
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.site-title {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.site-logo {
  height: 68px;
  width: auto;
  display: block;
}

.site-nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  font-size: 0.9rem;
}

.site-nav a,
.site-nav button {
  color: var(--color-text-muted);
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--color-text);
  text-decoration: none;
}

/* LinkedIn icon button */
.nav-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  padding: 4px;
  border-radius: 4px;
  transition: color 0.15s;
  text-decoration: none !important;
}
.nav-icon-btn:hover {
  color: var(--color-accent);
}

/* ── Portals dropdown ────────────────────────────────────────────────── */
.portals-dropdown {
  position: relative;
}

.portals-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.3rem 0.65rem;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: inherit;
  color: var(--color-text-muted);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  cursor: pointer;
  /* 3D effect */
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255,255,255,0.06);
  transition: color 0.1s, border-color 0.1s, box-shadow 0.1s, transform 0.1s;
}

.portals-toggle:hover {
  color: var(--color-text);
  border-color: var(--color-text-muted);
}

.portals-toggle:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255,255,255,0.06);
}

.portals-caret {
  font-size: 0.65rem;
  line-height: 1;
}

.portals-panel {
  position: absolute;
  top: calc(100% + 0.6rem);
  right: 0;
  z-index: 200;
  background: #0d1117;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.75);
  padding: 1rem 1.25rem;
  min-width: 500px;
}

.portals-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.portals-group-name {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.55rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.portals-badge {
  font-size: 0.65rem;
  font-weight: 500;
  color: #f0883e;
  background: rgba(240, 136, 62, 0.1);
  border: 1px solid rgba(240, 136, 62, 0.3);
  border-radius: 3px;
  padding: 0.1rem 0.35rem;
  align-self: flex-start;
}

.portals-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

/* Admin Center: Chrome/Edge top row, Private button spanning full width below */
.portals-buttons-admin {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
}

/* ── Portal browser buttons — 3D + color coded ───────────────────────── */
.portal-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.28rem 0.6rem;
  font-size: 0.72rem;
  font-weight: 600;
  font-family: inherit;
  border: 1px solid;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  /* 3D base */
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255,255,255,0.05);
  transition: box-shadow 0.1s, transform 0.1s, color 0.1s, border-color 0.1s;
}

.portal-btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255,255,255,0.05);
}

.portal-btn:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255,255,255,0.05);
}

/* Chrome — Google blue */
.portal-btn-chrome {
  color: #e8f0fe;
  border-color: #4285f4;
  background: rgba(66, 133, 244, 0.32);
  box-shadow: 0 3px 0 #1a56b0, inset 0 1px 0 rgba(255,255,255,0.08);
}
.portal-btn-chrome:hover {
  color: #6ba3f5;
  border-color: #6ba3f5;
  box-shadow: 0 4px 0 #1a56b0, inset 0 1px 0 rgba(255,255,255,0.05);
}
.portal-btn-chrome:active {
  box-shadow: 0 1px 0 #1a56b0, inset 0 1px 0 rgba(255,255,255,0.05);
}

/* Edge — Microsoft blue */
.portal-btn-edge {
  color: #cce4f7;
  border-color: #0078d4;
  background: rgba(0, 120, 212, 0.32);
  box-shadow: 0 3px 0 #004e8c, inset 0 1px 0 rgba(255,255,255,0.08);
}
.portal-btn-edge:hover {
  color: #2899f5;
  border-color: #2899f5;
  box-shadow: 0 4px 0 #004e8c, inset 0 1px 0 rgba(255,255,255,0.05);
}
.portal-btn-edge:active {
  box-shadow: 0 1px 0 #004e8c, inset 0 1px 0 rgba(255,255,255,0.05);
}

/* Private window — spans both columns, filled blue */
.portal-btn-private {
  color: #e8f0fe;
  border-color: #5a8dee;
  background: rgba(90, 141, 238, 0.30);
  box-shadow: 0 3px 0 #2a4fa0, inset 0 1px 0 rgba(255,255,255,0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  line-height: 1.2;
}
.portal-btn-private:hover {
  color: #fff;
  border-color: #7aaeff;
  background: rgba(90, 141, 238, 0.45);
  box-shadow: 0 4px 0 #2a4fa0, inset 0 1px 0 rgba(255,255,255,0.05);
}
.portal-btn-private:active {
  box-shadow: 0 1px 0 #3a5fa0, inset 0 1px 0 rgba(255,255,255,0.05);
}
.portal-btn-private-wide {
  grid-column: 1 / -1; /* span full width */
}
.portal-private-hint {
  font-size: 0.62rem;
  color: var(--color-text-muted);
  margin: 0.3rem 0 0 0;
  line-height: 1.3;
}

/* ── Deadline collapsible groups ─────────────────────────────────────── */
.deadline-group {
  border-bottom: 1px solid var(--color-border);
}

.deadline-group:last-of-type {
  border-bottom: none;
}

.deadline-group-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.25rem;
  border-left: 3px solid transparent;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.deadline-group-summary::-webkit-details-marker { display: none; }

.deadline-group-summary::after {
  content: '▾';
  font-size: 0.65rem;
  color: var(--color-text-muted);
  margin-left: auto;
  padding-left: 0.4rem;
}

.deadline-group[open] .deadline-group-summary::after {
  content: '▴';
}

.deadline-group-name {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.deadline-group-count {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--color-text-muted);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 0.05rem 0.4rem;
  margin-left: 0.4rem;
  margin-right: 0.25rem;
}

.deadline-group-items {
  padding-bottom: 0.4rem;
}

/* ── Hero ────────────────────────────────────────────────────────────── */
.hero {
  padding: 3rem 0 2rem;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 2rem;
}

.hero h1 {
  font-size: 2rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.hero-sub {
  font-size: 1rem;
  color: var(--color-text-muted);
  max-width: 520px;
  margin-bottom: 0.25rem;
}

.hero-byline {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

/* ── Post list ───────────────────────────────────────────────────────── */
.post-list { padding: 1rem 0 3rem; }

.post-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.post-card:hover {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 1px rgba(88, 166, 255, 0.15), 0 4px 16px rgba(0, 0, 0, 0.3);
}

.post-card:last-child { margin-bottom: 0; }

.post-card-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.post-card-title {
  font-size: 1.15rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
}

.post-card-title a { color: var(--color-text); }
.post-card-title a:hover { color: var(--color-accent); text-decoration: none; }

.meta-sep { color: var(--color-border); }

.post-card-desc {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}

.post-card-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

.topic-chip {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 10px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
}
.topic-chip:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.read-more {
  font-size: 0.85rem;
  font-weight: 500;
}

/* ── Post single ─────────────────────────────────────────────────────── */
.post { padding: 2rem 0 3rem; }

.post-header { margin-bottom: 2rem; border-bottom: 1px solid var(--color-border); padding-bottom: 1.25rem; }

.post-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.post-title {
  font-size: 1.6rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

.post-description {
  font-size: 1rem;
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
}

.post-tags .tag { margin-right: 0.25rem; }

/* ── Table of contents ───────────────────────────────────────────────── */
.toc-block {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-accent);
  border-radius: var(--radius);
  margin-bottom: 2.5rem;
  padding: 0;
}

.toc-label {
  display: block;
  padding: 0.75rem 1.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  cursor: pointer;
  user-select: none;
  list-style: none;
}

.toc-label::-webkit-details-marker { display: none; }

.toc-label::before {
  content: "▶ ";
  font-size: 0.6rem;
  color: var(--color-accent);
}

details[open] .toc-label::before { content: "▼ "; }

.toc-nav {
  padding: 0 1.25rem 1rem;
  border-top: 1px solid var(--color-border);
}

.toc-nav ul {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
}

.toc-nav ul ul {
  padding-left: 1rem;
  margin-top: 0.2rem;
}

.toc-nav li { margin-bottom: 0.25rem; }

.toc-nav a {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.toc-nav a:hover {
  color: var(--color-accent);
  text-decoration: none;
}

/* ── Post content ────────────────────────────────────────────────────── */
.post-content h2 {
  font-size: 0.85rem;
  font-weight: 500;
  margin: 2rem 0 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--color-border);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
}

.post-content h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 1.75rem 0 0.4rem;
  color: var(--color-accent);
  padding-left: 0.6rem;
  border-left: 3px solid var(--color-accent);
}

/* Prevent sticky header from hiding anchor targets when TOC links are clicked */
.post-content h2,
.post-content h3 {
  scroll-margin-top: 5rem;
}

/* Top 5 "jump to section" arrow links */
.top5-jump {
  display: inline-block;
  margin-left: 0.35rem;
  font-size: 0.75rem;
  color: var(--color-accent);
  opacity: 0.6;
  text-decoration: none;
  vertical-align: middle;
  transition: opacity 0.15s, transform 0.15s;
}
.top5-jump:hover {
  opacity: 1;
  transform: translateY(2px);
  text-decoration: none;
}

.post-content p { margin-bottom: 1rem; }

.post-content ul, .post-content ol {
  margin: 0.5rem 0 1rem 1.25rem;
}

.post-content li { margin-bottom: 0.35rem; }

.post-content code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 3px;
  padding: 0.1em 0.35em;
}

.post-content pre {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  overflow-x: auto;
  margin: 1rem 0;
  font-size: 0.85rem;
  line-height: 1.5;
}

.post-content pre code {
  background: none;
  border: none;
  padding: 0;
}

.post-content blockquote {
  border-left: 3px solid var(--color-border);
  margin: 1rem 0;
  padding: 0.5rem 0 0.5rem 1rem;
  color: var(--color-text-muted);
  font-style: italic;
}

.post-content hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 2rem 0;
}

.post-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin: 1rem 0;
}

.post-content th, .post-content td {
  border: 1px solid var(--color-border);
  padding: 0.5rem 0.75rem;
  text-align: left;
}

.post-content th {
  background: var(--color-surface);
  font-weight: 500;
}

/* ── Badges ──────────────────────────────────────────────────────────── */
.cat-badge, .tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 500;
  padding: 2px 7px;
  border-radius: 10px;
}

.cat-badge {
  background: var(--color-surface);
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
}

.tag {
  color: var(--color-text-muted);
  font-size: 0.8rem;
}

/* ── Sources block ───────────────────────────────────────────────────── */
.sources-block {
  margin-top: 2.5rem;
  padding: 1rem 1.25rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-accent);
  border-radius: var(--radius);
}

.sources-label {
  display: list-item;   /* keeps the browser disclosure triangle */
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  cursor: pointer;
  user-select: none;
}

.sources-block[open] .sources-label {
  margin-bottom: 0.6rem;
}

.sources-content ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sources-content li {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  margin-bottom: 0.3rem;
  padding-left: 0.75rem;
  border-left: 1px solid var(--color-border);
}

.sources-content li:last-child { margin-bottom: 0; }

.sources-content a {
  color: var(--color-text-muted);
}

.sources-content a:hover {
  color: var(--color-accent);
}

/* ── Post footer ─────────────────────────────────────────────────────── */
.post-footer {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--color-border);
}

.share-block {
  margin-bottom: 1.25rem;
}

.share-block p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}

.share-btn {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  background: var(--color-surface);
}

.share-btn:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  text-decoration: none;
}

.post-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 1rem;
}

.post-nav-arrows {
  display: flex;
  gap: 0.4rem;
}

.post-nav-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 500;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  color: var(--color-text-muted);
  background: var(--color-surface);
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
  white-space: nowrap;
}

.post-nav-btn:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  text-decoration: none;
}

.post-nav-back {
  font-weight: 600;
}

/* ── Admin toast notification ─────────────────────────────────────────── */
.admin-toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(1rem);
  background: var(--color-text);
  color: var(--color-bg);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 9999;
}

.admin-toast.admin-toast-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── Health Card ─────────────────────────────────────────────────────── */
.health-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 3px solid #f78166;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin: 0 0 2rem;
}

.health-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.health-card-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #f78166;
}

.health-live-link {
  font-size: 0.78rem;
  color: var(--color-accent);
  text-decoration: none;
  white-space: nowrap;
}
.health-live-link:hover { text-decoration: underline; }

/* Source groups */
.health-source-group {
  margin-bottom: 0.75rem;
}
.health-source-group:last-of-type { margin-bottom: 0.5rem; }

.health-source-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  background: rgba(247, 129, 102, 0.07);
  border: 1px solid rgba(247, 129, 102, 0.2);
  border-radius: 5px;
  padding: 0.35rem 0.65rem;
  margin-bottom: 0.35rem;
  transition: background 0.15s;
}
.health-source-header:hover { background: rgba(247, 129, 102, 0.14); }

.health-source-name {
  font-size: 0.78rem;
  font-weight: 600;
  color: #f78166;
}

.health-source-badge {
  font-size: 0.68rem;
  font-weight: 700;
  background: rgba(247, 129, 102, 0.2);
  color: #f78166;
  border-radius: 10px;
  padding: 0.1em 0.55em;
}

.health-scroll-box {
  max-height: 80px;
  overflow-y: auto;
  margin: 0.2rem 0 0.25rem 0.25rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(247,129,102,0.3) transparent;
}

.health-scroll-box::-webkit-scrollbar {
  width: 3px;
}
.health-scroll-box::-webkit-scrollbar-track {
  background: transparent;
}
.health-scroll-box::-webkit-scrollbar-thumb {
  background: rgba(247,129,102,0.4);
  border-radius: 2px;
}

.health-tick {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  padding: 0.1rem 0.25rem 0.1rem 0.6rem;
  border-left: 2px solid rgba(247, 129, 102, 0.3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.health-view-all {
  display: block;
  font-size: 0.78rem;
  color: var(--color-accent);
  text-decoration: none;
  text-align: right;
  margin-top: 0.5rem;
}
.health-view-all:hover { text-decoration: underline; }

.health-empty {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin: 0 0 0.75rem;
}
.health-empty a { color: var(--color-accent); }

.health-card-footer {
  padding-top: 0.6rem;
  margin-top: 0.6rem;
  border-top: 1px solid var(--color-border);
  font-size: 0.72rem;
  color: var(--color-text-muted);
}

/* ── Health Page ─────────────────────────────────────────────────────── */
.health-page { padding: 1rem 0 3rem; }

.health-page-header { margin-bottom: 1.5rem; }
.health-page-header h1 { margin-bottom: 0.5rem; }
.health-page-sub { color: var(--color-text-muted); font-size: 0.9rem; }
.health-page-sub a { color: var(--color-accent); }

.health-page-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.health-summary-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  padding: 0.3em 0.8em;
  font-size: 0.8rem;
  color: var(--color-text);
  text-decoration: none;
}
.health-summary-chip:hover { border-color: var(--color-accent); color: var(--color-accent); }
.chip-count {
  background: rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 0.05em 0.45em;
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.health-page-source {
  margin-bottom: 2.5rem;
  scroll-margin-top: 4rem;
}

.health-page-source-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

.health-page-source-name {
  font-size: 1rem;
  font-weight: 600;
  color: #f78166;
  margin: 0;
}

.health-page-source-link {
  font-size: 0.8rem;
  color: var(--color-accent);
  text-decoration: none;
}
.health-page-source-link:hover { text-decoration: underline; }

.health-page-item-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.health-page-item {
  border-left: 3px solid var(--color-border);
  padding-left: 1rem;
}

.health-page-item-title {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  display: block;
  margin-bottom: 0.25rem;
}
.health-page-item-title:hover { color: var(--color-accent); }

.health-page-item-body {
  font-size: 0.83rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin: 0;
}

/* ── Collapsible Sections ────────────────────────────────────────────── */

/* ── Top 5 ── */
.top5-section { margin-bottom: 2rem; }

.top5-heading {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
}

.top5-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.top5-item {
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--item-color, var(--color-accent));
  border-radius: 6px;
  overflow: hidden;
  background: var(--color-surface);
}

/* display:flex on summary kills the native browser marker cross-browser */
.top5-summary {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  cursor: pointer;
  user-select: none;
  list-style: none;
}
.top5-summary::-webkit-details-marker { display: none; }

.top5-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--item-color, var(--color-accent));
  color: #0d1117;
  font-size: 0.7rem;
  font-weight: 800;
  flex-shrink: 0;
}

.top5-title {
  flex: 1;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.3;
}

.top5-chevron {
  width: 0.5rem;
  height: 0.5rem;
  border-right: 2px solid var(--color-text-muted);
  border-bottom: 2px solid var(--color-text-muted);
  transform: rotate(45deg);
  flex-shrink: 0;
  transition: transform 0.2s;
  margin-right: 0.25rem;
}
.top5-item[open] .top5-chevron {
  transform: rotate(225deg);
}

.top5-body {
  padding: 0.75rem 1rem 0.75rem 3.25rem;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  border-top: 1px solid var(--color-border);
}

/* ── Category Sections ── */
.section-collapsible {
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--cat-color, var(--color-accent));
  border-radius: 8px;
  margin-bottom: 0.75rem;
  overflow: hidden;
  background: var(--color-surface);
}

/* display:flex kills the native browser marker cross-browser */
.section-summary {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.875rem 1.25rem;
  cursor: pointer;
  user-select: none;
  list-style: none;
}
.section-summary::-webkit-details-marker { display: none; }

.section-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.section-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--cat-color, var(--color-accent));
}

.section-right {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

.section-count {
  font-size: 0.7rem;
  color: var(--color-text-muted);
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 0.1em 0.55em;
  white-space: nowrap;
}

.section-chevron {
  width: 0.45rem;
  height: 0.45rem;
  border-right: 2px solid var(--color-text-muted);
  border-bottom: 2px solid var(--color-text-muted);
  transform: rotate(45deg);
  transition: transform 0.2s;
  flex-shrink: 0;
}
.section-collapsible[open] .section-chevron {
  transform: rotate(225deg);
}

.section-preview {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-style: italic;
}

.section-collapsible[open] > .section-summary {
  border-bottom: 1px solid var(--color-border);
}

/* Content wrapper — gives consistent left/right padding inside expanded sections */
.section-body {
  padding: 1rem 1.25rem;
  margin: 0;
}

/* Strip default browser list indentation (visual indent comes from .section-body padding) */
.section-collapsible ul,
.section-collapsible ol {
  padding-left: 0;
  list-style: none;
}

/* ── Article headlines inside expanded category sections ── */

/*
 * Two formats exist depending on how Claude structured the markdown:
 *   (A) li with a leading <strong> — the standard format
 *   (B) standalone <h3> followed by <p> — override to match (A) visually
 * Both render identically: bold white title block + muted body text.
 */

/*
 * Shared title treatment — four formats Claude may emit:
 *   (A) tight list:  li > strong            (li items with no blank line between)
 *   (B) loose list:  li > p > strong        (li items separated by blank lines)
 *   (C) h3 heading:  standalone <h3>
 *   (D) h4 heading:  standalone <h4>        (occasional fallback)
 * All render identically: bold white block title, separator between items.
 */
.section-collapsible li > strong:first-of-type,
.section-collapsible li > b:first-of-type,
.section-collapsible li > p:first-of-type > strong:first-of-type,
.section-collapsible li > p:first-of-type > b:first-of-type,
.section-collapsible h3,
.section-collapsible h4 {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.4;
  letter-spacing: 0.01em;
  /* Reset h3/h4-specific decorations from .post-content h3 */
  border-left: none;
  padding-left: 0;
  margin: 0 0 0.2rem;
}

/* Row separation for li items (formats A + B) */
.section-collapsible li {
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  list-style: none;
  margin-left: 0;
  font-size: 0.82rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}
.section-collapsible li:last-child {
  border-bottom: none;
}

/* Loose list: goldmark wraps each li's content in a <p> — mute it to match */
.section-collapsible li > p {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin: 0.1rem 0 0;
}

/* Row separation for h3 + p items (format B) */
.section-collapsible h3 {
  padding-top: 0.6rem;
  border-top: 1px solid rgba(255,255,255,0.04);
}
.section-collapsible h3:first-child {
  border-top: none;
  padding-top: 0;
}

/* Body / paragraph text after an h3 title (format B) */
.section-collapsible h3 + p,
.section-collapsible h3 ~ p {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin: 0.15rem 0 0.5rem;
}

/* ── Post page wide container ────────────────────────────────────────── */
.main-wide {
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── 3-column post layout ────────────────────────────────────────────── */
.post-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr) 240px;
  gap: 1.5rem;
  align-items: start;
}

/* Tighten sidebar columns when viewport is narrower */
@media (max-width: 1240px) {
  .post-layout {
    grid-template-columns: 200px minmax(0, 1fr) 200px;
  }
}

/* Hide sidebars on tablet/mobile — content is king */
@media (max-width: 1060px) {
  .post-layout {
    grid-template-columns: 1fr;
  }
  .post-sidebar {
    display: none;
  }
}

/* Sticky sidebar columns scroll with content, then pin */
.post-sidebar {
  position: sticky;
  top: 4.5rem;
  max-height: calc(100vh - 5rem);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.08) transparent;
}
.post-sidebar::-webkit-scrollbar { width: 3px; }
.post-sidebar::-webkit-scrollbar-track { background: transparent; }
.post-sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 2px; }

/* Homepage right sidebar: calendar grid floats, upcoming list scrolls.
   Override overflow so the sidebar itself doesn't scroll as a whole. */
.home-layout .post-sidebar-right {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.calendar-sidebar {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

/* Calendar month grid — pinned, never scrolls away */
#deadline-calendar {
  flex-shrink: 0;
}

/* Upcoming list — takes remaining height and scrolls independently */
#deadline-upcoming {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.08) transparent;
}
#deadline-upcoming::-webkit-scrollbar { width: 3px; }
#deadline-upcoming::-webkit-scrollbar-track { background: transparent; }
#deadline-upcoming::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 2px; }

/* ── Sidebar panels (shared card shell) ──────────────────────────────── */
.sidebar-panel {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 1rem;
  font-size: 0.82rem;
}

.sidebar-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.55rem 0.875rem;
  border-bottom: 1px solid var(--color-border);
  background: rgba(0, 0, 0, 0.12);
}

.sidebar-panel-label {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.sidebar-label-alert    { color: #f78166; }
.sidebar-label-calendar { color: var(--color-accent); }

.sidebar-panel-ext {
  font-size: 0.68rem;
  color: var(--color-accent);
  text-decoration: none;
  white-space: nowrap;
}
.sidebar-panel-ext:hover { text-decoration: underline; }

.sidebar-panel-hint {
  font-size: 0.62rem;
  color: var(--color-text-muted);
  font-style: italic;
}

.sidebar-panel-footer {
  padding: 0.35rem 0.875rem;
  font-size: 0.62rem;
  color: var(--color-text-muted);
  border-top: 1px solid var(--color-border);
  background: rgba(0,0,0,0.12);
}

.sidebar-view-all {
  display: block;
  font-size: 0.72rem;
  color: var(--color-accent);
  text-align: center;
  padding: 0.45rem 0.875rem;
  border-top: 1px solid var(--color-border);
  text-decoration: none;
  transition: background 0.15s;
}
.sidebar-view-all:hover { background: rgba(88, 166, 255, 0.06); text-decoration: none; }

.sidebar-empty {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  padding: 0.75rem 0.875rem;
  margin: 0;
}

/* ── Health sidebar — collapsible source accordions ──────────────────── */
.health-sidebar .sidebar-source {
  border-bottom: 1px solid var(--color-border);
}
.health-sidebar .sidebar-source:last-of-type {
  border-bottom: none;
}

.sidebar-source-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.45rem 0.875rem;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background 0.12s;
}
.sidebar-source-summary::-webkit-details-marker { display: none; }
.sidebar-source-summary::marker { display: none; }
.sidebar-source-summary:hover { background: rgba(247, 129, 102, 0.06); }

.sidebar-source-name {
  font-size: 0.75rem;
  font-weight: 600;
  color: #f78166;
  flex: 1;
}

.sidebar-source-badge {
  font-size: 0.62rem;
  font-weight: 700;
  background: rgba(247, 129, 102, 0.15);
  color: #f78166;
  border-radius: 10px;
  padding: 0.1em 0.5em;
  flex-shrink: 0;
}

/* Arrow indicator — avoids the native triangle */
.sidebar-source-summary::after {
  content: "▶";
  font-size: 0.5rem;
  color: var(--color-text-muted);
  transition: transform 0.15s;
  flex-shrink: 0;
}
.sidebar-source[open] > .sidebar-source-summary::after {
  transform: rotate(90deg);
}

.sidebar-source-items {
  list-style: none;
  padding: 0.3rem 0.875rem 0.5rem 0.875rem;
  margin: 0;
  border-top: 1px solid var(--color-border);
  background: rgba(0, 0, 0, 0.12);
}

.sidebar-source-item {
  font-size: 0.72rem;
  color: var(--color-text-muted);
  padding: 0.2rem 0 0.2rem 0.5rem;
  border-left: 2px solid rgba(247, 129, 102, 0.25);
  margin-bottom: 0.2rem;
  line-height: 1.4;
}
.sidebar-source-item:last-child { margin-bottom: 0; }

.sidebar-source-item a {
  color: var(--color-text-muted);
  text-decoration: none;
  display: block;
}
.sidebar-source-item a:hover { color: #f78166; }

/* New-since-last-digest marker on homepage sidebar items */
.sidebar-item-new {
  border-left-color: #f78166;
}
.sidebar-item-new a {
  color: var(--color-text);
}
.sidebar-item-new a::before {
  content: "● ";
  color: #f78166;
  font-size: 0.6rem;
  vertical-align: middle;
  margin-right: 0.15rem;
}

/* ── Deadlines sidebar ───────────────────────────────────────────────── */
.deadline-item {
  border-left: 3px solid #6e7681;
  padding: 0.5rem 0.875rem 0.5rem 0.65rem;
  border-bottom: 1px solid var(--color-border);
  transition: background 0.12s;
  cursor: default;
}
.deadline-item:last-child { border-bottom: none; }
.deadline-item:hover { background: rgba(255, 255, 255, 0.03); }

.deadline-date {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  margin-bottom: 0.15rem;
  font-family: var(--font-mono);
}

.deadline-title {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.3;
  margin-bottom: 0.15rem;
}

.deadline-pillar {
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.15rem;
  opacity: 0.85;
}

/* Action text hidden until hover */
.deadline-action {
  font-size: 0.68rem;
  color: var(--color-text-muted);
  line-height: 1.45;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.2s ease, opacity 0.2s ease;
  opacity: 0;
}
.deadline-item:hover .deadline-action {
  max-height: 6rem;
  opacity: 1;
}

/* Urgency states (applied by sidebar-dates.js) */
.deadline-item.is-urgent { background: rgba(255, 107, 107, 0.05); }
.deadline-item.is-urgent .deadline-date { color: #ff6b6b; }
.deadline-item.is-urgent { border-left-color: #ff6b6b !important; }

.deadline-item.is-soon .deadline-date { color: #f0883e; }

.deadline-item.is-overdue { opacity: 0.4; }
.deadline-item.is-overdue .deadline-date { text-decoration: line-through; }

/* ── Homepage center column ──────────────────────────────────────────── */
.home-center .hero {
  padding: 2rem 0 1.5rem;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 1.5rem;
}

.home-center .post-list {
  padding: 0 0 3rem;
}

/* ── 30-day calendar sidebar ─────────────────────────────────────────── */
.cal-month {
  padding: 0.5rem 0.5rem 0.25rem;
}

.cal-month + .cal-month {
  border-top: 1px solid var(--color-border);
}

.cal-month-name {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--color-accent);
  text-align: center;
  margin-bottom: 0.4rem;
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.cal-dow {
  font-size: 0.55rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-text-muted);
  text-align: center;
  padding-bottom: 0.2rem;
}

.cal-day {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.62rem;
  line-height: 1;
  padding: 0.25rem 0 0.15rem;
  border-radius: 3px;
  color: var(--color-text-muted);
  cursor: default;
  min-height: 1.6rem;
}

.cal-day-empty { background: none; }

.cal-today {
  background: rgba(88, 166, 255, 0.15);
  color: var(--color-accent);
  font-weight: 700;
  border-radius: 4px;
}

.cal-past { opacity: 0.35; }

.cal-has-events {
  cursor: pointer;
  color: var(--color-text);
  font-weight: 600;
}
.cal-has-events:hover { background: rgba(255, 255, 255, 0.06); }

.cal-dots {
  display: flex;
  gap: 2px;
  justify-content: center;
  margin-top: 2px;
  flex-wrap: wrap;
}

.cal-dot {
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
  cursor: help;
}

/* Deadline dot tooltip — rendered as a fixed body element via JS */
#cal-dot-tip {
  position: fixed;
  z-index: 9999;
  background: #161b22;
  color: #e6edf3;
  border: 1px solid rgba(99, 110, 123, 0.45);
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 0.72rem;
  line-height: 1.4;
  max-width: 240px;
  pointer-events: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.55);
  opacity: 0;
  transition: opacity 0.1s ease;
}
#cal-dot-tip.is-visible {
  opacity: 1;
}

/* Upcoming deadlines list (below calendar grid) */
.cal-upcoming {
  border-top: 1px solid var(--color-border);
}

.cal-upcoming-item {
  border-left: 3px solid #6e7681;
  padding: 0.45rem 0.875rem 0.45rem 0.65rem;
  border-bottom: 1px solid var(--color-border);
  transition: background 0.12s;
  cursor: default;
}
.cal-upcoming-item:last-child { border-bottom: none; }
.cal-upcoming-item:hover { background: rgba(255, 255, 255, 0.03); }

/* Highlighted when user clicks a calendar day */
.cal-upcoming-item.cal-highlighted {
  background: rgba(88, 166, 255, 0.07);
  outline: 1px solid rgba(88, 166, 255, 0.25);
}

.cal-upcoming-date {
  font-size: 0.6rem;
  font-weight: 700;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
  margin-bottom: 0.1rem;
}

.cal-upcoming-title {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.3;
  margin-bottom: 0.1rem;
}

.cal-upcoming-pillar {
  font-size: 0.58rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.1rem;
  opacity: 0.85;
}

/* Action text slides in on hover */
.cal-upcoming-action {
  font-size: 0.68rem;
  color: var(--color-text-muted);
  line-height: 1.45;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.2s ease, opacity 0.2s ease;
}
.cal-upcoming-item:hover .cal-upcoming-action {
  max-height: 6rem;
  opacity: 1;
}

/* Urgency states */
.cal-upcoming-item.is-urgent { background: rgba(255, 107, 107, 0.05); }
.cal-upcoming-item.is-urgent .cal-upcoming-date { color: #ff6b6b; }
.cal-upcoming-item.is-urgent { border-left-color: #ff6b6b !important; }
.cal-upcoming-item.is-soon .cal-upcoming-date { color: #f0883e; }

/* ── Search button (nav bar) ─────────────────────────────────────────── */
.search-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  color: var(--color-text-muted);
  cursor: pointer;
  padding: 0.28rem 0.6rem;
  font-size: 0.78rem;
  font-family: inherit;
  transition: border-color 0.15s, color 0.15s;
  white-space: nowrap;
}
.search-btn:hover {
  border-color: var(--color-accent);
  color: var(--color-text);
}
.search-btn kbd {
  font-size: 0.65rem;
  font-family: var(--font-mono);
  border: 1px solid var(--color-border);
  border-radius: 3px;
  padding: 0.05em 0.35em;
  opacity: 0.7;
}

/* ── Search overlay / modal ──────────────────────────────────────────── */
.search-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  z-index: 2000;
  padding: 4.5rem 1rem 1rem;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
.search-overlay.is-open {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.search-box {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  width: 100%;
  max-width: 680px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.6);
}

.search-input-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0 1.1rem;
  border-bottom: 1px solid var(--color-border);
}
.search-input-wrap svg {
  flex-shrink: 0;
  color: var(--color-text-muted);
}
.search-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  padding: 1rem 0;
  font-size: 1rem;
  color: var(--color-text);
  font-family: inherit;
}
.search-input::placeholder { color: var(--color-text-muted); }
/* Remove default browser search clear button */
.search-input::-webkit-search-cancel-button { display: none; }

.search-results {
  max-height: 440px;
  overflow-y: auto;
  padding: 0.4rem;
}

.search-empty {
  padding: 2rem 1rem;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.875rem;
}

.search-error {
  color: #ff6b6b;
  line-height: 1.6;
}
.search-error small {
  opacity: 0.6;
  font-size: 0.75em;
  font-family: var(--font-mono);
  display: block;
  margin-top: 0.4rem;
}

.search-result {
  display: block;
  padding: 0.7rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  margin-bottom: 2px;
  transition: background 0.1s;
}
.search-result:hover {
  background: rgba(255, 255, 255, 0.06);
  text-decoration: none;
}

.search-result-title {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.25rem;
  line-height: 1.4;
}

.search-result-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.search-result-cat {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.1em 0.5em;
  border-radius: 10px;
  color: #0d1117;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.search-result-date {
  font-size: 0.72rem;
  color: var(--color-text-muted);
}

.search-result-snippet {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.search-hint {
  display: flex;
  gap: 1.2rem;
  padding: 0.55rem 1.1rem;
  font-size: 0.68rem;
  color: var(--color-text-muted);
  border-top: 1px solid var(--color-border);
  flex-wrap: wrap;
}
.search-hint kbd {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  border: 1px solid var(--color-border);
  border-radius: 3px;
  padding: 0.05em 0.35em;
}

/* ── Footer ──────────────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 2rem 0;
  font-size: 0.825rem;
  color: var(--color-text-muted);
}

.footer-inner { display: flex; flex-direction: column; gap: 0.5rem; }

.footer-links {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 0.25rem;
}

.footer-links a {
  color: var(--color-text-muted);
  font-size: 0.825rem;
}

.footer-links a:hover { color: var(--color-accent); text-decoration: none; }

.footer-byline { font-size: 0.8rem; }

.footer-disclaimer { font-size: 0.75rem; }

/* ── Taxonomy terms page ─────────────────────────────────────────────── */
.terms-page { padding: 2rem 0 3rem; }

.terms-title {
  font-size: 1.4rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
}

.terms-sub {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 1.75rem;
}

.terms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.75rem;
}

.term-card {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.9rem 1rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  text-decoration: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.term-card:hover {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 1px rgba(88, 166, 255, 0.15);
  text-decoration: none;
}

.term-name {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text);
}

.term-count {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

/* ── Digest right sidebar ────────────────────────────────────────────── */
.digest-toc-panel nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.digest-toc-panel nav ul li {
  border-left: 2px solid var(--color-border);
  padding: 0.15rem 0 0.15rem 0.75rem;
  margin: 0.15rem 0;
  transition: border-color 0.15s;
}

.digest-toc-panel nav ul li:hover {
  border-left-color: var(--color-accent);
}

.digest-toc-panel nav ul li a {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  text-decoration: none;
  line-height: 1.4;
  display: block;
}

.digest-toc-panel nav ul li a:hover {
  color: var(--color-accent);
  text-decoration: none;
}

.digest-tags-panel {
  margin-top: 0.75rem;
}

.digest-tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.75rem 1rem;
}

.digest-related-panel {
  margin-top: 0.75rem;
}

.digest-related-list {
  list-style: none;
  margin: 0;
  padding: 0.5rem 0;
}

.digest-related-item {
  padding: 0.5rem 1rem;
  border-bottom: 1px solid var(--color-border);
}

.digest-related-item:last-child {
  border-bottom: none;
}

.digest-related-link {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-accent);
  text-decoration: none;
}

.digest-related-link:hover {
  text-decoration: underline;
}

.digest-related-desc {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin: 0.2rem 0 0;
  line-height: 1.4;
}

/* Sources list (front-matter rendered) */
.sources-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sources-list li {
  padding: 0.25rem 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.8rem;
  word-break: break-all;
}

.sources-list li:last-child {
  border-bottom: none;
}

.sources-list li a {
  color: var(--color-text-muted);
}

.sources-list li a:hover {
  color: var(--color-accent);
}

/* ── Executive's Guide ───────────────────────────────────────────────── */

/* Risk dashboard — HIGH / MED / LOW count chips above the jump-to nav */
.exec-risk-dashboard {
  display: flex;
  gap: 0.6rem;
  margin: 0 0 1rem;
  flex-wrap: wrap;
}
.exec-risk-chip {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.85rem;
  border-radius: 20px;
  border: 1px solid;
}
.exec-risk-chip-high { color: #ff6b6b; border-color: rgba(255,107,107,0.3); background: rgba(255,107,107,0.08); }
.exec-risk-chip-med  { color: #f0883e; border-color: rgba(240,136,62,0.3);  background: rgba(240,136,62,0.08);  }
.exec-risk-chip-low  { color: #3fb950; border-color: rgba(63,185,80,0.3);   background: rgba(63,185,80,0.08);   }
.exec-risk-chip-count { font-size: 0.95rem; font-weight: 800; line-height: 1; }

/* Technical digest cross-link — shown in header, prominent */
.exec-tech-link-header {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.75rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-accent);
  border: 1px solid rgba(46,168,184,0.3);
  padding: 0.3rem 0.85rem;
  border-radius: 6px;
  background: rgba(46,168,184,0.06);
  text-decoration: none;
  transition: background 0.15s;
}
.exec-tech-link-header:hover {
  background: rgba(46,168,184,0.14);
  text-decoration: none;
}

/* Expand / collapse all buttons inside the jump-to nav */
.exec-toc-actions {
  display: flex;
  gap: 0.4rem;
  margin-left: auto;
  flex-shrink: 0;
}
.exec-toggle-btn {
  font-size: 0.67rem;
  font-weight: 600;
  padding: 2px 9px;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  background: transparent;
  color: var(--color-text-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
  font-family: inherit;
}
.exec-toggle-btn:hover {
  background: rgba(255,255,255,0.08);
  color: var(--color-text);
}

/* Risk-colored left-border on section cards */
.exec-section-collapsible.exec-risk-high { border-left: 3px solid #ff6b6b; }
.exec-section-collapsible.exec-risk-med  { border-left: 3px solid #f0883e; }
.exec-section-collapsible.exec-risk-low  { border-left: 3px solid #3fb950; }

/* Risk-colored table rows */
.exec-row-high td { background: rgba(255,107,107,0.06) !important; }
.exec-row-high td:first-child { border-left: 3px solid rgba(255,107,107,0.5); }
.exec-row-med  td { background: rgba(240,136,62,0.06)  !important; }
.exec-row-med  td:first-child { border-left: 3px solid rgba(240,136,62,0.5); }
.exec-row-low  td { background: rgba(63,185,80,0.06)   !important; }
.exec-row-low  td:first-child { border-left: 3px solid rgba(63,185,80,0.5); }

/* Anchor share link on section summaries */
.exec-section-anchor {
  margin-left: auto;
  font-size: 0.7rem;
  opacity: 0;
  color: var(--color-text-muted);
  text-decoration: none;
  padding: 0 0.3rem;
  transition: opacity 0.15s;
  flex-shrink: 0;
}
.exec-section-summary:hover .exec-section-anchor { opacity: 0.5; }
.exec-section-anchor:hover { opacity: 1 !important; color: var(--color-accent); }

/* Source citation block at the bottom of each section */
.exec-sources-block {
  margin-top: 1.1rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--color-border);
  font-size: 0.74rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}
.exec-sources-block a {
  color: var(--color-accent);
  text-decoration: none;
}
.exec-sources-block a:hover { text-decoration: underline; }

.exec-list-header {
  padding: 2rem 0 1.5rem;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 2rem;
}

.exec-list-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0 0 0.4rem;
}

.exec-list-sub {
  color: var(--color-text-muted);
  margin: 0 0 0.4rem;
}

.exec-list-note {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin: 0;
}

.exec-badge {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #f5a623;
  background: rgba(245, 166, 35, 0.12);
  border: 1px solid rgba(245, 166, 35, 0.3);
  border-radius: 10px;
  padding: 2px 8px;
}

.exec-card {
  border-left: 3px solid rgba(245, 166, 35, 0.4);
}

/* Work-in-progress banner for exec pages */
.wip-banner {
  margin-top: 2rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: rgba(245, 166, 35, 0.07);
  border: 1px solid rgba(245, 166, 35, 0.28);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin-bottom: 2rem;
  font-size: 0.83rem;
  line-height: 1.5;
  color: var(--color-text-muted);
}
.wip-banner-icon {
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 0.05rem;
}
.wip-banner strong {
  color: #f5a623;
  font-weight: 600;
}

.exec-post .post-title {
  font-size: 1.5rem;
}

.exec-content {
  font-size: 1rem;
  line-height: 1.75;
}

.exec-content h2 {
  font-size: 1rem;
  font-weight: 700;
  margin: 2rem 0 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--color-border);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text);
}

.exec-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.9rem;
}

.exec-content th {
  background: var(--color-surface);
  font-weight: 600;
  text-align: left;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--color-border);
}

.exec-content td {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--color-border);
  vertical-align: top;
}

.exec-content tr:nth-child(even) td {
  background: rgba(255,255,255,0.02);
}

.exec-cross-link {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  margin: 0 0 1.5rem;
}

.exec-cross-link a {
  color: var(--color-text-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.exec-cross-link a:hover {
  color: var(--color-accent);
}

.exec-footer {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}

/* ── Exec jump-to nav ─────────────────────────────────────────────────── */
.exec-toc {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 2rem;
  padding: 0.75rem 1rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.exec-toc-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--color-text-muted);
  margin-right: 0.25rem;
  white-space: nowrap;
}

.exec-toc-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.exec-toc-pill {
  font-size: 0.72rem;
  font-weight: 500;
  padding: 2px 10px;
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.exec-toc-pill:hover {
  background: rgba(255,255,255,0.12);
  color: var(--color-text);
}
.exec-toc-pill.exec-risk-high {
  color: #ff6b6b;
  border-color: rgba(255,107,107,0.35);
  background: rgba(255,107,107,0.08);
}
.exec-toc-pill.exec-risk-med {
  color: #f0883e;
  border-color: rgba(240,136,62,0.35);
  background: rgba(240,136,62,0.08);
}
.exec-toc-pill.exec-risk-low {
  color: #3fb950;
  border-color: rgba(63,185,80,0.35);
  background: rgba(63,185,80,0.08);
}

/* ── Exec collapsible sections ────────────────────────────────────────── */
.exec-section-collapsible {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  margin: 0 0 1rem;
  background: var(--color-surface);
  overflow: hidden;
}

.exec-section-summary {
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: 0.75rem 1rem;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text);
  user-select: none;
  list-style: none;
  gap: 0.5rem;
}
.exec-section-summary::-webkit-details-marker { display: none; }
.exec-section-summary::before {
  content: '▶';
  font-size: 0.55rem;
  opacity: 0.5;
  transition: transform 0.2s;
  flex-shrink: 0;
}
.exec-section-collapsible[open] > .exec-section-summary::before {
  transform: rotate(90deg);
}
.exec-section-summary.exec-risk-high { color: #ff6b6b; }
.exec-section-summary.exec-risk-med  { color: #f0883e; }
.exec-section-summary.exec-risk-low  { color: #3fb950; }

.exec-section-body {
  padding: 0 1.25rem 1rem;
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--color-text);
}

/* Tables inside exec sections */
.exec-section-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.75rem 0;
  font-size: 0.85rem;
}
.exec-section-body th {
  background: rgba(255,255,255,0.04);
  font-weight: 600;
  text-align: left;
  padding: 0.45rem 0.65rem;
  border: 1px solid var(--color-border);
}
.exec-section-body td {
  padding: 0.45rem 0.65rem;
  border: 1px solid var(--color-border);
  vertical-align: top;
}
.exec-section-body tr:nth-child(even) td {
  background: rgba(255,255,255,0.02);
}

/* Card-style paragraphs — each <p> in a section body becomes a visual block.
   When Claude writes "**Bold topic:** explanation..." each paragraph reads as
   a distinct item rather than a wall of text. */
.exec-section-body > p {
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 6px;
  padding: 0.8rem 1rem;
  margin: 0 0 0.6rem;
}
/* Treat the opening bold as an inline label, give it a bit of separation */
.exec-section-body > p > strong:first-child {
  display: block;
  font-size: 0.88rem;
  margin-bottom: 0.35rem;
  color: var(--color-text);
}
/* Don't card-style source citation paragraphs */
.exec-section-body > p.exec-sources-block {
  background: none;
  border: none;
  padding: 0;
}

/* Per-section source citations — italic em line at bottom of each section */
.exec-section-body > p:last-child > em,
.exec-section-body > p:last-child > em a {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  font-style: normal;
}
.exec-section-body > p:last-child > em a {
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: rgba(139,148,158,0.4);
}
.exec-section-body > p:last-child > em a:hover {
  color: var(--color-accent);
  text-decoration-color: var(--color-accent);
}

/* ── Deadlines page ──────────────────────────────────────────────────── */
.deadlines-page {
  max-width: 900px;
  padding: 2rem 1.25rem 4rem;
}

.deadlines-header {
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 1.25rem;
}

.deadlines-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.4rem;
}

.deadlines-sub {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.deadlines-meta {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

/* Month-separated calendars on the deadlines page */
.deadlines-calendar-section {
  margin-bottom: 3rem;
}

/* #deadline-calendar holds all the .cal-month divs — lay them out as a
   horizontal wrapping row so multiple months sit side by side */
.deadlines-calendar-section #deadline-calendar {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: flex-start;
}

.deadlines-calendar-section .cal-month {
  flex: 0 0 auto;
  width: 296px;           /* 7 cols × 40px day + padding */
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1rem;
}

/* Months are side-by-side cards now — no extra top border between them */
.deadlines-calendar-section .cal-month + .cal-month {
  border-top: none;
}

.deadlines-calendar-section .cal-day {
  font-size: 0.8rem;
  min-height: 34px;
}

/* ── Deadlines grouped by pillar ── */
.deadlines-list {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

/* Each pillar block uses --pillar-color set inline by the template */
.deadlines-pillar-group {
  border-left: 3px solid var(--pillar-color, #6e7681);
  padding-left: 1.25rem;
}

.deadlines-pillar-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.deadlines-pillar-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--pillar-color, #6e7681);
  flex-shrink: 0;
}

.deadlines-pillar-heading {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--pillar-color, #6e7681);
  margin: 0;
}

.deadlines-pillar-count {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--color-text-muted);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 1px 8px;
  margin-left: auto;
}

/* Cards grid */
.deadlines-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.75rem;
}

.deadline-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--pillar-color, #6e7681);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  transition: background 0.15s, border-color 0.15s;
}

.deadline-card:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--pillar-color, #6e7681);
}

.deadline-card-date {
  font-size: 0.65rem;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--pillar-color, var(--color-accent));
  margin-bottom: 0.35rem;
  letter-spacing: 0.04em;
}

.deadline-card-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.4rem;
  line-height: 1.35;
}

.deadline-card-applies {
  font-size: 0.7rem;
  color: var(--color-text-muted);
  margin-bottom: 0.4rem;
  line-height: 1.4;
}

.deadline-applies-label {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.6rem;
  color: var(--pillar-color, var(--color-accent));
  margin-right: 0.25rem;
}

.deadline-card-action {
  font-size: 0.76rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 0.4rem;
  margin-top: 0.1rem;
}

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .header-inner { flex-direction: column; align-items: flex-start; }
  .post-title { font-size: 1.3rem; }
  .hero h1 { font-size: 1.5rem; }
  .site-nav { gap: 0.75rem; flex-wrap: wrap; }
}
/* ── Exec Sidebar Panels ─────────────────────────────────────────────── */
.exec-sidebar-panel {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left-width: 3px;
  border-radius: 6px;
  overflow: hidden;
}

.exec-sidebar-panel-header {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  padding: 0.45rem 0.75rem;
  border-bottom: 1px solid;
}

.exec-sidebar-panel-body {
  padding: 0.75rem;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--color-text);
}

.exec-sidebar-panel-body p { margin: 0 0 0.5rem; }
.exec-sidebar-panel-body p:last-child { margin-bottom: 0; }
.exec-sidebar-panel-body ul,
.exec-sidebar-panel-body ol { padding-left: 1.2rem; margin: 0 0 0.5rem; }
.exec-sidebar-panel-body li { margin-bottom: 0.35rem; }
.exec-sidebar-panel-body table { font-size: 0.76rem; width: 100%; border-collapse: collapse; }
.exec-sidebar-panel-body th { font-size: 0.68rem; text-align: left; padding: 0.3rem 0.4rem; color: var(--color-text-muted); border-bottom: 1px solid var(--color-border); }
.exec-sidebar-panel-body td { padding: 0.3rem 0.4rem; border-bottom: 1px solid var(--color-border); vertical-align: top; }
.exec-sidebar-panel-body tr:last-child td { border-bottom: none; }
.exec-sidebar-panel-body strong { color: var(--color-text); }

.exec-sidebar-empty { color: var(--color-text-muted); font-style: italic; font-size: 0.8rem; margin: 0; }

.exec-sidebar-panel .exec-sources-block {
  font-size: 0.71rem;
  margin-top: 0.6rem;
  padding-top: 0.45rem;
  border-top: 1px solid var(--color-border);
  color: var(--color-text-muted);
}

/* ── Help Desk Checklist ─────────────────────────────────────────────── */
.exec-checklist { display: flex; flex-direction: column; gap: 0.55rem; }

.exec-checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  cursor: pointer;
  line-height: 1.45;
}

.exec-checklist-cb {
  margin-top: 0.18rem;
  flex-shrink: 0;
  accent-color: #f0883e;
  cursor: pointer;
  width: 14px;
  height: 14px;
}

.exec-checklist-item span { flex: 1; }

.exec-checklist-item:has(.exec-checklist-cb:checked) span {
  color: var(--color-text-muted);
  text-decoration: line-through;
}
