:root {
  --blog-shell-max: 1320px;
  --blog-side: 280px;
}

.progress {
  background: rgba(9, 17, 31, 0.06);
  height: 3px;
  left: 0;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 50;
}

.progress > div {
  background: linear-gradient(90deg, var(--blue), var(--teal), var(--accent), var(--gold));
  height: 100%;
  transform-origin: left center;
  transform: scaleX(0);
  width: 100%;
}

.shell {
  display: grid;
  gap: 22px;
  grid-template-columns: var(--blog-side) minmax(0, 1fr) var(--blog-side);
  margin: 0 auto;
  max-width: var(--blog-shell-max);
  padding: 20px 18px 72px;
}

.main-col {
  min-width: 0;
}

.side {
  align-self: start;
  max-height: calc(100vh - 40px);
  overflow: auto;
  padding-bottom: 20px;
  position: sticky;
  top: 20px;
}

.side-card {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.06);
  padding: 14px;
}

.side-title {
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.nav-list {
  display: grid;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a {
  border-radius: 10px;
  color: var(--text);
  display: block;
  font-size: 14px;
  font-weight: 800;
  padding: 10px 10px;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-list a:hover {
  background: rgba(31, 111, 255, 0.10);
  color: var(--ink);
}

.nav-list a.is-active {
  background: linear-gradient(90deg, rgba(255, 106, 0, 0.16), rgba(31, 111, 255, 0.10));
  border: 1px solid rgba(255, 106, 0, 0.24);
  color: var(--ink);
}

body.embed .progress {
  display: none;
}

body.embed .side {
  display: none;
}

body.embed .shell {
  grid-template-columns: 1fr;
  padding: 12px 12px 40px;
}

@media (max-width: 1060px) {
  .shell {
    grid-template-columns: 260px minmax(0, 1fr);
  }
  .side.right {
    display: none;
  }
}

@media (max-width: 820px) {
  .shell {
    grid-template-columns: 1fr;
    padding: 14px 14px 60px;
  }
  .side.left {
    max-height: none;
    position: relative;
    top: 0;
  }
}
